Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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!

0 votes



3 answers

Permanent link
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

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 08 '08, 2:58 p.m.

Question was seen: 5,140 times

Last updated: Dec 08 '08, 2:58 p.m.

Confirmation Cancel Confirm