[jbosstools-commits] JBoss Tools SVN: r22801 - trunk/build/target-platform.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Mon Jun 14 19:28:55 EDT 2010
Author: nickboldt
Date: 2010-06-14 19:28:55 -0400 (Mon, 14 Jun 2010)
New Revision: 22801
Added:
trunk/build/target-platform/build.xml
Log:
https://jira.jboss.org/browse/JBDS-1247 script to run xslt and then perform p2.mirror operation; must be run w/ Eclipse AntRunner
Added: trunk/build/target-platform/build.xml
===================================================================
--- trunk/build/target-platform/build.xml (rev 0)
+++ trunk/build/target-platform/build.xml 2010-06-14 23:28:55 UTC (rev 22801)
@@ -0,0 +1,33 @@
+<project default="run" basedir="." name="Install a target platform into local Eclipse">
+ <!-- To fetch a number of features remote repo(s) and mirror them locally, run this in target/platform dir:
+
+ ~/eclipse/36clean/eclipse/eclipse -nosplash -data /tmp/workspace -consolelog \
+ -application org.eclipse.ant.core.antRunner -f build.xml | tee log.txt
+ -->
+
+ <!-- what target file should be installed? -->
+ <property name="target.to.install" value="e36-wtp32.target" />
+
+ <!-- where should this target be installed? Into ${eclipse.home} or /path/to/eclipse -->
+ <!-- <property name="eclipse.install.dir" value="${eclipse.home}" /> -->
+ <property name="eclipse.install.dir" value="/home/nboldt/eclipse/36clean2/eclipse" />
+
+ <target name="init" unless="eclipse.install.dir">
+ <fail>Must set -Declipse.install.dir=/path/to/install/</fail>
+ </target>
+
+ <target name="run" depends="init" if="eclipse.install.dir">
+
+ <!-- create p2.mirror ant script -->
+ <property name="mirror" value="p2.mirror.xml" />
+ <xslt style="target2ant.xsl" in="${target.to.install}" out="${mirror}" force="true" />
+
+ <!-- run generated p2.mirror ant script -->
+ <ant antfile="p2.mirror.xml">
+ <property name="eclipse.install.dir" value="${eclipse.install.dir}" />
+ </ant>
+
+ <!-- cleanup -->
+ <delete file="${mirror}" quiet="true" />
+ </target>
+</project>
Property changes on: trunk/build/target-platform/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
More information about the jbosstools-commits
mailing list