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)
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
On 12-Jan-10 4:38 PM, switte wrote:
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.
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.
Chemi wrote:
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.
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.
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.
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.