Executing targets for a build twice?
![]()
We're using Jazz Build Engine for our builds which are builidng an IM offering. The build is set up to do a buildEnginePrep, build, package and publish. However, I need to do this once and then copy some mock translation files that are displayed by IM and then perform the build again during the same build. I created targets called build-real and build-mock which build-all depends on. I only do the buildEnginePrep for build-real which executes first. Everything does fine for the build-real, however, the build-mock calls the build target, but that target seems to just return the second time without executing. The log file just shows it returning. What do I need to do to get the targets to execute twice?
|
2 answers
![]()
On 5/7/12 6:08 , rossa wrote:
Everything does fine for the You didn't say what scripting language your build script is written in, so I will assume Ant. If it's something else, then this answer doesn't apply. To have an Ant target run twice, you need to use <antcall> within the body of a target rather than using the depends="..." mechanism in the header of the target. If the target has to be called at the correct time, it may take some thought to organize your Ant script in just the right way. -- David Olsen | IBM Rational | Jazz Process Team |
![]() On 5/7/12 6:08 , rossa wrote:Everything does fine for the |
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.