2013-04-09 169 views
1

我试图运行ant build.xml但有些错误发生构建失败,而运行Ant文件

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}的值?

回答

1

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

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

+0

但在MyEclipse中如何通过-D选项参数 – Devendra 2013-04-09 07:28:17