I'm trying to run ant build.xml
but some error occur
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.
in this project ${torque.home}
not found which directory it is indicated that
Assume torque.home is specified through -D option
in ant invocation
What does -D specified, how to find ${torque.home}
value?
Use it in this way ant build -Dtorque.home="value for torque.home"
. Using -D
param you can pass property from command line directly to build. If you pass value from command line to build it will be visible in all your builds even if you pass invokeAll=false
.
I think that here is the answer how to pass parameters from eclipse to ant (Eclipse->myproject->right click on build.xml->Arguments->VM Arguments
-DappRoot=ECM -DappName=ESW -Dapp.module=FNT -Dapp.env=LOC -DcloneNumber=1
)