It's all about the answers!

Ask a question

build.xml in the RTC example src code.


Han Jie (10120) | asked Jan 02 '08, 1:51 a.m.
When I am trying the build example src code under
...\<RTC_home>\jazz\buildsystem\buildtoolkit\examples\compile-and-test\

In the build.xml, there is a line for build compilor
<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter" />

my system reports error "Class not found: org.eclipse.jdt.core.JDTCompilerAdapter"

But I am sure that I add the class path:
-lib D:\Jazz_beta2\TeamConcert-1.0Beta2-win32\jazz\client\eclipse\jazz\build\eclipse\plugins\com.ibm.team.build.setup.junit_0.6.0.I20071214-0415\junit-src\releng\compiler\ecj.jar

what is wrong?

5 answers



permanent link
Han Jie (10120) | answered Jan 02 '08, 2:15 a.m.
I have searched the
\jazz\client\eclipse\jazz\build\eclipse\plugins\com.ibm.team.build.setup.junit_0.6.0.I20071214-0415\junit-src\releng\compiler\ecj.jar

And I found there is no JDTCompilerAdapter class available.

But if this is necessary for RTC build, why it is not included by RTC package?

permanent link
Ryan Manwiller (1.3k1) | answered Jan 02 '08, 6:38 p.m.
JAZZ DEVELOPER
Apparently, the jar at
\jazz\client\eclipse\jazz\build\eclipse\plugins\com.ibm.team.build.setup.junit_0.6.0.I20071214-0415\junit-src\releng\compiler\ecj.jar
was packaged for some other purpose and is not valid for the toolkit
examples.


If you follow the instructions at the top of the example build.xml, it
should work:

2. You must download the eclipse JDT standalone compiler (ecj.jar) to use
this build file. Find it in the eclipse.org platform downloads. Look for
"JDT Core Batch Compiler"

3. You must update the antArgs property in the build definition properties,
to point to your location of ecj.jar. For example, assuming you saved
ecj.jar to C:\,
you would set the antArgs to:
-lib C:\ecj.jar


I verified it works with the ecj.jar from both 3.3.1 and 3.4 M4.

permanent link
Ryan Manwiller (1.3k1) | answered Jan 02 '08, 6:48 p.m.
JAZZ DEVELOPER
I was also successful in specifying the directory only with -lib
\jazz\client\eclipse\jazz\build\eclipse\plugins\com.ibm.team.build.setup.junit_0.6.0.I20071214-0415\junit-src\releng\compiler


That directory contains the JDTCompilerAdapter class in a separate jar.


I'm investigating why things were done this way.

permanent link
Han Jie (10120) | answered Jan 02 '08, 9:53 p.m.
Yeah.
the build is done successfully.
But in the build result, I can not find the information for
logs, compile, JUnit...(system displays "missing contribution")

so it means I have not setup the "publisher" correctly?
What I should do?

permanent link
Han Jie (10120) | answered Jan 02 '08, 10:37 p.m.
Hi, Ryan Manwiller

Occasionally I checked the build result again(30 mins later)
I works fine.
It seems that RTC needs some longer time for information updating.

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.