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. |
One answer
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 |
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.