zhaohanjiangit
2009-09-07 17:47
浏览 200
已采纳

编译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

帮帮我把

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • ljs2342003 2009-09-07 22:10
    已采纳

    [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里

    已采纳该答案
    打赏 评论

相关推荐 更多相似问题