1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Updated for CDT 2.0.

This commit is contained in:
Doug Schaefer 2003-10-23 20:23:02 +00:00
parent a73f8d56fd
commit db04e0e7f1
4 changed files with 293 additions and 286 deletions

View file

@ -1,9 +1,8 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<project name="CDT Build Bootstrap" default="main"> <project name="CDT Build Bootstrap" default="main">
<property name="build.version" value="1.2.0"/>
<property name="build.server" value="update.eclipse.org"/> <property name="build.server" value="update.eclipse.org"/>
<property name="build.remotedir" value="/home/www/tools/cdt/updates/builds/1.2"/> <property name="build.remotedir" value="/home/www/tools/cdt/updates/builds/2.0"/>
<!--property name="build.userid" value="userid on server"/--> <!--property name="build.userid" value="userid on server"/-->
<!--property name="build.password" value="password on server"/--> <!--property name="build.password" value="password on server"/-->

View file

@ -6,19 +6,19 @@
<xsl:template match="/"> <xsl:template match="/">
<html> <html>
<head> <head>
<title>CDT 1.2 Build Page</title> <title>CDT 2.0 Build Page</title>
</head> </head>
<body> <body>
<h2>CDT 1.2 Build Page</h2> <h2>CDT 2.0 Build Page</h2>
<p> <p>
The nightly builds are currently run every weeknight, The nightly builds are currently run twice a week
Monday to Friday at 3:00 a.m. EDT/EST. Monday and Thursday at 3:00 a.m. EDT/EST.
To get download and install the builds, add the following To get download and install the builds, add the following
as a site bookmark in Eclipse's Update Manager perspective: as a site bookmark in Eclipse's Update Manager perspective:
</p> </p>
<p> <p>
http://update.eclipse.org/tools/cdt/updates/builds/1.2 http://update.eclipse.org/tools/cdt/updates/builds/2.0
</p> </p>
<p> <p>
There is one category for each build. Expanding the There is one category for each build. Expanding the

View file

@ -1,287 +1,289 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/> <xsl:output indent="yes"/>
<xsl:template match="/"> <xsl:template match="/">
<project name="CDT Build Main" default="all"> <project name="CDT Build Main" default="all">
<target name="build"> <target name="build">
<!-- Set up build environment --> <!-- Set up build environment -->
<ftp server="${{build.server}}" <ftp server="${{build.server}}"
userid="${{build.userid}}" password="${{build.password}}" userid="${{build.userid}}" password="${{build.password}}"
remotedir="${{build.remotedir}}" action="get" passive="no"> remotedir="${{build.remotedir}}" action="get" passive="no">
<fileset dir="."> <fileset dir=".">
<include name="site.xml"/> <include name="site.xml"/>
<include name="build.number"/> <include name="build.number"/>
</fileset> </fileset>
</ftp> </ftp>
<buildnumber/> <propertyfile file="build.number">
<echo message="Build number: ${{build.version}}.${{build.number}}"/> <entry key="build.number" type="int" default="0" operation="+" pattern="0000"/>
<delete dir="build"/> </propertyfile>
<unzip src="zips/eclipse-SDK-2.1.1-linux-gtk.zip" dest="."/> <property file="build.number"/>
<move todir="build"> <echo message="Build number: ${{build.version}}.${{build.number}}"/>
<fileset dir="eclipse"/> <delete dir="build"/>
</move> <unzip src="zips/eclipse-SDK-2.1.1-linux-gtk.zip" dest="."/>
<move todir="build">
<!-- Download source from CVS --> <fileset dir="eclipse"/>
<xsl:for-each select="projects/plugin"> </move>
<cvs
cvsroot=":pserver:anonymous@dev.eclipse.org:/home/tools" <!-- Download source from CVS -->
dest="build/plugins" quiet="true"> <xsl:for-each select="projects/plugin">
<xsl:attribute name="package"> <cvs cvsroot=":pserver:anonymous@dev.eclipse.org:/home/tools" dest="build/plugins" quiet="true">
<xsl:value-of select="@name"/> <xsl:attribute name="package">
</xsl:attribute> <xsl:value-of select="@name"/>
</cvs> </xsl:attribute>
</xsl:for-each> </cvs>
</xsl:for-each>
<xsl:for-each select="projects/feature">
<cvs <xsl:for-each select="projects/feature">
cvsroot=":pserver:anonymous@dev.eclipse.org:/home/tools" <cvs cvsroot=":pserver:anonymous@dev.eclipse.org:/home/tools" dest="build/features" quiet="true">
dest="build/features" quiet="true"> <xsl:attribute name="package">
<xsl:attribute name="package"> <xsl:value-of select="@name"/>
<xsl:value-of select="@name"/> <xsl:text>-feature</xsl:text>
<xsl:text>-feature</xsl:text> </xsl:attribute>
</xsl:attribute> </cvs>
</cvs> <move>
<move> <xsl:attribute name="todir">
<xsl:attribute name="todir"> <xsl:text>build/features/</xsl:text>
<xsl:text>build/features/</xsl:text> <xsl:value-of select="@name"/>
<xsl:value-of select="@name"/> </xsl:attribute>
</xsl:attribute> <fileset defaultexcludes="no">
<fileset defaultexcludes="no"> <xsl:attribute name="dir">
<xsl:attribute name="dir"> <xsl:text>build/features/</xsl:text>
<xsl:text>build/features/</xsl:text> <xsl:value-of select="@name"/>
<xsl:value-of select="@name"/> <xsl:text>-feature</xsl:text>
<xsl:text>-feature</xsl:text> </xsl:attribute>
</xsl:attribute> </fileset>
</fileset> </move>
</move> </xsl:for-each>
</xsl:for-each>
<!-- Fix up the versions to match build number -->
<!-- Fix up the versions to match build number --> <xsl:for-each select="projects/plugin|projects/feature">
<xsl:for-each select="projects/plugin|projects/feature"> <xslt out="x" style="plugin.xsl">
<xslt out="x" style="plugin.xsl"> <xsl:attribute name="in">
<xsl:attribute name="in"> <xsl:text>build/</xsl:text>
<xsl:text>build/</xsl:text> <xsl:value-of select="name()"/>
<xsl:value-of select="name()"/> <xsl:text>s/</xsl:text>
<xsl:text>s/</xsl:text> <xsl:value-of select="@name"/>
<xsl:value-of select="@name"/> <xsl:text>/</xsl:text>
<xsl:text>/</xsl:text> <xsl:value-of select="@type"/>
<xsl:value-of select="@type"/> <xsl:text>.xml</xsl:text>
<xsl:text>.xml</xsl:text> </xsl:attribute>
</xsl:attribute> <param name="version" expression="${{build.version}}.${{build.number}}"/>
<param name="version" expression="${{build.version}}.${{build.number}}"/> </xslt>
</xslt> <move file="x">
<move file="x"> <xsl:attribute name="tofile">
<xsl:attribute name="tofile"> <xsl:text>build/</xsl:text>
<xsl:text>build/</xsl:text> <xsl:value-of select="name()"/>
<xsl:value-of select="name()"/> <xsl:text>s/</xsl:text>
<xsl:text>s/</xsl:text> <xsl:value-of select="@name"/>
<xsl:value-of select="@name"/> <xsl:text>/</xsl:text>
<xsl:text>/</xsl:text> <xsl:value-of select="@type"/>
<xsl:value-of select="@type"/> <xsl:text>.xml</xsl:text>
<xsl:text>.xml</xsl:text> </xsl:attribute>
</xsl:attribute> </move>
</move> </xsl:for-each>
</xsl:for-each>
<!-- Prepare the source plugin -->
<!-- Prepare the source plugin --> <property name="source.plugin" value="org.eclipse.cdt.source"/>
<property name="source.plugin" value="org.eclipse.cdt.source"/> <replace
<replace file="build/plugins/${{source.plugin}}/build.properties"
file="build/plugins/${{source.plugin}}/build.properties" token="plugin.properties"
token="plugin.properties" value="plugin.properties,src/"/>
value="plugin.properties,src/"/>
<!-- Generate build.xml files for projects -->
<xslt in="manifest.xml" out="build/genscripts.xml" style="genscripts.xsl"/>
<chmod perm="+x" file="build/eclipse"/>
<exec executable="${{basedir}}/build/eclipse">
<arg line="-nosplash -data build/workspace"/>
<arg line="-application org.eclipse.ant.core.antRunner"/>
<arg line="-buildfile build/genscripts.xml"/>
</exec>
<!-- Generate build.xml files for projects --> <!-- Run the build.xml scripts -->
<xslt in="manifest.xml" out="build/genscripts.xml" style="genscripts.xsl"/> <xsl:for-each select="projects/plugin">
<chmod perm="+x" file="build/eclipse"/> <!-- Build the source jars -->
<exec executable="${{basedir}}/build/eclipse"> <ant target="build.sources">
<arg line="-nosplash -data build/workspace"/> <xsl:attribute name="dir">
<arg line="-application org.eclipse.ant.core.antRunner"/> <xsl:text>build/plugins/</xsl:text>
<arg line="-buildfile build/genscripts.xml"/> <xsl:value-of select="@name"/>
</exec> </xsl:attribute>
<property name="javacFailOnError" value="true"/>
<!-- Run the build.xml scripts --> <property name="ws" value="gtk"/>
<xsl:for-each select="projects/plugin"> <property name="os" value="linux"/>
<!-- Build the source jars --> </ant>
<ant target="build.sources"> <ant target="gather.sources">
<xsl:attribute name="dir"> <xsl:attribute name="dir">
<xsl:text>build/plugins/</xsl:text> <xsl:text>build/plugins/</xsl:text>
<xsl:value-of select="@name"/> <xsl:value-of select="@name"/>
</xsl:attribute> </xsl:attribute>
<property name="javacFailOnError" value="true"/> <property name="javacFailOnError" value="true"/>
<property name="ws" value="gtk"/> <property name="ws" value="gtk"/>
<property name="os" value="linux"/> <property name="os" value="linux"/>
</ant> <property name="destination.temp.folder" value="../${{source.plugin}}/src"/>
<ant target="gather.sources"> </ant>
<xsl:attribute name="dir"> </xsl:for-each>
<xsl:text>build/plugins/</xsl:text>
<xsl:value-of select="@name"/> <xsl:for-each select="projects/feature">
</xsl:attribute> <!-- The default to build the update jars -->
<property name="javacFailOnError" value="true"/> <ant>
<property name="ws" value="gtk"/> <xsl:attribute name="dir">
<property name="os" value="linux"/> <xsl:text>build/features/</xsl:text>
<property name="destination.temp.folder" value="../${{source.plugin}}/src"/> <xsl:value-of select="@name"/>
</ant> </xsl:attribute>
</xsl:for-each> <property name="javacFailOnError" value="true"/>
<property name="ws" value="gtk"/>
<xsl:for-each select="projects/feature"> <property name="os" value="linux"/>
<!-- The default to build the update jars --> </ant>
<ant> <!-- The old style zips -->
<xsl:attribute name="dir"> <ant target="zip.distribution">
<xsl:text>build/features/</xsl:text> <xsl:attribute name="dir">
<xsl:value-of select="@name"/> <xsl:text>build/features/</xsl:text>
</xsl:attribute> <xsl:value-of select="@name"/>
<property name="javacFailOnError" value="true"/> </xsl:attribute>
<property name="ws" value="gtk"/> <property name="javacFailOnError" value="true"/>
<property name="os" value="linux"/> <property name="ws" value="gtk"/>
</ant> <property name="os" value="linux"/>
<!-- The old style zips --> </ant>
<ant target="zip.distribution"> </xsl:for-each>
<xsl:attribute name="dir">
<xsl:text>build/features/</xsl:text> <!-- Move jars and zips to the update site format -->
<xsl:value-of select="@name"/> <delete dir="plugins"/>
</xsl:attribute> <copy todir="plugins" flatten="true">
<property name="javacFailOnError" value="true"/> <fileset dir="build/plugins">
<property name="ws" value="gtk"/> <xsl:for-each select="projects/plugin">
<property name="os" value="linux"/> <include>
</ant> <xsl:attribute name="name">
</xsl:for-each> <xsl:value-of select="@name"/>
<xsl:text>/</xsl:text>
<!-- Move jars and zips to the update site format --> <xsl:value-of select="@name"/>
<delete dir="plugins"/> <xsl:text>_${build.version}.${build.number}.jar</xsl:text>
<copy todir="plugins" flatten="true"> </xsl:attribute>
<fileset dir="build/plugins"> </include>
<xsl:for-each select="projects/plugin"> </xsl:for-each>
<include> </fileset>
<xsl:attribute name="name"> </copy>
<xsl:value-of select="@name"/> <delete dir="features"/>
<xsl:text>/</xsl:text> <copy todir="features" flatten="true">
<xsl:value-of select="@name"/> <fileset dir="build/features">
<xsl:text>_${build.version}.${build.number}.jar</xsl:text> <xsl:for-each select="projects/feature">
</xsl:attribute> <include>
</include> <xsl:attribute name="name">
</xsl:for-each> <xsl:value-of select="@name"/>
</fileset> <xsl:text>/</xsl:text>
</copy> <xsl:value-of select="@name"/>
<delete dir="features"/> <xsl:text>_${build.version}.${build.number}.jar</xsl:text>
<copy todir="features" flatten="true"> </xsl:attribute>
<fileset dir="build/features"> </include>
<xsl:for-each select="projects/feature"> </xsl:for-each>
<include> </fileset>
<xsl:attribute name="name"> </copy>
<xsl:value-of select="@name"/> <delete dir="dist"/>
<xsl:text>/</xsl:text> <copy todir="dist" flatten="true">
<xsl:value-of select="@name"/> <fileset dir="build/features">
<xsl:text>_${build.version}.${build.number}.jar</xsl:text> <xsl:for-each select="projects/feature">
</xsl:attribute> <include>
</include> <xsl:attribute name="name">
</xsl:for-each> <xsl:value-of select="@name"/>
</fileset> <xsl:text>/</xsl:text>
</copy> <xsl:value-of select="@name"/>
<delete dir="dist"/> <xsl:text>_${build.version}.${build.number}.bin.dist.zip</xsl:text>
<copy todir="dist" flatten="true"> </xsl:attribute>
<fileset dir="build/features"> </include>
<xsl:for-each select="projects/feature"> </xsl:for-each>
<include> </fileset>
<xsl:attribute name="name"> </copy>
<xsl:value-of select="@name"/>
<xsl:text>/</xsl:text> <!-- Set up the test environment -->
<xsl:value-of select="@name"/> <delete dir="test"/>
<xsl:text>_${build.version}.${build.number}.bin.dist.zip</xsl:text> <unzip src="zips/eclipse-SDK-2.1.1-linux-gtk.zip" dest="."/>
</xsl:attribute> <move todir="test">
</include> <fileset dir="eclipse"/>
</xsl:for-each> </move>
</fileset> <unzip src="zips/org.eclipse.test_2.1.0.zip" dest="test/plugins"/>
</copy> <unzip src="zips/org.eclipse.ant.optional.junit_2.1.0.zip" dest="test/plugins"/>
<!-- Set up the test environment --> <xsl:for-each select="projects/plugin|projects/feature">
<delete dir="test"/> <unjar>
<unzip src="zips/eclipse-SDK-2.1.1-linux-gtk.zip" dest="."/> <xsl:attribute name="src">
<move todir="test"> <xsl:value-of select="name()"/>
<fileset dir="eclipse"/> <xsl:text>s/</xsl:text>
</move> <xsl:value-of select="@name"/>
<unzip src="zips/org.eclipse.test_2.1.0.zip" dest="test/plugins"/> <xsl:text>_${build.version}.${build.number}.jar</xsl:text>
<unzip src="zips/org.eclipse.ant.optional.junit_2.1.0.zip" dest="test/plugins"/> </xsl:attribute>
<xsl:attribute name="dest">
<xsl:for-each select="projects/plugin|projects/feature"> <xsl:text>test/</xsl:text>
<unjar> <xsl:value-of select="name()"/>
<xsl:attribute name="src"> <xsl:text>s/</xsl:text>
<xsl:value-of select="name()"/> <xsl:value-of select="@name"/>
<xsl:text>s/</xsl:text> <xsl:text>_${build.version}.${build.number}</xsl:text>
<xsl:value-of select="@name"/> </xsl:attribute>
<xsl:text>_${build.version}.${build.number}.jar</xsl:text> </unjar>
</xsl:attribute> </xsl:for-each>
<xsl:attribute name="dest">
<xsl:text>test/</xsl:text> <!-- Run the tests -->
<xsl:value-of select="name()"/> <chmod perm="+x" file="test/eclipse"/>
<xsl:text>s/</xsl:text> <exec executable="${{basedir}}/test/eclipse" dir="test">
<xsl:value-of select="@name"/> <arg line="-nosplash"/>
<xsl:text>_${build.version}.${build.number}</xsl:text> <arg line="-application org.eclipse.ant.core.antRunner"/>
</xsl:attribute> <arg line="-buildfile plugins/org.eclipse.cdt.core.tests_${{build.version}}.${{build.number}}/test.xml"/>
</unjar> <arg line="-Dorg.eclipse.test=org.eclipse.test_2.1.0"/>
</xsl:for-each> <arg line="-Declipse-home=${{basedir}}/test"/>
<arg line="-Dos=linux -Dws=gtk -Darch=x86"/>
<!-- Run the tests --> </exec>
<chmod perm="+x" file="test/eclipse"/>
<exec executable="${{basedir}}/test/eclipse" dir="test"> <!-- Create the reports -->
<arg line="-nosplash"/> <delete dir="logs"/>
<arg line="-application org.eclipse.ant.core.antRunner"/> <xslt in="test/org.eclipse.cdt.core.tests.xml"
<arg line="-buildfile plugins/org.eclipse.cdt.core.tests_${{build.version}}.${{build.number}}/test.xml"/> out="logs/${{build.version}}.${{build.number}}/org.eclipse.cdt.core.tests.html"
<arg line="-Dorg.eclipse.test=org.eclipse.test_2.1.0"/> style="junit.xsl"/>
<arg line="-Declipse-home=${{basedir}}/test"/>
<arg line="-Dos=linux -Dws=gtk -Darch=x86"/> <!-- Add our version to site.xml -->
</exec> <tstamp>
<format property="build.date" pattern="EEE MMM d HH:mm:ss z yyyy"/>
<!-- Create the reports --> </tstamp>
<delete dir="logs"/> <xslt in="site.xml" out="s" style="site.xsl">
<xslt in="test/org.eclipse.cdt.core.tests.xml" <param name="version" expression="${{build.version}}.${{build.number}}"/>
out="logs/${{build.version}}.${{build.number}}/org.eclipse.cdt.core.tests.html" <param name="date" expression="${{build.date}}"/>
style="junit.xsl"/> </xslt>
<move file="s" tofile="site.xml"/>
<!-- Add our version to site.xml -->
<tstamp> <!-- Generate the site home page -->
<format property="build.date" pattern="EEE MMM d HH:mm:ss z yyyy"/> <xslt in="site.xml" out="index.html" style="index.xsl"/>
</tstamp>
<xslt in="site.xml" out="s" style="site.xsl"> </target>
<param name="version" expression="${{build.version}}.${{build.number}}"/>
<param name="date" expression="${{build.date}}"/> <target name="upload">
</xslt> <!-- Upload the update site -->
<move file="s" tofile="site.xml"/> <ftp server="${{build.server}}"
userid="${{build.userid}}" password="${{build.password}}"
<!-- Generate the site home page --> remotedir="${{build.remotedir}}" action="put" passive="no">
<xslt in="site.xml" out="index.html" style="index.xsl"/> <fileset dir=".">
<include name="plugins/*.jar"/>
</target> <include name="features/*.jar"/>
<include name="dist/*.zip"/>
<target name="upload"> <include name="logs/**/*.html"/>
<!-- Upload the update site --> <include name="build.number"/>
<ftp server="${{build.server}}" <include name="index.html"/>
userid="${{build.userid}}" password="${{build.password}}" <include name="site.xml"/>
remotedir="${{build.remotedir}}" action="put" passive="no"> </fileset>
<fileset dir="."> </ftp>
<include name="plugins/*.jar"/> </target>
<include name="features/*.jar"/>
<include name="dist/*.zip"/> <target name="mail">
<include name="logs/**/*.html"/> <mail from="dschaefe@ca.ibm.com"
<include name="build.number"/> tolist="cdt-test-dev@eclipse.org"
<include name="index.html"/> subject="CDT Build ${{build.version}}.${{build.number}} completed">
<include name="site.xml"/> <message src="message.txt"/>
</fileset> </mail>
</ftp> </target>
</target>
<target name="all" depends="build,upload,mail"/>
<target name="mail">
<mail from="dschaefe@ca.ibm.com" </project>
tolist="cdt-test-dev@eclipse.org"
subject="CDT Build ${{build.version}}.${{build.number}} completed" </xsl:template>
message="This has been an automated message"/>
</target>
<target name="all" depends="build,upload,mail"/>
</project>
</xsl:template>
</xsl:transform> </xsl:transform>

View file

@ -0,0 +1,6 @@
The build is available at
http://update.eclipse.org/tools/cdt/updates/builds/2.0
Cheers,
dschaefer2, the buildmaster...