|
From: <mba...@us...> - 2007-02-18 11:47:08
|
Revision: 1964
http://svn.sourceforge.net/rubyeclipse/?rev=1964&view=rev
Author: mbarchfe
Date: 2007-02-18 03:47:06 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
not needed anymore
Removed Paths:
-------------
trunk/org.rubypeople.rdt.build/cruiseControl/customTargets.xml
trunk/org.rubypeople.rdt.build/cruiseControl/svn_co_rdt
Deleted: trunk/org.rubypeople.rdt.build/cruiseControl/customTargets.xml
===================================================================
--- trunk/org.rubypeople.rdt.build/cruiseControl/customTargets.xml 2007-02-18 11:46:13 UTC (rev 1963)
+++ trunk/org.rubypeople.rdt.build/cruiseControl/customTargets.xml 2007-02-18 11:47:06 UTC (rev 1964)
@@ -1,291 +0,0 @@
-<project name="Build specific targets and properties" default="noDefault" >
- <condition property="isNightlyBuild">
- <equals arg1="${buildType}" arg2="N"/>
- </condition>
- <condition property="isNightlyOrIntegrationBuild">
- <or>
- <equals arg1="${buildType}" arg2="N"/>
- <equals arg1="${buildType}" arg2="I"/>
- </or>
- </condition>
- <echo message="BuildType: ${buildType}"/>
- <property file="${buildDirectory}/version.properties"/>
- <property name="buildLabel" value="${buildType}-${featureVersion}"/>
- <property name="buildId" value="${featureVersion}"/>
- <!-- ===================================================================== -->
- <!-- Run a given ${target} on all elements being built -->
- <!-- Add on <ant> task for each top level element being built. -->
- <!-- ===================================================================== -->
- <target name="allElements">
- <condition property="isFetch" value="true">
- <equals arg1="${target}" arg2="fetchElement"/>
- </condition>
- <antcall target="delegateToGenericTargets"/>
- <antcall target="fetchFromSubversionRepository"/>
- </target>
-
-
- <target name="fetchFromSubversionRepository" if="isFetch">
- <exec executable="${svnScript}">
- <arg line="${buildDirectory}"/>
- <arg line="${fetchTag}"/>
- </exec>
- </target>
-
- <target name="delegateToGenericTargets" unless="isFetch">
- <echo message="Delegating ${target}"/>
- <ant antfile="${genericTargets}" target="${target}" >
- <property name="type" value="feature" />
- <property name="id" value="org.rubypeople.rdt" />
- </ant>
- <ant antfile="${genericTargets}" target="${target}" >
- <property name="type" value="feature" />
- <property name="id" value="org.rubypeople.rdt-tests" />
- </ant>
- </target>
-
- <!-- ===================================================================== -->
- <!-- Targets to assemble the built elements for particular configurations -->
- <!-- These generally call the generated assemble scripts (named in -->
- <!-- ${assembleScriptName}) but may also add pre and post processing -->
- <!-- Add one target for each root element and each configuration -->
- <!-- ===================================================================== -->
- <target name="assemble.org.rubypeople.rdt">
- <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
- <property name="zipargs" value="" />
- </ant>
- </target>
- <target name="assemble.org.rubypeople.rdt-tests">
- <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
- <property name="zipargs" value="" />
- </ant>
- </target>
- <!-- ===================================================================== -->
- <!-- Check out map files from correct repository -->
- <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
- <!-- ===================================================================== -->
- <target name="getMapFiles">
- <!-- Since we use subversion map files are not used anymore. See script
- svn_co_rdt for more information about subversion checkout -->
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do before setup -->
- <!-- ===================================================================== -->
- <target name="preSetup" unless="featureVersion">
- <tstamp>
- <!-- unfortunately one "y" in the pattern pads with 0, so 2005 will be displayed as 05 -->
- <format property="build.tstamp" pattern="5MMddhhmm"/>
- </tstamp>
- <condition property="featureVersion" value="${nightlyBuildFeatureVersionPrefix}${build.tstamp}NGT">
- <equals arg1="${buildType}" arg2="N"/>
- </condition>
- <condition property="featureVersion" value="${nightlyBuildFeatureVersionPrefix}${build.tstamp}INT">
- <equals arg1="${buildType}" arg2="I"/>
- </condition>
- <fail unless="featureVersion" message="Property featureVersion must be set. Either directly or in case of a nightly build with nightlyBuildFeatureVersionPrefix."/>
- <echo message="Using featureVersion: ${featureVersion}."/>
- <echo file="${buildDirectory}/version.properties" message="featureVersion=${featureVersion}"/>
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do after setup but before starting the build proper -->
- <!-- ===================================================================== -->
- <target name="postSetup">
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do before fetching the build elements -->
- <!-- ===================================================================== -->
- <target name="preFetch">
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do after fetching the build elements -->
- <!-- ===================================================================== -->
- <target name="postFetch">
-
- <antcall target="replaceVersions"/>
- <antcall target="setUpdateSiteURL"/>
- </target>
-
- <target name="replaceVersions" if="baseFeatureVersion">
- <echo message="Replacing version in the feature files: replacing ${baseFeatureVersion} with ${featureVersion}"/>
- <!-- make sure to select the test feature file as well -->
- <replace dir="${buildDirectory}/features">
- <include name="org.rubypeople.*/feature.xml"/>
- <replacefilter token="${baseFeatureVersion}" value="${featureVersion}" />
- </replace>
- <!-- in a manual build started with export from the feature.xml, there is no
- need to replace the versions in the plugin.xml files if they are set to 0.0.0,
- but here it needs to be -->
- <replace dir="${buildDirectory}/plugins">
- <include name="org.rubypeople.*/plugin.xml"/>
- <replacefilter token="${baseFeatureVersion}" value="${featureVersion}" />
- </replace>
- <replace dir="${buildDirectory}/plugins">
- <include name="org.rubypeople.*/META-INF/MANIFEST.MF"/>
- <replacefilter token="Bundle-Version: ${baseFeatureVersion}" value="Bundle-Version: ${featureVersion}" />
- </replace>
- </target>
-
- <target name="setUpdateSiteURL" if="isNightlyOrIntegrationBuild">
-
- <!-- do not replace the update site URL if it is a release build -->
- <condition property="updateSiteUrl"
- value="${nightlyBuildUpdateSiteURL}"
- else="${integrationBuildUpdateSiteURL}">
- <isset property="isNightlyBuild"/>
- </condition>
- <echo message="Setting update-site URL: ${updateSiteUrl}"/>
- <replace dir="${buildDirectory}/features">
- <include name="org.rubypeople.*/feature.xml"/>
- <replacefilter token="${releaseUpdateSiteURL}" value="${updateSiteUrl}" />
- </replace>
- </target>
-
- <!-- ===================================================================== -->
- <!-- Steps to do before generating the build scripts. -->
- <!-- ===================================================================== -->
- <target name="preGenerate">
- <fail unless="featureVersion" message="Property featureVersion must be set. Either directly or in case of a nightly build with nightlyBuildFeatureVersionPrefix."/>
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do after generating the build scripts. -->
- <!-- ===================================================================== -->
- <target name="postGenerate">
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do before running the build.xmls for the elements being built. -->
- <!-- ===================================================================== -->
- <target name="preProcess">
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do after running the build.xmls for the elements being built. -->
- <!-- ===================================================================== -->
- <target name="postProcess">
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do before running assemble. -->
- <!-- ===================================================================== -->
- <target name="preAssemble">
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do after running assemble. -->
- <!-- ===================================================================== -->
- <target name="postAssemble">
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do after the build is done. -->
- <!-- ===================================================================== -->
- <target name="postBuild">
- <property name="UpdateSiteStagingLocation" value="${buildDirectory}/updateSite"/>
- <property name="sitePackagePrefix" value="org.rubypeople.updatesite"/>
- <antcall target="generateUpdateSite"/>
- <antcall target="test"/>
- <antcall target="package"/>
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to test the build results -->
- <!-- ===================================================================== -->
- <target name="test" unless="dontRunTests">
- <echo message="Setting up tests in ${eclipseAutomatedTestHome}"/>
- <delete>
- <fileset dir="${eclipseAutomatedTestHome}" includes="**/*RDT*.zip"/>
- </delete>
- <copy file="${buildDirectory}/${buildLabel}/org.rubypeople.rdt-${buildId}.zip" tofile="${eclipseAutomatedTestHome}/eclipse-SDK-RDT-${buildId}.zip" />
- <copy file="${buildDirectory}/${buildLabel}/org.rubypeople.rdt-tests-${buildId}.zip" tofile="${eclipseAutomatedTestHome}/eclipse-junit-tests-RDT-${buildId}.zip" />
- <ant antfile="${eclipseAutomatedTestHome}/test.xml" target="runtests" dir="${eclipseAutomatedTestHome}">
- <property name="os" value="${baseos}" />
- <property name="ws" value="${basews}" />
- <property name="arch" value="${basearch}" />
- <property name="testPlugin" value="org.rubypeople.rdt.tests.all_${featureVersion}" />
- <property name="report" value="org.rubypeople.rdt.tests.all" />
- </ant>
- </target>
- <!--======================================================-->
- <!-- UpdateSite Export target -->
- <!-- ==================================================== -->
- <target name="updateSiteExport">
- <ant antfile="build.xml" dir="${buildDirectory}/features/${id}/" target="build.update.jar">
- <property name="feature.destination" value="${UpdateSiteStagingLocation}/features"/>
- <property name="plugin.destination" value="${UpdateSiteStagingLocation}/plugins"/>
- </ant>
- </target>
-
- <target name="generateUpdateSite">
- <!-- Create the directory structure -->
- <mkdir dir="${UpdateSiteStagingLocation}"/>
- <mkdir dir="${UpdateSiteStagingLocation}/features"/>
- <mkdir dir="${UpdateSiteStagingLocation}/plugins"/>
- <!-- Build the jar files -->
- <antcall target="allElements">
- <param name="genericTargets" value="${builder}/customTargets.xml"/>
- <param name="target" value="updateSiteExport"/>
- </antcall>
- <!-- site.xml files for integration and release builds are handled in build-RDT.xml -->
- <antcall target="createNightlyBuildSiteXml"/>
- <delete dir="${buildDirectory}/temp.updatesite"/>
- </target>
-
- <target name="createNightlyBuildSiteXml" if="isNightlyBuild">
- <echo file="${UpdateSiteStagingLocation}/site.xml"><?xml version="1.0" encoding="UTF-8"?>
- <site>
- <description> The Ruby Development Tools nightly builds. </description>
- <feature url="features/org.rubypeople.rdt_${featureVersion}.jar" id="org.rubypeople.rdt" version="${featureVersion}"> <category
- name="RubyEclipseNightlyBuilds"/> </feature>
- <category-def name="RubyEclipseNightlyBuilds" label="RDT Nightly Builds"> </category-def> </site>
- </echo>
- </target>
-
- <target name="package">
- <echo message="Creating and filling ${buildResultsDirectory}" />
- <mkdir dir="${buildResultsDirectory}"/>
- <mkdir dir="${buildResultsDirectory}/logs"/>
-
- <copy todir="${buildResultsDirectory}/logs" flatten="true">
- <fileset dir="${buildDirectory}">
- <include name="**/*.log"/>
- </fileset>
- </copy>
- <copy todir="${buildResultsDirectory}" flatten="true">
- <fileset dir="${buildDirectory}">
- <include name="**/org.rubypeople.rdt-*.zip"/>
- <include name="**/Changelog.txt"/>
- <!-- exclude the org.rubypeople.rdt-tests-*.zip file -->
- <exclude name="**/*-tests-*"/>
- </fileset>
- </copy>
-
- <!-- rename the results file, so that every build result file has a unique name and
- browsers don't fool users with cached versions -->
- <copy file="${eclipseAutomatedTestHome}/results/html/org.rubypeople.rdt.tests.all_.html"
- tofile="${buildResultsDirectory}/org.rubypeople.rdt.tests.all_${featureVersion}.html"
- failonerror="false"/>
-
- <copy file="${buildDirectory}/workspace-rdt-tests/.metadata/.log"
- tofile="${buildResultsDirectory}/logs/testsWorkspace.log"
- failonerror="false"/>
-
- <mkdir dir="${buildResultsDirectory}/updateSite"/>
- <copy todir="${buildResultsDirectory}/updateSite">
- <fileset dir="${buildDirectory}/updateSite"/>
- </copy>
-
- <mkdir dir="${buildResultsDirectory}/doc"/>
- <copy todir="${buildResultsDirectory}/doc">
- <fileset dir="${buildDirectory}/plugins/org.rubypeople.rdt.doc.user">
- <include name="html/**/*"/>
- <include name="images/**/*"/>
- </fileset>
- </copy>
-
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do to publish the build results -->
- <!-- ===================================================================== -->
- <target name="publish">
- </target>
- <!-- ===================================================================== -->
- <!-- Default target -->
- <!-- ===================================================================== -->
- <target name="noDefault">
- <echo message="You must specify a target when invoking this file" />
- </target>
-</project>
Deleted: trunk/org.rubypeople.rdt.build/cruiseControl/svn_co_rdt
===================================================================
--- trunk/org.rubypeople.rdt.build/cruiseControl/svn_co_rdt 2007-02-18 11:46:13 UTC (rev 1963)
+++ trunk/org.rubypeople.rdt.build/cruiseControl/svn_co_rdt 2007-02-18 11:47:06 UTC (rev 1964)
@@ -1,32 +0,0 @@
-#!/bin/sh
-# arg1: builddirectory
-# arg2: label
-if [ "$2" == "" ]; then
- echo "There are two arguments required: buildDirectory and Tag"
- exit 1
-fi
-label=$2
-if [ "$2" == "HEAD" ]; then
- labelurl=trunk
-else
- labelurl=tags/$2
-fi
-url=https://svn.sourceforge.net/svnroot/rubyeclipse/${labelurl}
-echo "Using svn repository url: ${url}, target dir: $1"
-#
-# Fetch the features
-#
-featuresDir=$1/features
-# the features use mappings from project name to feature name which has been achieved with the rdt.map for CVS
-svn co ${url}/org.rubypeople.rdt-feature $feature $featuresDir/org.rubypeople.rdt
-svn co ${url}/org.rubypeople.rdt-feature/unit-tests-feature $feature $featuresDir/org.rubypeople.rdt-tests
-
-#
-# Fetch the plugins
-#
-pluginsDir=$1/plugins
-plugins="org.epic.regexp org.rubypeople.rdt org.rubypeople.rdt.debug.core.tests org.rubypeople.rdt.launching org.rubypeople.rdt.ui org.kxml2 org.rubypeople.rdt.core org.rubypeople.rdt.debug.ui org.rubypeople.rdt.launching.tests org.rubypeople.rdt.ui.tests org.rubypeople.eclipse.shams org.rubypeople.rdt.core.tests org.rubypeople.rdt.debug.ui.tests org.rubypeople.rdt.tests.all org.rubypeople.eclipse.testutils org.rubypeople.rdt.debug.core org.rubypeople.rdt.doc.user org.rubypeople.rdt.testunit org.jruby org.rubypeople.rdt.refactoring org.rubypeople.rdt.refactoring.tests"
-
-for plugin in $plugins; do
- svn co ${url}/$plugin $pluginsDir/$plugin
-done
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|