编译ant1.7.1源码问题

下载了ant1.7.1的源码根据apahce官方文档操作步骤没有成功,文档地址:http://ant.apache.org/manual/install.html

按照官方文档进入源码路径执行build -Ddist.dir=<directory_to_contain_Ant_distribution> dist 说不能访问。郁闷。。。换了好几台机器多这样。

 

在源码目录里直接执行build.bat还是不行报错如下:

 

compile-tests:

test-jar:

BUILD FAILED
C:\apache-ant-1.7.1\build.xml:1106: The following error occurred while executing
 this line:
C:\apache-ant-1.7.1\build.xml:912: We cannot build the test jar unless JUnit is
present,
      as JUnit is needed to compile the test classes.

Total time: 11 seconds

... Cleaning Up Build Directories

... Done Bootstrapping Ant Distribution
Bootstrap FAILED

 

帮帮我把

[code="java"]compile-tests:

test-jar:

BUILD FAILED

C:\apache-ant-1.7.1\build.xml:1106: The following error occurred while executing

this line:

C:\apache-ant-1.7.1\build.xml:912: We cannot build the test jar unless JUnit is

present,

[color=red] as JUnit is needed to compile the test classes. [/color]

Total time: 11 seconds

... Cleaning Up Build Directories

... Done Bootstrapping Ant Distribution

Bootstrap FAILED [/code]

junit的包放classpath里