com.ibm.team.build.ant.* missing
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
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
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
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
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.