running custom ANT

How do I config my buildAgent to use a custom Ant? I'm using linux... I need
to spec it using relative path from the working dir
(e.g.:
/opt/buildAgent/work/cheeta/external/bin/ant
/opt/buildAgent/work/whatever/external/bin/ant
)
mi working dir is /opt/buildAgent/work/whatever/ (whatever coming from the
build config) and relative path is always .../external/bin/ant

best regards!
Gaston Martin
gmartin@bea.com


4 comments
Comment actions Permalink

Just open your build configuration page and in the "Ant home path" text field enter:

%build.working.dir%/extenal/bin/ant


--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

"Gaston Martin" <gmartin@bea.com> wrote in message news:eckc0n$7ps$1@is.intellij.net...

How do I config my buildAgent to use a custom Ant? I'm using linux... I need to spec it using relative path from the working dir
(e.g.:
/opt/buildAgent/work/cheeta/external/bin/ant
/opt/buildAgent/work/whatever/external/bin/ant
)
mi working dir is /opt/buildAgent/work/whatever/ (whatever coming from the build config) and relative path is always
.../external/bin/ant

>

best regards!
Gaston Martin
gmartin@bea.com

>



0
Comment actions Permalink

thanks, there is no "Ant home path" text field yet on the version available
for download at jetbrains.com/teamcity

however, I'm geting build 1529 for try it now



0
Comment actions Permalink

how can I set CLASSPATH for ant looking for libraries (external JARs) ?
can I set in BuildAgent.properties some like this?

env.CLASSPATH=%CLASSPATH%;%workingdir%\external\thirdparty\lib ?

regards



"Gaston Martin" <gmartin@bea.com> wrote in message
news:eckmli$clj$1@is.intellij.net...

thanks, there is no "Ant home path" text field yet on the version
available for download at jetbrains.com/teamcity

>

however, I'm geting build 1529 for try it now

>
>



0
Comment actions Permalink

Since Ant is started via "org.apache.tools.ant.launch.Launcher", the CLASSPATH variable will be ignored.
The "right" way would be using the -lib command line parameter of the launcher. Coming EAP build will have a new option for a build
configuration "Additional Ant command line parameters" where you can set all additional Ant command line parameters.
As a workaround I'd suggest placing the 3-rd party libraries in your ant's "lib" directory.

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

"Gaston Martin" <gmartin@bea.com> wrote in message news:eckujl$qhd$1@is.intellij.net...

how can I set CLASSPATH for ant looking for libraries (external JARs) ? can I set in BuildAgent.properties some like this?

>

env.CLASSPATH=%CLASSPATH%;%workingdir%\external\thirdparty\lib ?

>

regards

>
>
>

"Gaston Martin" <gmartin@bea.com> wrote in message news:eckmli$clj$1@is.intellij.net...

>> thanks, there is no "Ant home path" text field yet on the version available for download at jetbrains.com/teamcity
>>
>> however, I'm geting build 1529 for try it now
>>
>>
>>
>



0

Please sign in to leave a comment.