Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Problems getting create.product to work
Problems getting create.product to work [message #632219] Tue, 12 October 2010 07:11 Go to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
I'm having difficulting getting create.product to work. I have the
following build script:

> importtargetdefinition -A ${targetplatform}
> resolve -P buckminster.properties hubble.cquery
> resolve -P buckminster.properties hubble-tests.cquery
> setpref org.eclipse.buckminster.jdt.complianceLevel=1.6
>
> build
>
> perform -P buckminster.properties com.iar.hubble.product.feature#site.p2
> perform -P buckminster.properties com.iar.hubble.product.feature#create.product

The generated site works fine, and looks good when inspected in the B3
aggregator. It contains a product with a product id
"com.iar.hubble.product", which lists the correct features under
"Requirements".

However, when I execute the "create.product" action, the generated
product directory is (nearly) empty. The buckminster.cspex file looks
like this:

> <?xml version="1.0" encoding="UTF-8"?>
> <cspecExtension xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
>
> <actions>
> <public name="create.product" actor="ant">
> <actorProperties>
> <property key="buildFile" value="build/product.ant"/>
> <property key="targets" value="create.product"/>
> </actorProperties>
> <properties>
> <property key="profile" value="Hubble"/>
> <property key="iu" value="com.iar.hubble.product"/>
> </properties>
> <prerequisites alias="repository">
> <attribute name="site.p2"/>
> </prerequisites>
> <products alias="destination" base="${buckminster.output}">
> <path path="Hubble/"/>
> </products>
> </public>
> <public name="create.product.zip" actor="ant">
> <actorProperties>
> <property key="buildFileId" value="buckminster.pdetasks"/>
> <property key="targets" value="create.zip"/>
> </actorProperties>
> <prerequisites alias="action.requirements">
> <attribute name="create.product"/>
> </prerequisites>
> <products alias="action.output" base="${buckminster.output}">
> <path path="Hubble.zip"/>
> </products>
> </public>
> </actions>
> </cspecExtension>

and the product.ant file looks like this:

> <project>
> <pathconvert property="equinox.launcher.jar">
> <first count="1">
> <sort>
> <fileset dir="${eclipse.home}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar" />
> <reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators ">
> <date />
> </reverse>
> </sort>
> </first>
> </pathconvert>
>
> <target name="create.product">
> <property name="destination" location="${sp:destination}" />
> <delete dir="${destination}">
> </delete>
> <makeurl property="repository" file="${sp:repository}" />
> <mkdir dir="${destination}" />
> <echoproperties />
> <echo message="Launcher: ${equinox.launcher.jar}" />
> <echo message="Repository: ${repository}" />
> <echo message="Destination: ${destination}" />
> <java jar="${equinox.launcher.jar}" fork="true" failonerror="true">
> <arg value="-application" />
> <arg value="org.eclipse.equinox.p2.director" />
> <arg value="-artifactRepository" />
> <arg value="${repository}" />
> <arg value="-metadataRepository" />
> <arg value="${repository}" />
> <arg value="-destination" />
> <arg value="${destination}" />
> <arg value="-bundlepool" />
> <arg value="${destination}" />
> <arg value="-profile" />
> <arg value="${profile}" />
> <arg value="-profileProperties" />
> <arg value="org.eclipse.update.install.features=true" />
> <arg value="-installIU" />
> <arg value="${iu}" />
> <arg value="-p2.os" />
> <arg value="${target.os}" />
> <arg value="-p2.ws" />
> <arg value="${target.ws}" />
> <arg value="-p2.arch" />
> <arg value="${target.arch}" />
> <arg value="-consoleLog" />
> <arg value="-roaming" />
> <jvmarg value="-Declipse.p2.data.area=${destination}/p2" />
> <jvmarg value="-Declipse.p2.profile=${profile}" />
> </java>
> </target>
> </project>

But when I run the action, the only thing generated in the "Hubble/"
directory is

> $ find Hubble/
> Hubble/
> Hubble/p2
> Hubble/p2/org.eclipse.equinox.p2.core
> Hubble/p2/org.eclipse.equinox.p2.core/cache
> Hubble/p2/org.eclipse.equinox.p2.core/cache/artifacts.xml
> Hubble/p2/org.eclipse.equinox.p2.engine
> Hubble/p2/org.eclipse.equinox.p2.engine/.settings
> Hubble/p2/org.eclipse.equinox.p2.engine/.settings/org.eclips e.equinox.p2.artifact.repository.prefs
> Hubble/p2/org.eclipse.equinox.p2.engine/profileRegistry
> Hubble/p2/org.eclipse.equinox.p2.engine/profileRegistry/Hubb le.profile
> Hubble/p2/org.eclipse.equinox.p2.engine/profileRegistry/Hubb le.profile/.lock
> Hubble/p2/org.eclipse.equinox.p2.engine/profileRegistry/Hubb le.profile/1286866984304.profile.gz
> Hubble/p2/org.eclipse.equinox.p2.engine/profileRegistry/Hubb le.profile/1286866984437.profile.gz
> Hubble/p2/org.eclipse.equinox.p2.engine/profileRegistry/Hubb le.profile/.data
> Hubble/p2/org.eclipse.equinox.p2.engine/profileRegistry/Hubb le.profile/.data/.settings
> Hubble/p2/org.eclipse.equinox.p2.engine/profileRegistry/Hubb le.profile/.data/.settings/org.eclipse.equinox.p2.artifact.r epository.prefs

Any clues as to what I am missing?

--
Jesper Eskilson
Developer
IAR Systems
Re: Problems getting create.product to work [message #632287 is a reply to message #632219] Tue, 12 October 2010 13:05 Go to previous message
Philipp Nanz is currently offline Philipp NanzFriend
Messages: 46
Registered: February 2010
Member
Try removing those two lines:

> <jvmarg value="-Declipse.p2.data.area=${destination}/p2" />
> <jvmarg value="-Declipse.p2.profile=${profile}" />
Previous Topic:Hudson/Buckminster: Separate Build and Test Job with Emma
Next Topic:Build p2
Goto Forum:
  


Current Time: Tue Mar 19 04:51:44 GMT 2024

Powered by FUDForum. Page generated in 0.01689 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top