It's all about the answers!

Ask a question

How do you add Ant Libraries to Build

Aaron Cohen (8207751) | asked Dec 08 '08, 2:58 p.m.
I am writing a Build script that uses the <FTP> tag. This requires the from the Apache Net Commons library. How do I add the library to the build project and use it without adding it to the Build Engine?


3 answers

permanent link
Ryan Manwiller (1.3k1) | answered Dec 08 '08, 3:48 p.m.
You could try adding it with a -lib argument in the Ant Arguments field on
the Ant page in the build definition.

From the ant -help:

-lib <path> specifies a path to search for jars and classes

Ryan Manwiller
Jazz Team

permanent link
Aaron Cohen (8207751) | answered Dec 10 '08, 9:20 a.m.
adding -lib and the path to the jar directory to the ANT arguments does not work. Adding the Jars to the BuildToolkit directory does not work either.

permanent link
Ryan Manwiller (1.3k1) | answered Dec 11 '08, 9:08 p.m.
My advice would be to create a standalone ant script that uses this FTP
task. Invoke ant on it and see if it works. If you can get it working, then
proceed to make it work in a build invoked by RTC.

RTC is doing nothing special other than invoking the ant process and passing
the arguments.

Your answer

Register or to post your answer.