【问题标题】:build failed while run ant file运行 ant 文件时构建失败
【发布时间】:2013-04-09 07:17:57
【问题描述】:

我正在尝试运行 ant build.xml,但出现了一些错误

Buildfile: D:\Projects\OBSWorkspace\schoolforms\torque\build.xml
main:

BUILD FAILED
D:\Projects\OBSWorkspace\schoolforms\torque\build.xml:19: 
   The following error occurred while executing this line:
   D:\Projects\OBSWorkspace\schoolforms\torque\build-torque.xml:52:     
   D:\Projects\OBSWorkspace\schoolforms\torque\${torque.home}\lib not found.

在这个项目中${torque.home}没有找到表示是哪个目录

  Assume torque.home is specified through -D option
  in ant invocation

-D指定什么,如何找到${torque.home}的值?

【问题讨论】:

    标签: java ant build myeclipse apache-torque


    【解决方案1】:

    以这种方式使用它ant build -Dtorque.home="value for torque.home"。使用-D 参数,您可以直接从命令行传递属性来构建。如果您从命令行传递值来构建,即使您传递invokeAll=false,它也会在您的所有构建中可见。

    我认为here是如何将参数从eclipse传递给ant的答案(Eclipse->myproject->right click on build.xml->Arguments->VM Arguments -DappRoot=ECM -DappName=ESW -Dapp.module=FNT -Dapp.env=LOC -DcloneNumber=1

    【讨论】:

    • 但是在myeclipse中如何传递-D选项参数
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-04
    • 2016-05-23
    • 1970-01-01
    • 2017-06-13
    • 1970-01-01
    相关资源
    最近更新 更多