Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2007-06-12 11:59:44 +0000
committerDoug Schaefer2007-06-12 11:59:44 +0000
commit39afec683fb13251a5dc1a91809414bb5e612b9f (patch)
tree6d169f8541c980ed3a12ae6b4a3ce88c364e3fa1 /releng/org.eclipse.cdt.releng/build.xml
parent2fefe6d0f16355dcb3bded3fbbeb736e92c0e80a (diff)
downloadorg.eclipse.cdt-39afec683fb13251a5dc1a91809414bb5e612b9f.tar.gz
org.eclipse.cdt-39afec683fb13251a5dc1a91809414bb5e612b9f.tar.xz
org.eclipse.cdt-39afec683fb13251a5dc1a91809414bb5e612b9f.zip
Get builds working on cdt vserver again.
Diffstat (limited to 'releng/org.eclipse.cdt.releng/build.xml')
-rw-r--r--releng/org.eclipse.cdt.releng/build.xml25
1 files changed, 24 insertions, 1 deletions
diff --git a/releng/org.eclipse.cdt.releng/build.xml b/releng/org.eclipse.cdt.releng/build.xml
index 2de18653641..6beb6dc0edb 100644
--- a/releng/org.eclipse.cdt.releng/build.xml
+++ b/releng/org.eclipse.cdt.releng/build.xml
@@ -5,7 +5,8 @@
</target>
<target name="build" depends="zips,test"/>
- <target name="nightly" depends="tag,zips,test,copy,mail"/>
+ <target name="nightly" depends="tag,zips,test,copy"/>
+ <target name="cdtbuild" depends="tag,zips,test,upload"/>
<target name="init">
<touch file="${user.home}/.cvspass" />
@@ -131,6 +132,28 @@
out="${zipsdir}/junits.html"/>
</target>
+ <target name="upload" depends="init" unless="hasErrors">
+ <property name="remotedir" value="dschaefer@dev.eclipse.org:cdt/builds/${branchVersion}"/>
+ <exec dir="${buildDirectory}" executable="scp">
+ <arg line="${remotedir}/index.html index.html"/>
+ </exec>
+ <replace file="${buildDirectory}/index.html">
+ <replacetoken><![CDATA[ <!-- add here -->]]></replacetoken>
+ <replacevalue><![CDATA[ <li><a href="@buildType@.@buildId@/index.html">@buildId@</a></li>
+ <!-- add here -->]]></replacevalue>
+ </replace>
+ <replace file="${buildDirectory}/index.html">
+ <replacefilter token="@buildType@" value="${buildType}"/>
+ <replacefilter token="@buildId@" value="${buildId}"/>
+ </replace>
+ <exec dir="${buildDirectory}" executable="scp">
+ <arg line="index.html ${remotedir}/index.html"/>
+ </exec>
+ <exec dir="${buildDirectory}" executable="scp">
+ <arg line="-r ${buildType}.${buildId} ${remotedir}"/>
+ </exec>
+ </target>
+
<target name="copy" depends="init" unless="hasErrors">
<property name="copyToDir" value="/home/www/tools/cdt/builds/${branchVersion}"/>
<replace file="${copyToDir}/index.html">

Back to the top