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

Problem using BuildToolkitTaskDefs.xml in PDE build

I've been trying to move my team's builds(which are based on Eclipe PDE build) over to take advantage of the Jazz build tasks. I've been running into the following error:

taskdef com.ibm.team.build.ant.task.StartBuildActivityTask cannot be found

I've followed the instructions on the wiki for setting up a command line PDE build. If I avoid trying to use any of the tasks in the BuildToolkitTaskDefs.xml file, then my build works properly. I can request the build from RTC and get the build engine to execute it and update the compile results. However, as soon as I try to call one of the toolkit tasks from my customTargets.xml file, I get the type of error shown above for whichever task I use.

I've tried importing the file, as well as copying the taskdef into the project of the customTargets.xml file. Neither works.

My setup is slightly different than the one described on the wiki. I'm using the PDE build version that comes with the Eclipse 3.5M6 SDK. I'm also doing a product build, instead of a plugin and feature build.

The symptoms lead me to believe that the ant runtime classpath doesn't include the build toolkit. I tried to use the -lib option on the command line, but this isn't supported with the AntRunner.

Any advice on how to make this work is greatly appreciated.

0 votes



One answer

Permanent link
The build ant tasks are registered within RTC using the ant extension point.
If you launch PDE build or ant runner using any RTC client rather than
Eclipse 3.5 M6 then it should work fine because the tasks will be
automatically registered for you in ant as well as all necessary classes on
the class path. I added support for this in workitem 30618 which may
include more details.

Don Weinand
Jazz Foundation Team

"james.branigan" <jb> wrote in message
news:grj8vf$sf6$1@localhost.localdomain...
I've been trying to move my team's builds(which are based on Eclipe
PDE build) over to take advantage of the Jazz build tasks. I've been
running into the following error:

taskdef com.ibm.team.build.ant.task.StartBuildActivityTask cannot be
found

I've followed the instructions on the wiki for setting up a command
line PDE build. If I avoid trying to use any of the tasks in the
BuildToolkitTaskDefs.xml file, then my build works properly. I can
request the build from RTC and get the build engine to execute it and
update the compile results. However, as soon as I try to call one of
the toolkit tasks from my customTargets.xml file, I get the type of
error shown above for whichever task I use.

I've tried importing the file, as well as copying the taskdef into the
project of the customTargets.xml file. Neither works.

My setup is slightly different than the one described on the wiki.
I'm using the PDE build version that comes with the Eclipse 3.5M6
SDK. I'm also doing a product build, instead of a plugin and feature
build.

The symptoms lead me to believe that the ant runtime classpath doesn't
include the build toolkit. I tried to use the -lib option on the
command line, but this isn't supported with the AntRunner.

Any advice on how to make this work is greatly appreciated.

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: Apr 08 '09, 6:35 p.m.

Question was seen: 8,244 times

Last updated: Apr 08 '09, 6:35 p.m.

Confirmation Cancel Confirm