Custom jar for ant

With ant I usually just drop a library in the the ant/lib directory to have ant see my jar, how do I do this with TeamCity?

1 comment
Comment actions Permalink

Barry Kaplan wrote:

With ant I usually just drop a library in the the ant/lib directory to have ant see my jar, how do I do this with TeamCity?


There are several options here.

1. You can provide custom ANT_HOME variable on the build agent which will point to you custom ant
with your libraries (use either ANT_HOME env. variable on agent or specify it in build configuration
settings)

2. If you have a single build agent, you may place your jar to buildAgent/plugins/ant/lib/ directory.


3. If you have many agents, I'd suggest to add your jar to bundled ant
(TeamCity/webapps/ROOT/update/plugins/ant165.jar).

Hope this helps,
KIR


--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.