熟悉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.看下文档目录

 

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

查看全部
wind1989
王二铁
2011/08/05 08:55
  • ibatis
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

0个回复