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

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Stata 面板数据模型选择
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用