Run Ant Build within RTC Client
Hi,
Is it possible to execute an ANT script that uses the RTC custom ANT tasks within the RTC client? I have a build script that has some problems and I am trying to solve them. I am currently checking in these scripts and requesting the build from the build engine or remarking out the RTC commands. However, I would find it easier if I could just run/test the ANT scripts with custom RTC commands within the RTC client/IDE. Is this possible? If so how? Thanks in advance, Donald Bell |
5 answers
Yes this is possible. The Jazz build ant tasks are packaged with RTC. If
you select Window | Preferences | Ant | Runtime and then the Tasks tab you'll see the Jazz build ant tasks that are available. Assuming your build script is included in an Eclipse project in your workspace you should be able to right click on it and select Run As | Ant Build... Be sure to select the "Run in the same JRE as the workspace" option on the JRE tab of the dialog that launches. The Jazz build ant tasks require this. There is also a topic in the help called "Running Ant buildfiles" that covers the generic topic of running ant build files within Eclipse. Don Weinand Jazz Team Build <bellds> wrote in message news:g5189v$tu9$1@localhost.localdomain... Hi, |
Selecting the "Run in the same JRE as workspace" option made it so that the RTC Ant tasks were found. However, when the build script calls the junitLogPublisher task an error of "Ant task attribute "buildResultUUID" contains illegal value "${buildResultUUID}"" is displayed.
I've tried overriding/setting the buildResultUUID property through the External Tools dialog, but I can't seem to find a value that will not cause the error. Any suggestions? Donald |
Normally that property containing that build result UUID value is
automatically being defined by the build engine since it controls the life cycle of the build by starting and completing it for you. You can take control of that life cycle in your script while you are debugging in the IDE by starting/completing it yourself using the ant tasks we supply for that. It would go something like this. <startTeamBuild> .... Your script code here .... <completeTeamBuild> Here's also a link to an example of using a stand alone build that may also help explain these tasks. https://jazz.net/wiki/bin/view/Main/AntStandalone Don Weinand Jazz Team Build <bellds> wrote in message news:g534lb$p55$2@localhost.localdomain... Selecting the "Run in the same JRE as workspace" option made |
Don,
Thanks for that wiki pointer. I had missed that article and it really helped. I was successfully able to get a build to run privately within my workspace. I did however need to make one change to the stand-alone sample. I had to change the references to build.log to be ${basedir}/build.log Thank you for your help, Donald Bell |
Glad to hear you got it working. I think the reason you had to modify that
path is because that example is for use with an external instance of Ant. It wasn't designed to run in the ant instance provided by the IDE. I only provided it as a reference example to help explain the other tasks. Although it seems like the modifications to the path you made would also work in the truly stand alone version. I'll try it out and see if it does. It would be nice if the same script just worked for both. Don Weinand Jazz Team Build <bellds> wrote in message news:g55cnm$o38$1@localhost.localdomain... Don, |
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.