Tuesday, 4 August 2009

Sorting out properties for p2 build

We've got our p2 headless build script (build_release.xml), which has it's properties file (build_release.properties). This properties file specifies file locations and some properties.

The build script calls productBuild.xml (via an Ant Java task). which then cascades some script calls to other build files. Unfortunately the properties don't get through to productBuild.xml - so it falls over.

I fixed this by adding
<property file="C:/dev/cmap_35/org.mwc.debrief.build/build_release.properties" />


near the top.

Then it worked just fine. Note, the initial error was described as a malformedURLException - where Ant couldn't create a URL for the eclipseBaseURL property. But, in fact, these parameters should have been ignored. The skipBase property was indicating that they be ignored. so the problem was caused by the skipBase property not being propagated to the Ant task that tried to build the URL.

========

Hah, just had this again.  To resolve the problem I had to put the property file importer into build.xml, found in eclipse_xxx/plugins/xxx.pde.build.xxx/scripts

Sorted.

1 comment:

  1. Repeat: fell over because of this again. It needs to be done for each Eclipse installation used.

    ReplyDelete