It's all about the answers!

Ask a question

How do I specify a classpath for a specific Build Definition?


Timothy Tan (37) | asked Aug 21 '17, 6:59 a.m.

Existing Build Definitions and Ant script do not have classpath defined anywhere, and use the standard buildtoolkit classpath. 


I would like this Build Definition to use a specific classpath, to load an alternate jar file that the standard Build Definitions should not know about. -lib in Ant Arguments doesn't seem to do anything, nor does classpath in the ant script, or in the taskdef. Should this be possible, or am I doing something wrong?

One answer



permanent link
Timothy Tan (37) | answered Aug 22 '17, 5:20 a.m.

 To resolve my own question, as long as the package and class names are shared between the custom jar files and the standard jar file in buildtoolkit directory, the buildtoolkit version will always be picked up. Specifying -lib or classpath will not do anything as the buildtoolkit version will take precedence.

Your answer


Register or 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.