[jbosstools-commits] JBoss Tools SVN: r35606 - trunk/build/aggregate/site.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Oct 13 02:02:03 EDT 2011


Author: nickboldt
Date: 2011-10-13 02:02:03 -0400 (Thu, 13 Oct 2011)
New Revision: 35606

Modified:
   trunk/build/aggregate/site/build.xml
Log:
when adding web content to update site, include directory.xml as well; add -Dcollect.zips.skip override to make testing easier

Modified: trunk/build/aggregate/site/build.xml
===================================================================
--- trunk/build/aggregate/site/build.xml	2011-10-13 06:01:56 UTC (rev 35605)
+++ trunk/build/aggregate/site/build.xml	2011-10-13 06:02:03 UTC (rev 35606)
@@ -475,8 +475,21 @@
 			</filterchain>
 		</copy>
 
+		<!-- get filename matching org.jboss.tools.central.discovery_1.0.0.v20111013-0511-M4.jar, then generate replacement directory.xml file -->
+		<path id="central.discovery.jar.id">
+		    <fileset dir="${update.site.source.dir}/plugins">
+		        <include name="org.jboss.tools.central.discovery_*.jar"/>
+		     </fileset>
+		</path>
+		<property name="central.discovery.path" refid="central.discovery.jar.id"/> 
+		<basename property="central.discovery.jar" file="${central.discovery.path}"/>
+		<echo file="${output.dir}/directory.xml">&lt;?xml version='1.0' encoding='UTF-8'?>
+&lt;directory xmlns="http://www.eclipse.org/mylyn/discovery/directory/">
+&lt;entry url="${jbosstools-nightly}plugins/${central.discovery.jar}" permitCategories="true"/>
+&lt;/directory>
+</echo>
 		<copy todir="${update.site.source.dir}">
-			<fileset dir="${output.dir}" includes="index.html, **/*.css, README*" />
+			<fileset dir="${output.dir}" includes="index.html, **/*.css, README*, directory.xml" />
 		</copy>
 	</target>
 
@@ -494,7 +507,7 @@
 
 	<!-- look for http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.*/logs/zip.list.txt; 
 	if found, load file and use ${ALL_ZIPS} to get list of relative path zips to fetch -->
-	<target name="collect.zips" description="collect zips from the sites we aggregated">
+	<target name="collect.zips" description="collect zips from the sites we aggregated" unless="collect.zips.skip">
 		<property name="aggregate.zips.dir" value="${output.dir}/zips" />
 		<delete dir="${aggregate.zips.dir}" quiet="true" />
 		<mkdir dir="${aggregate.zips.dir}" />



More information about the jbosstools-commits mailing list