How do you add Ant Libraries to Build
I am writing a Build script that uses the <FTP> tag. This requires the org.apache.commons.net.ftp.FTPClientConfig 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?
Thanks! |
3 answers
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. |
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.
|
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 |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.