Author: hibou
Date: Wed Jul 27 16:02:01 2011
New Revision: 1151519
URL: http://svn.apache.org/viewvc?rev=1151519&view=rev
Log:
IVYDE-281
- first experiment of the generation of a P2 updatesite
Modified:
ant/ivy/updatesite/trunk/build.xml
Modified: ant/ivy/updatesite/trunk/build.xml
URL:
http://svn.apache.org/viewvc/ant/ivy/updatesite/trunk/build.xml?rev=1151519&r1=1151518&r2=1151519&view=diff
==============================================================================
--- ant/ivy/updatesite/trunk/build.xml (original)
+++ ant/ivy/updatesite/trunk/build.xml Wed Jul 27 16:02:01 2011
@@ -23,6 +23,7 @@
<property name="work.dir" value="${basedir}/work" />
<property name="updatesite.dir" value="${basedir}/dist" />
+ <property name="p2repository.dir" value="${work.dir}/p2repo" />
<target name="clean">
<delete dir="${work.dir}" />
@@ -492,6 +493,25 @@
<!--
===================================================================================================================
+ Targets to build a P2 repository
+
===================================================================================================================
+ -->
+
+ <target name="build-p2" depends="eclipse-classpath">
+ <java jar="${eclipse.classpath}" fork="true" failonerror="true">
+ <arg value="-consolelog" />
+ <arg line="-application
org.eclipse.equinox.p2.publisher.UpdateSitePublisher" />
+ <arg line="-source" />
+ <arg path="${updatesite.dir}" />
+ <arg line="-metadataRepository" />
+ <arg line="file://${p2repository.dir}" />
+ <arg line="-artifactRepository" />
+ <arg line="file://${p2repository.dir}" />
+ </java>
+ </target>
+
+ <!--
+
===================================================================================================================
Targets dedicated to be used by Hudson
The 'hudson-prepare' have to be launched first in its own ant call: it
will setup build properties