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

How to add Eclipse ant task to the build

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)

0 votes



3 answers

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

0 votes


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

0 votes


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

									

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: Jan 12 '10, 10:27 a.m.

Question was seen: 7,737 times

Last updated: Jan 12 '10, 10:27 a.m.

Confirmation Cancel Confirm