How to create a build definition post M9?
I am trying to configure a new RC1 client/server environment. Things
were going well until I tried to create a new build definition only to find that my build script from M9 won't work anymore due to many deprecated APIs. So fine, I'll just create a new build definition from scratch and then manually make my changes... problem is that in RC1 it doesn't seem to generate any sort of template build script at all! It just opens a blank build.xml file. First of all, is this empty build.xml file expected behavior? Any help to get a simple build going would be greatly appreciated. Thanks, Mike Wulkan |
3 answers
Hi Mike,
RC1 should not create an empty build script. Are you selecting "Create a build from scratch" on the first page of the New Build Definition wizard and Jazz Build Engine - Ant on the second page? I've seen incorrect build.xml generated with an older version of the IBM JVM. What JVM are you using? Martha 2/13/2007 10:47:49 AM Mike Wulkan <wulkan@ca.ibm.com> wrote in message <eqsrap$sdc$1@localhost.localdomain> I am trying to configure a new RC1 client/server environment. Composed with Newz Crawler 1.8 http://www.newzcrawler.com/ |
Martha Andrews wrote:
Hi Mike, Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20061002a (SR3) ) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-2006100 1 (JIT enabled) J9VM - 20060915_08260_lHdSMR JIT - 20060908_1811_r8 GC - 20060906_AA) JCL - 20061002 Yes, I am creating the build from scratch and selecting Ant on the second page. The only other thing to note is that I alter the default build.xml path as well as the Properties file path and the Working Dir. Thanks, Mike I've seen incorrect build.xml generated with an older version of the |
Hi Mike,
You've discovered a bug; changing the path causes the build.xml file not to be created in RC1. The workaround is to take the defaults in the wizard, then move the build.xml file and update the build definition. Here are the steps: 1. Create a new build definition, taking the defaults in the wizard. 2. Stop the build engine. (It is a Java launch, so you can stop it in the Console window, or by bringing up the Debug view). 3. Copy the build.xml file to the directory where you want it to live. 4. Edit the build definition (from the context menu in the Build Admin view) and change the following properties: buildFile should point to the place where you moved the build.xml file propertiesFiles should point to build.properties in the same directory as the build.xml file. 5. Start the Jazz Build Engine (from the Eclipse Run menu). I've opened workitem 17500 to track this issue. You can see the work item here: https://jazz. net/jazz/web/projects/Jazz%20Project#perspective=Work%20Items&action=viewWorkItem&id=17500 Martha 2/13/2007 1:50:17 PM Mike Wulkan <wulkan@ca.ibm.com> wrote in message <eqta1m$u2$1@localhost.localdomain> Martha Andrews wrote: Composed with Newz Crawler 1.8 http://www.newzcrawler.com/ |
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.