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 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示