It's all about the answers!

Ask a question

com.ibm.team.build.ant.* missing


Ralf Westphal (622) | asked Mar 05 '15, 6:16 p.m.
Hello,

I'd like to add additional files to the log of a build. Therefore I wanted to use the Ant logPublisher, like described here:
http://www-01.ibm.com/support/knowledgecenter/SSYMRC_4.0.6/com.ibm.team.build.doc/topics/r_logpublisher.html

Unfortunately I don't have any build.ant jar files in my buildtoolkit directory and therefore cannot execute this command. Can these files be downloaded somewhere seperately or am I doing anything wrong?

Thanks
Ralf

3 answers



permanent link
Ralph Schoon (63.1k33646) | answered Mar 06 '15, 2:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I'd suggest you set up a test server and deploy the JKA Banking sample. You provide the build user the build license as described here: http://www-01.ibm.com/support/knowledgecenter/SSYMRC_4.0.6/com.ibm.team.build.doc/topics/r_ant-tasks.html and then you review the content of one of the streams. Look into the component build and check how the ANT scripts work. The key is to copy the content of buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml into your ant script.

Comments
Ralf Westphal commented Mar 06 '15, 6:50 a.m.

Thank you for your answer.

I'm quite sure, that the build script is correct. I also have and had the task definitions in the script. However, the class can not be found.

Error message: taskdef class com.ibm.team.build.ant.task.LogPublisherTask cannot be found using the classloader AntClassLoader[]

Classpath is set to the buildtoolkit directory and I also tried to pass it via the -lib parameter to ant.

For my understanding, there should be files named "com.ibm.team.build.ant.*.jar" in the buildtoolkit directory, so the AntLoader can load them. But they aren't there.

Thanks, Ralf


permanent link
Arne Bister (2.6k12832) | answered Mar 06 '15, 2:54 a.m.
JAZZ DEVELOPER
Ralph,

trusting you read through the general setup for Jazz ANT builds and the examples in Jazz Build Wiki I understand you are looking for a way to execute the logPublisher task.
You should not need a special build.ant jar file for that. The logPublisher task is included in the build toolkit. However, you need to define the task in your build.xml, i.e. point the task name to the right plugin to execute (example cp. <BuildToolkit>\buildsystem\buildtoolkit\examples\standalone\build.xml)

As you can see in the sample build.xml provided with the build toolkit, the taskdef for logPublisher is:
<taskdef name="logPublisher"
             classname="com.ibm.team.build.ant.task.LogPublisherTask" />

When that is part of your build.xml you can call the task as per the link you provided.
If this works for you please mark this answer as accepted. If it doesn't, please provide your build.xml or build setup and the exact error message you see.

Best,
Arne

Comments
Ralf Westphal commented Mar 06 '15, 6:51 a.m.

Thank you for your answer.

I'm quite sure, that the build script is correct. I also have and had the task definitions in the script. However, the class can not be found.

Error message: taskdef class com.ibm.team.build.ant.task.LogPublisherTask cannot be found using the classloader AntClassLoader[]

Classpath is set to the buildtoolkit directory and I also tried to pass it via the -lib parameter to ant.

For my understanding, there should be files named "com.ibm.team.build.ant.*.jar" in the buildtoolkit directory, so the AntLoader can load them. But they aren't there.

Thanks, Ralf


permanent link
Ralf Westphal (622) | answered Mar 06 '15, 8:02 a.m.

Thanks for your answers.

I found the problem: I was using the command line build system, as we used a somewhat complicated batch file for the build process; and one step in this script was calling Ant to upload additional log files. This doesn't seem to work. If I use an Ant build definition instead, it works correctly. I still don't understand, why I then cannot use the Ant script from the batch directly, but I can of course build an Ant solution instead.

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.