It's all about the answers!

Ask a question

How to add Eclipse ant task to the build


Stefan Witte (11) | asked Jan 12 '10, 10:27 a.m.
Hi,

I have a 'normal' ant build script which i can run (in process) inside RSA. I does a junit test and projectBuild and warExport using (standard) eclipse or RSA ant tasks. So not running inside the jazz build engine.

I want to create a jazz build script which performs the same tasks as the original script and add jazz ant stuff like startBuildActivity and junitLogPublisher. This is all working fine, junit test are running and reported, except that the eclipse tasks like: projectBuild, warExport etc. cannot be found.

Can someone telle me how to add the (standard) eclipse (or RSA) ant tasks libraries to a jazz build ?

(RSA 7.5.5 / RTC 2.0.0.2)

3 answers



permanent link
Jose Miguel Ordax Cassa (2.4k3126100) | answered Jan 12 '10, 4:53 p.m.
On 12-Jan-10 4:38 PM, switte wrote:
Hi,

I have a 'normal' ant build script which i can run (in process) inside
RSA. I does a junit test and projectBuild and warExport using
(standard) eclipse or RSA ant tasks. So not running inside the jazz
build engine.

I want to create a jazz build script which performs the same tasks as
the original script and add jazz ant stuff like startBuildActivity
and junitLogPublisher. This is all working fine, junit test are
running and reported, except that the eclipse tasks like:
projectBuild, warExport etc. cannot be found.

Can someone telle me how to add the (standard) eclipse (or RSA) ant
tasks libraries to a jazz build ?

(RSA 7.5.5 / RTC 2.0.0.2)


If you know which RSA JAR files contain the necessary code add their
location in the Build Definition properties or copy them to
%RTCBuildServer%\buildsystem\buildengine\eclipse\plugins\org.apache.ant_1.7.0.v200803061910\lib

Hope it helps,

Chemi.

permanent link
David Olsen (5237) | answered Jan 12 '10, 5:53 p.m.
JAZZ DEVELOPER
Chemi wrote:
On 12-Jan-10 4:38 PM, switte wrote:
I have a 'normal' ant build script which i can run (in process) inside
RSA. I does a junit test and projectBuild and warExport using
(standard) eclipse or RSA ant tasks. So not running inside the jazz
build engine.

I want to create a jazz build script which performs the same tasks as
the original script and add jazz ant stuff like startBuildActivity
and junitLogPublisher. This is all working fine, junit test are
running and reported, except that the eclipse tasks like:
projectBuild, warExport etc. cannot be found.

Can someone telle me how to add the (standard) eclipse (or RSA) ant
tasks libraries to a jazz build ?

(RSA 7.5.5 / RTC 2.0.0.2)


If you know which RSA JAR files contain the necessary code add their
location in the Build Definition properties or copy them to
%RTCBuildServer%\buildsystem\buildengine\eclipse\plugins\org.apache.ant_1.7.0.v200803061910\lib

I am guessing (but I'm not certain) that it would be easier to run the
build in the context of RSA (using Eclipse's AntRunner) and then bring
the build toolkit Ant tasks into that. I think it would be easier to
add the Jazz Build Ant tasks to RSA than it would be to add the
Eclipse/RSA Ant tasks to the Ant instance that the build engine invokes
by default.

permanent link
Stefan Witte (11) | answered Jan 13 '10, 10:37 a.m.
1) I have tried the "eclipse to Jazz build system approach":

I have copied the jars from:
C:\ibm\SDP75\configuration\org.eclipse.osgi\bundles\675\1\.cp\runtime\*.jar
(antextras.jar & antj2ee.jar) to
C:\ibm\RTC2Build\jazz\buildsystem\buildengine\eclipse\plugins\org.apache.ant_1.7.0.v200803061910\lib

and defined the projectBuild as:




(sorry cannot get the lt and gt character right)

The task can be found but other classes cannot be found:

java.lang.NoClassDefFoundError: org.eclipse.core.resources.ResourcesPlugin

So there must be more libraries to add but i don't understand which ones.

2) The approach of running the eclipse antRunner sounds indeed better. Can you specify more pricise what to configure in the build definition ?

I'm not that familiar whit eclipse/ant build paths and new to jazz builds.

		                                        

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.