[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[p2-dev] category of features in update site
|
Hi,
we are building some features in headless
mode using an ANT script like the snippet below.
When installing from that repo they
end up as being "Uncategorized" in the software update UI
I could not find how to name categories.
<macrodef name="build.feature">
<attribute
name="feature" />
<attribute
name="build" default="${basedir}/build" />
<attribute
name="eclipse" default="${basedir}/eclipse" />
<attribute
name="base" default="@{eclipse}" />
<attribute
name="repository" default="${basedir}/repository" />
<attribute
name="repositoryName" default="@{repository}" />
<sequential>
<mkdir dir="@{build}" />
<copy todir="@{build}" overwrite="true">
<fileset
dir="@{eclipse}">
<include name="plugins/org.eclipse.pde.build*/templates/headless-build/*"
/>
</fileset>
<mapper
type="flatten" />
</copy>
<replace file="@{build}/allElements.xml"
token="element.id[.config.spec]" value="@{feature}"
/>
<pathconvert property="featureBuild.xml">
<fileset
dir="@{eclipse}/plugins" includes="org.eclipse.pde.build*/scripts/build.xml"
/>
</pathconvert>
<java jar="${launcher.jar}" fork="true"
failonerror="true">
<jvmarg
value="-Xms256m" />
<jvmarg
value="-Xmx768m" />
<arg
line="-clean" />
<arg
line="-application org.eclipse.ant.core.antRunner" />
<arg
line="-buildfile ${featureBuild.xml}" />
<arg
line="-DtopLevelElementId=@{feature}" />
<arg
line="-Dbaseos=${baseos}" />
<arg
line="-Dbasews=${basews}" />
<arg
line="-Dbasearch=${basearch}" />
<arg
line="-DbuildDirectory=@{build}" />
<arg
line="-Dbuilder=@{build}" />
<arg
line="-DbaseLocation=@{base}" />
<arg
line="-DbuildType=${buildType}" />
<arg
line="-DbuildId=${buildId}" />
<arg
line="-DforceContextQualifier=${qualifier}" />
<arg
line="-DjavacDebugInfo=true" />
<arg
line="-DjavacVerbose=false" />
<arg
line="-DjavacSource='1.5'" />
<arg
line="-DjavacTarget='1.5'" />
<arg
line="-Dgenerate.p2.metadata=true" />
<arg
line="-Dp2.metadata.repo=file:@{repository}" />
<arg
line="-Dp2.artifact.repo=file:@{repository}" />
<arg
value="-Dp2.metadata.repo.name=@{repositoryName}" />
<arg
value="-Dp2.artifact.repo.name=@{repositoryName}" />
<arg
line="-Dp2.flavor=tooling" />
<arg
line="-Dp2.publish.artifacts=true" />
</java>
<echo>Built @{feature}</echo>
</sequential>
</macrodef>
--------------------------------------------------
regards,
Edoardo Comar
IBM United Kingdom Ltd.
ecomar@xxxxxxxxxx
Tel +44 (0)1962 81 5576 (external) 245576 (internal)
www.ibm.com/cics/explorer
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU