王二铁 2011-08-05 08:55
浏览 330
已采纳

熟悉ant的帮忙看下,执行这个build.xml时一直报错,connection time out

<project name="migrate to mybatis3" basedir="." default="migrateToMyBatis3">
    <target name="migrateToMyBatis3">
        <!-- delete possible results from previous run -->
        <delete>
            <fileset dir="destination" includes="*.xml"/>
          </delete>
        <!-- xslt convert sqlMaps 2 to mybatis 3 -->
        <xslt basedir="source" style="migrate.xslt" includes="*.xml" destdir="destination" extension=".xml"/>
        <!-- replace #id:NUMERIC# to #id,jdbcType=NUMERIC# etc. -->
        <replace dir="destination" includes="*.xml" token=":NUMERIC#" value=",jdbcType=NUMERIC#" encoding="UTF8"/>
        <replace dir="destination" includes="*.xml" token=":TIMESTAMP#" value=",jdbcType=TIMESTAMP#" encoding="UTF8"/>
        <replace dir="destination" includes="*.xml" token=":VARCHAR#" value=",jdbcType=VARCHAR#" encoding="UTF8"/>
        <replace dir="destination" includes="*.xml" token=":BLOB#" value=",jdbcType=BLOB#" encoding="UTF8"/>
        <!-- add any needed jdbc type here (for example :CLOB#, :FLOAT#, :REAL#, :BIT#, :INTEGER#, :DECIMAL#, :DATE#, :TIME#, .... ) 
        <replace dir="destination" includes="*.xml" token=":???#" value=",jdbcType=???#" encoding="UTF8"/>
        -->
        <!-- replace $id$ with ${id} -->
        <replaceregexp match="\$([a-zA-Z0-9.\[\]_]+)\$" replace="$\{\1}" flags="mg" byline="false" encoding="UTF8">
            <fileset dir="destination" includes="*.xml" />
        </replaceregexp>
        <!-- replace #id# with #{id} -->
        <replaceregexp match="#([a-zA-Z0-9,_.=\[\]]{2,})#" replace="#{\1}" flags="mg" byline="false" encoding="UTF8">
            <fileset dir="destination" includes="*.xml" />
        </replaceregexp>
        <!-- replace xyz[] with item for use in iterators-->
        <replaceregexp match="[a-z.]{2,}\[\]" replace="item" flags="ig" encoding="UTF8">
            <fileset dir="destination" includes="*.xml" />
        </replaceregexp>

        <xmlvalidate failonerror="yes" lenient="false" warn="yes">
                <attribute name="http://apache.org/xml/features/validation/schema"  value="false" />
                <attribute name="http://xml.org/sax/features/namespaces" value="false" />
            <fileset dir="destination" includes="*.xml" />
            <dtd publicId="-//mybatis.org//DTD SQL Map Config 3.0//EN" location="mybatis-3-config.dtd" />
            <dtd publicId="-//mybatis.org//DTD Mapper 3.0//EN" location="mybatis-3-mapper.dtd" />
        </xmlvalidate>

    </target>
</project>

 背景是:项目的jar包升级,从ibatis2升级到mybatis3,我从google code下载了这个build文件,搭建了ant环境,但是用ant编译的时候报错,connection time out。请大家帮忙看看,谢谢

1.ant环境应该没错

2.开始执行

3.报错:

4.看下文档目录

 

请各位大牛帮忙看下,多谢了

  • 写回答

3条回答 默认 最新

  • suziwen 2011-08-05 12:07
    关注

    执行 ANT -V查看详细信息

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办