mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 04:55:22 +02:00
New releng initial checkin
This commit is contained in:
parent
e7b7e44d85
commit
048d343797
26 changed files with 2236 additions and 0 deletions
1
releng/org.eclipse.tm.releng/.cvsignore
Normal file
1
releng/org.eclipse.tm.releng/.cvsignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.project
|
27
releng/org.eclipse.tm.releng/build.xml
Normal file
27
releng/org.eclipse.tm.releng/build.xml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<project default="main">
|
||||||
|
<property name="pde.build.scripts" value="../org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build/scripts" />
|
||||||
|
|
||||||
|
<target name="init">
|
||||||
|
<tstamp/>
|
||||||
|
<touch file="${user.home}/.cvspass" />
|
||||||
|
<property name="timestamp" value="${DSTAMP}${TSTAMP}" />
|
||||||
|
<property name="buildDirectory" value="${basedir}/src/eclipse" />
|
||||||
|
|
||||||
|
<property name="buildType" value="I" />
|
||||||
|
<property name="buildId" value="${buildType}${timestamp}" />
|
||||||
|
|
||||||
|
<!-- Verify buildDirectory ends in eclipse. -->
|
||||||
|
<property name="fullBuild" location="${buildDirectory}"/>
|
||||||
|
<basename file="${fullBuild}" property="lastSeg"/>
|
||||||
|
<condition property="endsInEclipse">
|
||||||
|
<equals arg1="${lastSeg}" arg2="eclipse"/>
|
||||||
|
</condition>
|
||||||
|
<fail message="buildDirectory's last segment is not eclipse." unless="endsInEclipse"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="main" depends="init">
|
||||||
|
<ant antfile="build.xml" dir="${pde.build.scripts}">
|
||||||
|
<property name="builder" value="${basedir}/${component}" />
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
</project>
|
221
releng/org.eclipse.tm.releng/buildAll.xml
Normal file
221
releng/org.eclipse.tm.releng/buildAll.xml
Normal file
|
@ -0,0 +1,221 @@
|
||||||
|
<project default="run">
|
||||||
|
<target name="init">
|
||||||
|
|
||||||
|
<echo message="Set compilerArgs = '-enableJavadoc -encoding ISO-8859-1 -warn:-serial,nls,unused,unchecked,raw'"/>
|
||||||
|
<property name="compilerArg" value="-enableJavadoc -encoding ISO-8859-1 -warn:-serial,nls,unused,unchecked,raw" />
|
||||||
|
|
||||||
|
<!-- TODO: set correct source and target levels here -->
|
||||||
|
<echo message="Set javacSource and javacTarget = 1.4"/>
|
||||||
|
<property name="javacSource" value="1.4" />
|
||||||
|
<property name="javacTarget" value="1.4" />
|
||||||
|
|
||||||
|
<path id="bc">
|
||||||
|
<fileset dir="${java.home}/lib">
|
||||||
|
<include name="*.jar" />
|
||||||
|
</fileset>
|
||||||
|
</path>
|
||||||
|
<property name="bootclasspath" refid="bc" />
|
||||||
|
|
||||||
|
<!-- TODO: if using JDK1.4, comment out these lines -->
|
||||||
|
<!--
|
||||||
|
<echo message="Set J2SE-1.5 = ${bootclasspath}"/>
|
||||||
|
<property name="J2SE-1.5" value="${bootclasspath}"/>
|
||||||
|
<condition property="bundleBootClasspath" value="${J2SE-1.5}"><isset property="J2SE-1.5"/></condition>
|
||||||
|
<condition property="bundleJavacSource" value="1.5"><isset property="J2SE-1.5"/></condition>
|
||||||
|
<condition property="bundleJavacTarget" value="1.5"><isset property="J2SE-1.5"/></condition>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<property name="buildingOSGi" value="true" />
|
||||||
|
<property name="collectingFolder" value="eclipse" />
|
||||||
|
<property name="archivePrefix" value="eclipse" />
|
||||||
|
|
||||||
|
<!-- Reduce the amount of info in the build log -->
|
||||||
|
<property name="javacVerbose" value="false" />
|
||||||
|
|
||||||
|
<property name="buildDirectory" location="${basedir}/../src/eclipse" />
|
||||||
|
<property file="${basedir}/repoInfo.properties" />
|
||||||
|
<property name="testBase" location="${buildDirectory}/../testing" />
|
||||||
|
<available file="${buildDirectory}/label.properties" property="label.properties.exists" />
|
||||||
|
<antcall target="create.label.properties" />
|
||||||
|
<property file="${buildDirectory}/label.properties" />
|
||||||
|
|
||||||
|
<echo message="buildAll.xml properties:"/>
|
||||||
|
<echo message="basedir = ${basedir}"/>
|
||||||
|
|
||||||
|
<!-- load a value for ${subprojectName}, among other variables, from build.cfg -->
|
||||||
|
<property name="buildConfigFile" value="${basedir}/../build.cfg"/>
|
||||||
|
<available file="${buildConfigFile}" type="file" property="buildConfigIsAvailable" />
|
||||||
|
<fail message="Can't load build properties from ${buildConfigFile}" unless="buildConfigIsAvailable"/>
|
||||||
|
<!-- TODO: set any special build-related properties here by echoing them into ${buildConfigFile}:
|
||||||
|
<echo file="${buildConfigFile}" append="true">
|
||||||
|
|
||||||
|
# extra properties specific to just this build
|
||||||
|
propertyName=propertyValue
|
||||||
|
</echo> -->
|
||||||
|
|
||||||
|
<property file="${buildConfigFile}" />
|
||||||
|
|
||||||
|
<echo message="buildVer = ${buildVer}"/>
|
||||||
|
<echo message="subprojectName = ${subprojectName}"/>
|
||||||
|
|
||||||
|
<!-- <echo message="Base OS: ${baseos}; Base Window System: ${basews}"/> -->
|
||||||
|
<condition property="isWindows">
|
||||||
|
<equals arg1="${baseos}.${basews}" arg2="win32.win32" />
|
||||||
|
</condition>
|
||||||
|
<condition property="isLinuxGTK">
|
||||||
|
<equals arg1="${baseos}.${basews}" arg2="linux.gtk" />
|
||||||
|
</condition>
|
||||||
|
<condition property="isLinuxMotif">
|
||||||
|
<equals arg1="${baseos}.${basews}" arg2="linux.motif" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="create.label.properties" unless="label.properties.exists">
|
||||||
|
<mkdir dir="${buildDirectory}" />
|
||||||
|
<tstamp />
|
||||||
|
<property name="date" value="${DSTAMP}" />
|
||||||
|
<property name="time" value="${TSTAMP}" />
|
||||||
|
<property name="timestamp" value="${date}${time}" />
|
||||||
|
<property name="buildType" value="I" />
|
||||||
|
|
||||||
|
<!--this naming convention used by php scripts on download server-->
|
||||||
|
<property name="buildLabel" value="${buildType}${timestamp}" />
|
||||||
|
|
||||||
|
<property name="buildAlias" value="${buildLabel}" />
|
||||||
|
<property name="buildId" value="${buildAlias}" />
|
||||||
|
<property name="forceContextQualifier" value="v${timestamp}"/>
|
||||||
|
|
||||||
|
<!--store the build label information in a file-->
|
||||||
|
<echo file="${buildDirectory}/label.properties" append="true" >
|
||||||
|
buildType=${buildType}
|
||||||
|
</echo>
|
||||||
|
<echo file="${buildDirectory}/label.properties" append="true">
|
||||||
|
buildId=${buildId}
|
||||||
|
</echo>
|
||||||
|
<echo file="${buildDirectory}/label.properties" append="true">
|
||||||
|
timestamp=${timestamp}
|
||||||
|
</echo>
|
||||||
|
<echo file="${buildDirectory}/label.properties" append="true">
|
||||||
|
buildLabel=${buildLabel}
|
||||||
|
</echo>
|
||||||
|
<echo file="${buildDirectory}/label.properties" append="true">
|
||||||
|
buildAlias=${buildAlias}
|
||||||
|
</echo>
|
||||||
|
<echo file="${buildDirectory}/label.properties" append="true" >
|
||||||
|
forceContextQualifier=${forceContextQualifier}
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="run" depends="init">
|
||||||
|
<antcall target="buildAll" />
|
||||||
|
<antcall target="test" />
|
||||||
|
<antcall target="publish" />
|
||||||
|
<antcall target="cleanUp" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="runTestsOnly" depends="init">
|
||||||
|
<delete dir="${buildDirectory}" />
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}" />
|
||||||
|
<copy todir="${buildDirectory}/${buildLabel}">
|
||||||
|
<fileset dir="${buildDirectory}/..">
|
||||||
|
<include name="**/*.zip" />
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
<antcall target="test" />
|
||||||
|
<antcall target="publish" />
|
||||||
|
<antcall target="cleanUp" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="runWithoutTest" depends="init">
|
||||||
|
<antcall target="buildAll" />
|
||||||
|
<antcall target="publish" />
|
||||||
|
<antcall target="cleanUp" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="buildOnly" depends="init">
|
||||||
|
<antcall target="buildAll" />
|
||||||
|
<antcall target="cleanUp" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="buildAll">
|
||||||
|
<ant antfile="build.xml" target="main">
|
||||||
|
<property name="component" value="builder/sdk" />
|
||||||
|
</ant>
|
||||||
|
|
||||||
|
<ant antfile="build.xml" target="main">
|
||||||
|
<property name="component" value="builder/runtime" />
|
||||||
|
</ant>
|
||||||
|
|
||||||
|
<ant antfile="build.xml" target="main">
|
||||||
|
<property name="component" value="builder/examples" />
|
||||||
|
</ant>
|
||||||
|
|
||||||
|
<ant antfile="build.xml" target="main">
|
||||||
|
<property name="component" value="builder/tests" />
|
||||||
|
</ant>
|
||||||
|
|
||||||
|
<!-- doc must be the last execution -->
|
||||||
|
|
||||||
|
<ant antfile="build.xml" target="main">
|
||||||
|
<property name="component" value="builder/doc" />
|
||||||
|
</ant>
|
||||||
|
|
||||||
|
<!-- TODO: if necessary, you can copy files from the SDK into the runtime or examples zips here -->
|
||||||
|
<!-- for example, see validation/buildAll.xml or cdo/buildAll.xml -->
|
||||||
|
|
||||||
|
<!-- TODO: if necessary, you can remove 3rd party jars used at build time from the zips here -->
|
||||||
|
<!-- for example, see cdo's buildAll.xml -->
|
||||||
|
|
||||||
|
<!-- TODO: you can run extra build scripts here, like for building additional zip bundles -->
|
||||||
|
|
||||||
|
<!-- md5 files generation -->
|
||||||
|
<exec executable="bash" dir="${buildDirectory}/${buildLabel}">
|
||||||
|
<arg line="${basedir}/../org.eclipse.modeling.common.releng/scripts/createZipCheckSum.sh" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="cleanUp">
|
||||||
|
<echo message="** Copying generated zips to drop folder... **" />
|
||||||
|
<copy todir="${buildDirectory}/.." failonerror="false" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/${buildLabel}" />
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test">
|
||||||
|
|
||||||
|
<property name="test.xml" value="../org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts/test.xml" />
|
||||||
|
<antcall target="test-win32-local" />
|
||||||
|
<antcall target="test-linux-gtk-local" />
|
||||||
|
<antcall target="test-linux-motif-local" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test-win32-local" if="isWindows">
|
||||||
|
<ant antfile="${test.xml}">
|
||||||
|
<property name="shell" value="relengbuildwin2.bat" />
|
||||||
|
<property name="tester" value="${basedir}/builder/tests/configs/local" />
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test-linux-gtk-local" if="isLinuxGTK">
|
||||||
|
<ant antfile="${test.xml}">
|
||||||
|
<property name="shell" value="relengbuildgtk.sh" />
|
||||||
|
<property name="tester" value="${basedir}/builder/tests/configs/local" />
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test-linux-motif-local" if="isLinuxMotif">
|
||||||
|
<ant antfile="${test.xml}">
|
||||||
|
<property name="shell" value="relengbuildmotif.sh" />
|
||||||
|
<property name="tester" value="${basedir}/builder/tests/configs/local" />
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="publish">
|
||||||
|
<copy todir="${buildDirectory}/${buildLabel}" overwrite="true">
|
||||||
|
<fileset
|
||||||
|
dir="${buildDirectory}/../org.eclipse.modeling.common.releng/staticDropFiles" />
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
24
releng/org.eclipse.tm.releng/builder/doc/build.properties
Normal file
24
releng/org.eclipse.tm.releng/builder/doc/build.properties
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# TODO: set correct source and target levels here
|
||||||
|
javacSource=1.4
|
||||||
|
javacTarget=1.4
|
||||||
|
|
||||||
|
buildDirectory=${builder}/../eclipse
|
||||||
|
buildType=I
|
||||||
|
buildId=${buildId}
|
||||||
|
buildLabel=${buildLabel}
|
||||||
|
timestamp=0000
|
||||||
|
collPlace=.
|
||||||
|
collBase=.
|
||||||
|
baseLocation=
|
||||||
|
configs=*,*,*
|
||||||
|
baseos=linux
|
||||||
|
basews=gtk
|
||||||
|
basearch=x86
|
||||||
|
bootclasspath=${java.home}/lib/*.jar
|
||||||
|
javacFailOnError=true
|
||||||
|
javacVerbose=true
|
||||||
|
javacDebugInfo=on
|
||||||
|
zipargs=
|
||||||
|
archivesFormat = *,*,*-antZip
|
||||||
|
collectingFolder=eclipse
|
||||||
|
archivePrefix=eclipse
|
176
releng/org.eclipse.tm.releng/builder/doc/customTargets.xml
Normal file
176
releng/org.eclipse.tm.releng/builder/doc/customTargets.xml
Normal file
|
@ -0,0 +1,176 @@
|
||||||
|
<project name="Build specific targets and properties" default="noDefault" basedir=".">
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Run a given ${target} on all elements being built -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="allElements">
|
||||||
|
<ant antfile="${genericTargets}" target="${target}">
|
||||||
|
<property name="type" value="feature" />
|
||||||
|
<property name="id" value="org.eclipse.rse.doc" />
|
||||||
|
</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.eclipse.rse.doc">
|
||||||
|
<property name="archiveName" value="RSE-SDK-${buildAlias}.zip" />
|
||||||
|
<ant antfile="${assembleScriptName}" />
|
||||||
|
<!-- ADD POST STEPS -->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Check out map files from correct repository -->
|
||||||
|
<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="checkLocal">
|
||||||
|
<available property="mapsLocal" file="${buildDirectory}/maps" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
|
||||||
|
|
||||||
|
<!-- *** change the repo info -->
|
||||||
|
<property name="mapCvsRoot" value=":${cvsReadProtocol}:${cvsReadUser}@${cvsHost}:${cvsRep}" />
|
||||||
|
<property name="mapVersionTag" value="HEAD" />
|
||||||
|
<property name="packagePath" value="org.eclipse.${projectName}/org.eclipse.${subprojectName2}.releng/maps"/>
|
||||||
|
|
||||||
|
<cvs cvsRsh="ssh" cvsRoot="${mapCvsRoot}" tag="${mapVersionTag}"
|
||||||
|
package="${packagePath}" dest="${buildDirectory}/maps" />
|
||||||
|
<copy todir="${buildDirectory}/maps/CVS" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}/CVS" />
|
||||||
|
</copy>
|
||||||
|
<copy todir="${buildDirectory}/maps" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}" />
|
||||||
|
</copy>
|
||||||
|
<delete dir="${buildDirectory}/maps/org.eclipse.${projectName}" />
|
||||||
|
|
||||||
|
<!--tag the map files project-->
|
||||||
|
<antcall target="tagMapFiles" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="tagMapFiles" if="tagMaps">
|
||||||
|
<cvs cvsRsh="ssh" dest="${buildDirectory}/maps" command="tag v${timestamp}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before setup -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preSetup">
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after setup but before starting the build proper -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postSetup">
|
||||||
|
<!-- TODO: if your project requires more dependencies, add them here; if it does not require all of these, remove those not required -->
|
||||||
|
<echo message="Download, then unpack: Eclipse, EMF ..." />
|
||||||
|
<ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
|
||||||
|
<property name="url" value="${eclipseURL}" />
|
||||||
|
<property name="file" value="${eclipseFile}" />
|
||||||
|
<property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/plugin.xml" />
|
||||||
|
</ant>
|
||||||
|
<ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
|
||||||
|
<property name="url" value="${emfURL}" />
|
||||||
|
<property name="file" value="${emfFile}" />
|
||||||
|
<property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.ecore/plugin.xml" />
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before fetching the build elements -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preFetch">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after the fetch -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postFetch">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@buildid@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before generating build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preGenerate">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after generating the build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postGenerate">
|
||||||
|
<antcall target="clean" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before assembling -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preAssemble">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after assembling-->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postAssemble">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preProcess">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postProcess">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after everything is built and assembled -->
|
||||||
|
<!-- (e.g., testing, posting, emailing, ...) -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postBuild">
|
||||||
|
<antcall target="gatherLogs" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Helper targets -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="gatherLogs">
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="gatherLogs" />
|
||||||
|
</antcall>
|
||||||
|
|
||||||
|
<unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/features/org.eclipse.rse.doc">
|
||||||
|
<include name="*.log.zip" />
|
||||||
|
</fileset>
|
||||||
|
</unzip>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean" unless="noclean">
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="cleanElement" />
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Default target -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="noDefault">
|
||||||
|
<echo message="You must specify a target when invoking this file" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
|
@ -0,0 +1,24 @@
|
||||||
|
# TODO: set correct source and target levels here
|
||||||
|
javacSource=1.4
|
||||||
|
javacTarget=1.4
|
||||||
|
|
||||||
|
buildDirectory=${builder}/../eclipse
|
||||||
|
buildType=I
|
||||||
|
buildId=${buildId}
|
||||||
|
buildLabel=${buildLabel}
|
||||||
|
timestamp=0000
|
||||||
|
collPlace=.
|
||||||
|
collBase=.
|
||||||
|
baseLocation=
|
||||||
|
configs=*,*,*
|
||||||
|
baseos=linux
|
||||||
|
basews=gtk
|
||||||
|
basearch=x86
|
||||||
|
bootclasspath=${java.home}/lib/*.jar
|
||||||
|
javacFailOnError=true
|
||||||
|
javacVerbose=true
|
||||||
|
javacDebugInfo=on
|
||||||
|
zipargs=
|
||||||
|
archivesFormat = *,*,*-antZip
|
||||||
|
collectingFolder=eclipse
|
||||||
|
archivePrefix=eclipse
|
176
releng/org.eclipse.tm.releng/builder/examples/customTargets.xml
Normal file
176
releng/org.eclipse.tm.releng/builder/examples/customTargets.xml
Normal file
|
@ -0,0 +1,176 @@
|
||||||
|
<project name="Build specific targets and properties" default="noDefault" basedir=".">
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Run a given ${target} on all elements being built -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="allElements">
|
||||||
|
<ant antfile="${genericTargets}" target="${target}">
|
||||||
|
<property name="type" value="feature" />
|
||||||
|
<property name="id" value="org.eclipse.rse.examples" />
|
||||||
|
</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.eclipse.rse.examples">
|
||||||
|
<property name="archiveName" value="RSE-examples-${buildAlias}.zip" />
|
||||||
|
<ant antfile="${assembleScriptName}" />
|
||||||
|
<!-- ADD POST STEPS -->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Check out map files from correct repository -->
|
||||||
|
<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="checkLocal">
|
||||||
|
<available property="mapsLocal" file="${buildDirectory}/maps" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
|
||||||
|
|
||||||
|
<!-- *** change the repo info -->
|
||||||
|
<property name="mapCvsRoot" value=":${cvsReadProtocol}:${cvsReadUser}@${cvsHost}:${cvsRep}" />
|
||||||
|
<property name="mapVersionTag" value="HEAD" />
|
||||||
|
<property name="packagePath" value="org.eclipse.${projectName}/org.eclipse.${subprojectName2}.releng/maps"/>
|
||||||
|
|
||||||
|
<cvs cvsRsh="ssh" cvsRoot="${mapCvsRoot}" tag="${mapVersionTag}"
|
||||||
|
package="${packagePath}" dest="${buildDirectory}/maps" />
|
||||||
|
<copy todir="${buildDirectory}/maps/CVS" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}/CVS" />
|
||||||
|
</copy>
|
||||||
|
<copy todir="${buildDirectory}/maps" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}" />
|
||||||
|
</copy>
|
||||||
|
<delete dir="${buildDirectory}/maps/org.eclipse.${projectName}" />
|
||||||
|
|
||||||
|
<!--tag the map files project-->
|
||||||
|
<antcall target="tagMapFiles" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="tagMapFiles" if="tagMaps">
|
||||||
|
<cvs cvsRsh="ssh" dest="${buildDirectory}/maps" command="tag v${timestamp}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before setup -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preSetup">
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after setup but before starting the build proper -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postSetup">
|
||||||
|
<!-- TODO: if your project requires more dependencies, add them here; if it does not require all of these, remove those not required -->
|
||||||
|
<echo message="Download, then unpack: Eclipse, EMF ..." />
|
||||||
|
<ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
|
||||||
|
<property name="url" value="${eclipseURL}" />
|
||||||
|
<property name="file" value="${eclipseFile}" />
|
||||||
|
<property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/plugin.xml" />
|
||||||
|
</ant>
|
||||||
|
<ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
|
||||||
|
<property name="url" value="${emfURL}" />
|
||||||
|
<property name="file" value="${emfFile}" />
|
||||||
|
<property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.ecore/plugin.xml" />
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before fetching the build elements -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preFetch">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after the fetch -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postFetch">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@buildid@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before generating build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preGenerate">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after generating the build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postGenerate">
|
||||||
|
<antcall target="clean" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before assembling -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preAssemble">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after assembling-->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postAssemble">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preProcess">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postProcess">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after everything is built and assembled -->
|
||||||
|
<!-- (e.g., testing, posting, emailing, ...) -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postBuild">
|
||||||
|
<antcall target="gatherLogs" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Helper targets -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="gatherLogs">
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="gatherLogs" />
|
||||||
|
</antcall>
|
||||||
|
|
||||||
|
<unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/features/org.eclipse.rse.examples">
|
||||||
|
<include name="*.log.zip" />
|
||||||
|
</fileset>
|
||||||
|
</unzip>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean" unless="noclean">
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="cleanElement" />
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Default target -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="noDefault">
|
||||||
|
<echo message="You must specify a target when invoking this file" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
|
@ -0,0 +1,24 @@
|
||||||
|
# TODO: set correct source and target levels here
|
||||||
|
javacSource=1.4
|
||||||
|
javacTarget=1.4
|
||||||
|
|
||||||
|
buildDirectory=${builder}/../eclipse
|
||||||
|
buildType=I
|
||||||
|
buildId=${buildId}
|
||||||
|
buildLabel=${buildLabel}
|
||||||
|
timestamp=0000
|
||||||
|
collPlace=.
|
||||||
|
collBase=.
|
||||||
|
baseLocation=
|
||||||
|
configs=*,*,*
|
||||||
|
baseos=linux
|
||||||
|
basews=gtk
|
||||||
|
basearch=x86
|
||||||
|
bootclasspath=${java.home}/lib/*.jar
|
||||||
|
javacFailOnError=true
|
||||||
|
javacVerbose=true
|
||||||
|
javacDebugInfo=on
|
||||||
|
zipargs=
|
||||||
|
archivesFormat = *,*,*-antZip
|
||||||
|
collectingFolder=eclipse
|
||||||
|
archivePrefix=eclipse
|
176
releng/org.eclipse.tm.releng/builder/runtime/customTargets.xml
Normal file
176
releng/org.eclipse.tm.releng/builder/runtime/customTargets.xml
Normal file
|
@ -0,0 +1,176 @@
|
||||||
|
<project name="Build specific targets and properties" default="noDefault" basedir=".">
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Run a given ${target} on all elements being built -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="allElements">
|
||||||
|
<ant antfile="${genericTargets}" target="${target}">
|
||||||
|
<property name="type" value="feature" />
|
||||||
|
<property name="id" value="org.eclipse.rse" />
|
||||||
|
</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.eclipse.rse">
|
||||||
|
<property name="archiveName" value="RSE-runtime-${buildAlias}.zip" />
|
||||||
|
<ant antfile="${assembleScriptName}" />
|
||||||
|
<!-- ADD POST STEPS -->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Check out map files from correct repository -->
|
||||||
|
<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="checkLocal">
|
||||||
|
<available property="mapsLocal" file="${buildDirectory}/maps" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
|
||||||
|
|
||||||
|
<!-- *** change the repo info -->
|
||||||
|
<property name="mapCvsRoot" value=":${cvsReadProtocol}:${cvsReadUser}@${cvsHost}:${cvsRep}" />
|
||||||
|
<property name="mapVersionTag" value="HEAD" />
|
||||||
|
<property name="packagePath" value="org.eclipse.${projectName}/org.eclipse.${subprojectName2}.releng/maps"/>
|
||||||
|
<cvs cvsRsh="ssh" cvsRoot="${mapCvsRoot}" tag="${mapVersionTag}"
|
||||||
|
package="${packagePath}" dest="${buildDirectory}/maps" />
|
||||||
|
<copy todir="${buildDirectory}/maps/CVS" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}/CVS" />
|
||||||
|
</copy>
|
||||||
|
<copy todir="${buildDirectory}/maps" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}" />
|
||||||
|
</copy>
|
||||||
|
<delete dir="${buildDirectory}/maps/org.eclipse.${projectName}" />
|
||||||
|
|
||||||
|
<!--tag the map files project-->
|
||||||
|
<antcall target="tagMapFiles" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="tagMapFiles" if="tagMaps">
|
||||||
|
<cvs cvsRsh="ssh" dest="${buildDirectory}/maps" command="tag v${timestamp}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before setup -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preSetup">
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after setup but before starting the build proper -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postSetup">
|
||||||
|
<!-- TODO: if your project requires more dependencies, add them here; if it does not require all of these, remove those not required -->
|
||||||
|
<echo message="Download, then unpack: Eclipse, EMF ..." />
|
||||||
|
<ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
|
||||||
|
<property name="url" value="${eclipseURL}" />
|
||||||
|
<property name="file" value="${eclipseFile}" />
|
||||||
|
<property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/plugin.xml" />
|
||||||
|
</ant>
|
||||||
|
<ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
|
||||||
|
<property name="url" value="${emfURL}" />
|
||||||
|
<property name="file" value="${emfFile}" />
|
||||||
|
<property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.ecore/plugin.xml" />
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before fetching the build elements -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preFetch">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after the fetch -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postFetch">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@buildid@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before generating build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preGenerate">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after generating the build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postGenerate">
|
||||||
|
<antcall target="clean" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before assembling -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preAssemble">
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after assembling-->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postAssemble">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preProcess">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postProcess">
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after everything is built and assembled -->
|
||||||
|
<!-- (e.g., testing, posting, emailing, ...) -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postBuild">
|
||||||
|
<antcall target="gatherLogs" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Helper targets -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="gatherLogs">
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="gatherLogs" />
|
||||||
|
</antcall>
|
||||||
|
|
||||||
|
<unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/features/org.eclipse.rse">
|
||||||
|
<include name="*.log.zip" />
|
||||||
|
</fileset>
|
||||||
|
</unzip>
|
||||||
|
</target>
|
||||||
|
<target name="clean" unless="noclean">
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="cleanElement" />
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Default target -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="noDefault">
|
||||||
|
<echo message="You must specify a target when invoking this file" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
24
releng/org.eclipse.tm.releng/builder/sdk/build.properties
Normal file
24
releng/org.eclipse.tm.releng/builder/sdk/build.properties
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# TODO: set correct source and target levels here
|
||||||
|
javacSource=1.4
|
||||||
|
javacTarget=1.4
|
||||||
|
|
||||||
|
buildDirectory=${builder}/../eclipse
|
||||||
|
buildType=I
|
||||||
|
buildId=${buildId}
|
||||||
|
buildLabel=${buildLabel}
|
||||||
|
timestamp=0000
|
||||||
|
collPlace=.
|
||||||
|
collBase=.
|
||||||
|
baseLocation=
|
||||||
|
configs=*,*,*
|
||||||
|
baseos=linux
|
||||||
|
basews=gtk
|
||||||
|
basearch=x86
|
||||||
|
bootclasspath=${java.home}/lib/*.jar
|
||||||
|
javacFailOnError=true
|
||||||
|
javacVerbose=true
|
||||||
|
javacDebugInfo=on
|
||||||
|
zipargs=
|
||||||
|
archivesFormat = *,*,*-antZip
|
||||||
|
collectingFolder=eclipse
|
||||||
|
archivePrefix=eclipse
|
176
releng/org.eclipse.tm.releng/builder/sdk/customTargets.xml
Normal file
176
releng/org.eclipse.tm.releng/builder/sdk/customTargets.xml
Normal file
|
@ -0,0 +1,176 @@
|
||||||
|
<project name="Build specific targets and properties" default="noDefault" basedir=".">
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Run a given ${target} on all elements being built -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="allElements">
|
||||||
|
<ant antfile="${genericTargets}" target="${target}">
|
||||||
|
<property name="type" value="feature" />
|
||||||
|
<property name="id" value="org.eclipse.rse.sdk" />
|
||||||
|
</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.eclipse.rse.sdk">
|
||||||
|
<property name="archiveName" value="RSE-SDK-${buildAlias}.zip" />
|
||||||
|
<ant antfile="${assembleScriptName}" />
|
||||||
|
<!-- ADD POST STEPS -->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Check out map files from correct repository -->
|
||||||
|
<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="checkLocal">
|
||||||
|
<available property="mapsLocal" file="${buildDirectory}/maps" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
|
||||||
|
|
||||||
|
<!-- *** change the repo info -->
|
||||||
|
<property name="mapCvsRoot" value=":${cvsReadProtocol}:${cvsReadUser}@${cvsHost}:${cvsRep}" />
|
||||||
|
|
||||||
|
<property name="mapVersionTag" value="HEAD" />
|
||||||
|
<property name="packagePath" value="org.eclipse.${projectName}/org.eclipse.${subprojectName2}.releng/maps"/>
|
||||||
|
|
||||||
|
<cvs cvsRsh="ssh" cvsRoot="${mapCvsRoot}" tag="${mapVersionTag}"
|
||||||
|
package="${packagePath}" dest="${buildDirectory}/maps" />
|
||||||
|
<copy todir="${buildDirectory}/maps/CVS" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}/CVS" />
|
||||||
|
</copy>
|
||||||
|
<copy todir="${buildDirectory}/maps" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}" />
|
||||||
|
</copy>
|
||||||
|
<delete dir="${buildDirectory}/maps/org.eclipse.${projectName}" />
|
||||||
|
|
||||||
|
<!--tag the map files project-->
|
||||||
|
<antcall target="tagMapFiles" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="tagMapFiles" if="tagMaps">
|
||||||
|
<cvs cvsRsh="ssh" dest="${buildDirectory}/maps" command="tag v${timestamp}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before setup -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preSetup">
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after setup but before starting the build proper -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postSetup">
|
||||||
|
<!-- TODO: if your project requires more dependencies, add them here; if it does not require all of these, remove those not required -->
|
||||||
|
<echo message="Download, then unpack: Eclipse, EMF ..." />
|
||||||
|
<ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
|
||||||
|
<property name="url" value="${eclipseURL}" />
|
||||||
|
<property name="file" value="${eclipseFile}" />
|
||||||
|
<property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/plugin.xml" />
|
||||||
|
</ant>
|
||||||
|
<ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
|
||||||
|
<property name="url" value="${emfURL}" />
|
||||||
|
<property name="file" value="${emfFile}" />
|
||||||
|
<property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.ecore/plugin.xml" />
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before fetching the build elements -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preFetch">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after the fetch -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postFetch">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@buildid@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before generating build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preGenerate">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after generating the build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postGenerate">
|
||||||
|
<antcall target="clean" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before assembling -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preAssemble">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after assembling-->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postAssemble">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preProcess">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postProcess">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after everything is built and assembled -->
|
||||||
|
<!-- (e.g., testing, posting, emailing, ...) -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postBuild">
|
||||||
|
<antcall target="gatherLogs" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Helper targets -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="gatherLogs">
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="gatherLogs" />
|
||||||
|
</antcall>
|
||||||
|
|
||||||
|
<unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/features/org.eclipse.rse.sdk">
|
||||||
|
<include name="*.log.zip" />
|
||||||
|
</fileset>
|
||||||
|
</unzip>
|
||||||
|
</target>
|
||||||
|
<target name="clean" unless="noclean">
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="cleanElement" />
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Default target -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="noDefault">
|
||||||
|
<echo message="You must specify a target when invoking this file" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
24
releng/org.eclipse.tm.releng/builder/tests/build.properties
Normal file
24
releng/org.eclipse.tm.releng/builder/tests/build.properties
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# TODO: set correct source and target levels here
|
||||||
|
javacSource=1.4
|
||||||
|
javacTarget=1.4
|
||||||
|
|
||||||
|
buildDirectory=${builder}/../eclipse
|
||||||
|
buildType=I
|
||||||
|
buildId=${buildId}
|
||||||
|
buildLabel=${buildLabel}
|
||||||
|
timestamp=0000
|
||||||
|
collPlace=.
|
||||||
|
collBase=.
|
||||||
|
baseLocation=
|
||||||
|
configs=*,*,*
|
||||||
|
baseos=linux
|
||||||
|
basews=gtk
|
||||||
|
basearch=x86
|
||||||
|
bootclasspath=${java.home}/lib/*.jar
|
||||||
|
javacFailOnError=true
|
||||||
|
javacVerbose=true
|
||||||
|
javacDebugInfo=on
|
||||||
|
zipargs=
|
||||||
|
archivesFormat = *,*,*-antZip
|
||||||
|
collectingFolder=eclipse
|
||||||
|
archivePrefix=eclipse
|
|
@ -0,0 +1,2 @@
|
||||||
|
references/javadoc/*.html
|
||||||
|
**/epl-v10.html
|
|
@ -0,0 +1,41 @@
|
||||||
|
<project name="Customized testing instructions" default="customSetup">
|
||||||
|
|
||||||
|
<property name="buildConfigFile" value="${testDir}/../../build.cfg" />
|
||||||
|
<available file="${buildConfigFile}" type="file" property="buildConfigIsAvailable" />
|
||||||
|
|
||||||
|
<target name="loadbuildConfig" if="buildConfigIsAvailable">
|
||||||
|
<property file="${buildConfigFile}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="customSetup">
|
||||||
|
<fail unless="buildConfigIsAvailable" message="ERROR! Can't find ${buildConfigFile}"/>
|
||||||
|
<antcall target="loadbuildConfig"/>
|
||||||
|
|
||||||
|
<echo message="Unpack Eclipse SDK to ${testDir}..."/>
|
||||||
|
<echo message="customTest.xml: basedir = ${basedir}"/>
|
||||||
|
<property name="getTestDependencies.xml" value="${testDir}/../../org.eclipse.modeling.common.releng/scripts/getTestDependencies.xml"/>
|
||||||
|
<ant target="getTestDependency" antfile="${getTestDependencies.xml}">
|
||||||
|
<property name="basedir" value="${basedir}"/>
|
||||||
|
<property name="url" value="${eclipseURL}"/>
|
||||||
|
<property name="file" value="${eclipseFile}"/>
|
||||||
|
<property name="unpackDest" value="${testDir}"/>
|
||||||
|
</ant>
|
||||||
|
|
||||||
|
<!-- TODO: if your project requires more dependencies for testing, add them here -->
|
||||||
|
<echo message="Copy EMF SDK + Eclipse SDK to ${executionDir}..."/>
|
||||||
|
<copy todir="${executionDir}">
|
||||||
|
<fileset dir="${downloadsDir}" includes="${emfFile},${eclipseFile}"/>
|
||||||
|
</copy>
|
||||||
|
<property name="shell" value="relengbuildgtk.sh"/>
|
||||||
|
|
||||||
|
<!--copy the script which invokes the tests -->
|
||||||
|
<copy file="${tester}/${shell}" todir="${executionDir}"/>
|
||||||
|
<chmod file="${executionDir}/${shell}" perm="ugo+rx"/>
|
||||||
|
|
||||||
|
<!--copy the testing.property files -->
|
||||||
|
<copy file="${tester}/testing.properties" todir="${executionDir}"/>
|
||||||
|
|
||||||
|
<!-- at this point, we exit from this script and back into the parent script (presumably in pde or eclipse.releng?) -->
|
||||||
|
<echo message="Running ${shell} ..."/>
|
||||||
|
</target>
|
||||||
|
</project>
|
|
@ -0,0 +1,235 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo -n "[relengbuild] $0 started on: `date +%Y%m%d\ %H\:%M\:%S`";
|
||||||
|
|
||||||
|
# environment variables
|
||||||
|
PATH=.:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/X11R6/bin:`pwd`/../linux;export PATH
|
||||||
|
|
||||||
|
export USERNAME=`whoami`
|
||||||
|
echo " running as $USERNAME";
|
||||||
|
echo " currently in dir: `pwd`";
|
||||||
|
|
||||||
|
if [[ ! $JAVA_HOME ]]; then
|
||||||
|
echo -n "[relengbuild] Get JAVA_HOME from build.cfg ... ";
|
||||||
|
buildcfg=$PWD/../../../build.cfg;
|
||||||
|
export JAVA_HOME=$(grep "JAVA_HOME=" $buildcfg | egrep -v "^#" | tail -1 | sed -e "s/JAVAHOME=//");
|
||||||
|
echo "$JAVA_HOME";
|
||||||
|
fi
|
||||||
|
|
||||||
|
Xflags="";
|
||||||
|
Dflags="";
|
||||||
|
|
||||||
|
# default target to run in org.eclipse.$subprojectName.releng/builder/tests/scripts/test.xml
|
||||||
|
antTestTarget=all
|
||||||
|
|
||||||
|
# process command line arguments
|
||||||
|
while [ $# -gt 0 ]
|
||||||
|
do
|
||||||
|
case "$1" in
|
||||||
|
-vmExecutable) vmExecutable="$2"; shift;;
|
||||||
|
-consolelog) consolelog="$2"; shift;;
|
||||||
|
-X*) Xflags=$Xflags\ $1;;
|
||||||
|
-D*) Dflags=$Dflags\ $1;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
checkIfj9 ()
|
||||||
|
{
|
||||||
|
# given a series of -X flags, see if the string -Xj9 can be found
|
||||||
|
j9=$Xflags;
|
||||||
|
#echo "Xflags=$Xflags"
|
||||||
|
j9=${j9/\-Xj9/} # substring replacement
|
||||||
|
#echo "remaining: $j9"
|
||||||
|
if [ "$j9" != "$Xflags" ]; then # found it
|
||||||
|
j9="j9";
|
||||||
|
else
|
||||||
|
j9="";
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
checkIfj9;
|
||||||
|
|
||||||
|
defined=0;
|
||||||
|
checkIfDefined ()
|
||||||
|
{
|
||||||
|
if [ -f $1 ] ; then
|
||||||
|
defined=1;
|
||||||
|
else
|
||||||
|
defined=0;
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
execCmd ()
|
||||||
|
{
|
||||||
|
echo ""; echo "[relengbuild] [`date +%H\:%M\:%S`]";
|
||||||
|
echo " $1" | perl -pe "s/ -/\n -/g";
|
||||||
|
if [ "x$2" != "x" ]; then
|
||||||
|
$1 | tee $2;
|
||||||
|
else
|
||||||
|
$1;
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
doFunction ()
|
||||||
|
{
|
||||||
|
cmd=$1;
|
||||||
|
params=$2
|
||||||
|
for pth in "." "/bin" "/usr/bin" "/usr/bin/X11" "/usr/local/bin" "/usr/X11R6/bin" "`pwd`/../linux" ; do
|
||||||
|
defined=0;
|
||||||
|
checkIfDefined $pth/$cmd
|
||||||
|
if [ $defined -eq 1 ] ; then
|
||||||
|
$cmd $params
|
||||||
|
sleep 3
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ $defined -eq 0 ] ; then
|
||||||
|
echo "$cmd is not defined (command not found)";
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# these don't work on old build server, so not point wrapping them to say so when we can just omit
|
||||||
|
# doFunction Xvfb ":42 -screen 0 1024x768x24 -ac & "
|
||||||
|
# doFunction Xnest ":43 -display :42 -depth 24 & "
|
||||||
|
# doFunction fvwm2 "-display localhost:43.0 & "
|
||||||
|
#export DISPLAY=$HOSTNAME:43.0
|
||||||
|
#ulimit -c unlimited
|
||||||
|
|
||||||
|
getBuildID()
|
||||||
|
{ # given $PWD: /home/www-data/build/dsdp/$projectName/$subprojectName/downloads/drops/1.1.0/N200702112049/testing/N200702112049/testing
|
||||||
|
# return N200702110400
|
||||||
|
buildID=$1; #echo "buildID=$buildID";
|
||||||
|
buildID=${buildID##*drops\/}; # trim up to drops/ (from start) (substring notation)
|
||||||
|
buildID=${buildID%%\/test*}; # trim off /test (to end) (substring notation)
|
||||||
|
buildID=${buildID##*\/}; # trim up to / (from start) (substring notation)
|
||||||
|
}
|
||||||
|
buildID=""; getBuildID $PWD; #echo buildID=$buildID;
|
||||||
|
|
||||||
|
getBranch()
|
||||||
|
{ # given $PWD: /home/www-data/build/dsdp/$projectName/$subprojectName/downloads/drops/1.1.0/N200702112049/testing/N200702112049/testing
|
||||||
|
# return 1.1.0
|
||||||
|
branch=$1; #echo "branch=$branch";
|
||||||
|
branch=${branch##*drops\/}; # trim up to drops/ (from start) (substring notation)
|
||||||
|
branch=${branch%%\/*}; # trim off / (to end) (substring notation)
|
||||||
|
}
|
||||||
|
branch=""; getBranch $PWD; #echo branch=$branch;
|
||||||
|
|
||||||
|
############################# BEGIN RUN TESTS #############################
|
||||||
|
|
||||||
|
|
||||||
|
# operating system, windowing system and architecture variables
|
||||||
|
# for *nix systems, os, ws and arch values must be specified
|
||||||
|
Dflags=$Dflags" "-Dplatform=linux.gtk
|
||||||
|
os=linux
|
||||||
|
ws=gtk
|
||||||
|
arch=x86
|
||||||
|
|
||||||
|
# default value to determine if eclipse should be reinstalled between running of tests
|
||||||
|
installmode="clean"
|
||||||
|
|
||||||
|
#this value must be set when using rsh to execute this script, otherwise the script will execute from the user's home directory
|
||||||
|
dir=.
|
||||||
|
cd $dir
|
||||||
|
workspaceDir="$dir/eclipse/workspace"
|
||||||
|
|
||||||
|
# Replace the boot eclipse (The eclipse used to run the main test.xml, this will start another eclipse later)
|
||||||
|
if [ -d $dir/eclipse ] ; then
|
||||||
|
rm -rf $dir/eclipse
|
||||||
|
fi
|
||||||
|
if [ -d $workspaceDir ] ; then
|
||||||
|
rm -rf $dir/workspace
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[runtests] Currently in `pwd`:"
|
||||||
|
# need conditional processing here: M3.0.2 = zip, I3.1.0 = tar.gz
|
||||||
|
sdks=`find $dir -name "eclipse-SDK-*"`
|
||||||
|
# get extension from file(s)
|
||||||
|
for sdk in $sdks; do
|
||||||
|
sdk="eclipse"${sdk##*eclipse}; # trim up to eclipse (substring notation)
|
||||||
|
#echo -n "[runtests] Eclipse SDK $sdk is a";
|
||||||
|
ext=${sdk%%\.zip}; # trim off .zip (substring notation)
|
||||||
|
if [ "$ext" != "$sdk" ]; then # it's a zip
|
||||||
|
#echo " zip. Unpacking...";
|
||||||
|
unzip -qq -o $sdk
|
||||||
|
else
|
||||||
|
ext=${sdk%%\.tar\.gz}; # trim off .tar.gz (substring notation)
|
||||||
|
if [ "$ext" != "$sdk" ]; then # it's a tar.gz
|
||||||
|
#echo " tar.gz. Unpacking...";
|
||||||
|
tar -xzf $sdk
|
||||||
|
else
|
||||||
|
ext=${sdk%%\.tar\.Z}; # trim off .tar.Z (substring notation)
|
||||||
|
if [ "$ext" != "$sdk" ]; then # it's a tar.Z
|
||||||
|
#echo " tar.Z. Unpacking...";
|
||||||
|
tar -xZf $sdk
|
||||||
|
else
|
||||||
|
echo "[runtests] ERROR: Eclipse SDK $sdk is an UNKNOWN file type. Failure.";
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
J2SE15flags="";
|
||||||
|
# TODO: if a 1.5 JDK and want source/target = 1.5, leave these in
|
||||||
|
# TODO: if source/target = 1.4, remove these!
|
||||||
|
if [ ${JAVA_HOME##*1.5*}"" = "" -o ${JAVA_HOME##*15*}"" = "" -o ${JAVA_HOME##*5.0*}"" = "" -o ${JAVA_HOME##*50*}"" = "" ]; then
|
||||||
|
# set J2SE-1.5 properties (-Dflags)
|
||||||
|
bootclasspath="."`find $JAVA_HOME/jre/lib -name "*.jar" -printf ":%p"`;
|
||||||
|
J2SE15flags=$J2SE15flags" -DJ2SE-1.5=$bootclasspath"
|
||||||
|
J2SE15flags=$J2SE15flags" -DbundleBootClasspath=$bootclasspath"
|
||||||
|
J2SE15flags=$J2SE15flags" -DjavacSource=1.5"
|
||||||
|
J2SE15flags=$J2SE15flags" -DjavacTarget=1.5"
|
||||||
|
J2SE15flags=$J2SE15flags" -DbundleJavacSource=1.5"
|
||||||
|
J2SE15flags=$J2SE15flags" -DbundleJavacTarget=1.5"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# different ways to get the launcher and Main class
|
||||||
|
if [[ -f eclipse/startup.jar ]]; then
|
||||||
|
cpAndMain="eclipse/startup.jar org.eclipse.core.launcher.Main"; # up to M4_33
|
||||||
|
elif [[ -f eclipse/plugins/org.eclipse.equinox.launcher.jar ]]; then
|
||||||
|
cpAndMain="eclipse/plugins/org.eclipse.equinox.launcher.jar org.eclipse.equinox.launcher.Main"; # M5_33
|
||||||
|
else
|
||||||
|
cpAndMain=`find eclipse/ -name "org.eclipse.equinox.launcher_*.jar" | sort | head -1`" org.eclipse.equinox.launcher.Main";
|
||||||
|
fi
|
||||||
|
|
||||||
|
# run tests
|
||||||
|
echo "[runtests] [`date +%H\:%M\:%S`] Launching Eclipse (installmode = $installmode with -enableassertions turned on) ..."
|
||||||
|
execCmd "$JAVA_HOME/bin/java $Xflags -enableassertions -cp $cpAndMain -ws $ws -os $os -arch $arch \
|
||||||
|
-application org.eclipse.ant.core.antRunner -data $workspaceDir -file test.xml $antTestTarget \
|
||||||
|
$Dflags -Dws=$ws -Dos=$os -Darch=$arch -D$installmode=true $J2SE15flags \
|
||||||
|
$properties -logger org.apache.tools.ant.DefaultLogger" $consolelog;
|
||||||
|
echo "[runtests] [`date +%H\:%M\:%S`] Eclipse test run completed. "
|
||||||
|
|
||||||
|
############################# END RUN TESTS #############################
|
||||||
|
|
||||||
|
# supress errors by checking for the file first
|
||||||
|
if [ -r /tmp/.X43-lock ] ; then
|
||||||
|
kill `cat /tmp/.X43-lock`
|
||||||
|
fi
|
||||||
|
if [ -r /tmp/.X42-lock ] ; then
|
||||||
|
kill `cat /tmp/.X42-lock`
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -d $PWD/results ]]; then
|
||||||
|
echo "[relengbuild] No test results found in $PWD/results!";
|
||||||
|
echo "[relengbuild] Creating 'noclean' file to prevent cleanup after build completes."
|
||||||
|
echo "1" > $PWD/../../../noclean;
|
||||||
|
else
|
||||||
|
# if the build failed for some reason, don't clean up!
|
||||||
|
xmls=`find $PWD/results/xml -name "*.xml"`;
|
||||||
|
testsFailed=1;
|
||||||
|
for xml in $xmls; do
|
||||||
|
if [ $testsFailed -eq 1 ]; then
|
||||||
|
testsFailed=`cat $xml | grep -c "<testsuite errors=\"0\" failures=\"0\""`
|
||||||
|
if [ $testsFailed -lt 1 ]; then
|
||||||
|
echo "[relengbuild] Found test failure(s) in $xml!";
|
||||||
|
echo "[relengbuild] Creating 'noclean' file to prevent cleanup after build completes."
|
||||||
|
echo "1" > $PWD/../../../noclean;
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi;
|
||||||
|
|
||||||
|
echo "[relengbuild] relengbuildgtk.sh completed on: `date +%Y%m%d\ %H\:%M\:%S`"
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
#which (sub)project?
|
||||||
|
project=rse
|
||||||
|
|
||||||
|
#target to call in test.xml: runtests-local | runtests-remote
|
||||||
|
testTarget=runtests-local
|
||||||
|
|
||||||
|
#directory on test machine where automated testing framework will be installed
|
||||||
|
testDir=${testBase}/${buildLabel}
|
||||||
|
|
||||||
|
#name of zip file containing automated testing framework and JUnit test plug-ins
|
||||||
|
testFramework=RSE-automated-tests-${buildAlias}.zip
|
||||||
|
|
||||||
|
#directory where test scripts are launched
|
||||||
|
executionDir=${testDir}/testing
|
||||||
|
|
||||||
|
#name of runtime to install and test
|
||||||
|
runtime=RSE-SDK-${buildAlias}.zip
|
||||||
|
|
||||||
|
# leave this blank and it will be generated by genBuildDetails.sh
|
||||||
|
javaHome=%%JAVA_HOME%%
|
||||||
|
vmExecutable=${javaHome}/bin/java
|
||||||
|
|
||||||
|
#hack to override unneeded function in releng.basebuilder/plugins/org.eclipse.build.tools/scripts/test.xml
|
||||||
|
vmUrl=
|
||||||
|
vmDest=/dev/null
|
||||||
|
vmInstallExecutable=${vmExecutable}
|
||||||
|
vmInstallCommand=-version
|
||||||
|
|
||||||
|
#eclipse platforms: win32 | linux.motif | linux.gtk | aix.motif | hpux.motif |solaris.motif
|
||||||
|
platform=${baseos}.${basews}
|
||||||
|
|
||||||
|
#name of file that captures console output from running JUnit plug-in tests
|
||||||
|
consolelog=${baseos}.${basews}_consolelog.txt
|
||||||
|
|
||||||
|
#Works with IBM and Sun JDKs, 1.4+
|
||||||
|
#name of script to execute
|
||||||
|
testExecutable=bash
|
||||||
|
|
||||||
|
#arguments to $(testExecutable) - .sh script + args
|
||||||
|
args=${executionDir}/${shell} -vmExecutable ${vmExecutable} -consolelog ${consolelog} ${Xflags} ${Dflags}
|
||||||
|
|
||||||
|
#TODO: set vm-specific flags
|
||||||
|
#Xflags=-Xms64M -Xmx192M
|
||||||
|
Xflags=-Xms256M -Xmx256M
|
||||||
|
Dflags=
|
||||||
|
|
233
releng/org.eclipse.tm.releng/builder/tests/customTargets.xml
Normal file
233
releng/org.eclipse.tm.releng/builder/tests/customTargets.xml
Normal file
|
@ -0,0 +1,233 @@
|
||||||
|
<project name="Build specific targets and properties" default="noDefault" basedir=".">
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Run a given ${target} on all elements being built -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="allElements">
|
||||||
|
<ant antfile="${genericTargets}" target="${target}" >
|
||||||
|
<property name="type" value="feature" />
|
||||||
|
<property name="id" value="org.eclipse.rse.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.eclipse.rse.tests">
|
||||||
|
<property name="archiveName" value="RSE-junit-tests-${buildAlias}.zip"/>
|
||||||
|
<ant antfile="${assembleScriptName}"/>
|
||||||
|
<!-- ADD POST STEPS -->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Check out map files from correct repository -->
|
||||||
|
<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="checkLocal">
|
||||||
|
<available property="mapsLocal" file="${buildDirectory}/maps" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
|
||||||
|
|
||||||
|
<!-- *** change the repo info -->
|
||||||
|
<property name="mapCvsRoot" value=":${cvsReadProtocol}:${cvsReadUser}@${cvsHost}:${cvsRep}" />
|
||||||
|
<property name="mapVersionTag" value="HEAD" />
|
||||||
|
<property name="packagePath" value="org.eclipse.${projectName}/org.eclipse.${subprojectName2}.releng/maps"/>
|
||||||
|
|
||||||
|
<cvs cvsRsh="ssh" cvsRoot="${mapCvsRoot}" tag="${mapVersionTag}"
|
||||||
|
package="${packagePath}" dest="${buildDirectory}/maps" />
|
||||||
|
<copy todir="${buildDirectory}/maps/CVS" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}/CVS" />
|
||||||
|
</copy>
|
||||||
|
<copy todir="${buildDirectory}/maps" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/maps/${packagePath}" />
|
||||||
|
</copy>
|
||||||
|
<delete dir="${buildDirectory}/maps/org.eclipse.${projectName}" />
|
||||||
|
|
||||||
|
<!--tag the map files project-->
|
||||||
|
<antcall target="tagMapFiles" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="tagMapFiles" if="tagMaps">
|
||||||
|
<cvs dest="${buildDirectory}/maps/org.eclipse.${subprojectName2}" command="tag v${timestamp}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before setup -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preSetup">
|
||||||
|
</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 the fetch -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postFetch">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@buildid@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before generating build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preGenerate">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after generating the build scripts -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postGenerate">
|
||||||
|
<antcall target="clean" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before assembling -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preAssemble">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after assembling-->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postAssemble">
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do before running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="preProcess">
|
||||||
|
<replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
|
||||||
|
<include name="**/about.mappings" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after running the build.xmls for the elements being built. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postProcess">
|
||||||
|
<condition property="logsAvailable">
|
||||||
|
<istrue value="${javacVerbose}"/>
|
||||||
|
</condition>
|
||||||
|
<antcall target="gatherLogs" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Steps to do after everything is built and assembled -->
|
||||||
|
<!-- (e.g., testing, posting, emailing, ...) -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="postBuild">
|
||||||
|
<antcall target="packageTestFramework" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Helper targets -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="gatherLogs" if="logsAvailable">
|
||||||
|
<mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="gatherLogs" />
|
||||||
|
</antcall>
|
||||||
|
|
||||||
|
<unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/features/org.eclipse.rse.tests">
|
||||||
|
<include name="*.log.zip" />
|
||||||
|
</fileset>
|
||||||
|
</unzip>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean" unless="noclean">
|
||||||
|
<antcall target="allElements">
|
||||||
|
<param name="target" value="cleanElement" />
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="packageTestFramework">
|
||||||
|
<!--package automated test framework used in RSE builds-->
|
||||||
|
|
||||||
|
<property name="workingDirectory" value="${buildDirectory}/test.assembly" />
|
||||||
|
<echo message="workingDirectory: ${workingDirectory}"/>
|
||||||
|
|
||||||
|
<!--unzip the junit tests-->
|
||||||
|
<mkdir dir="${workingDirectory}/eclipse" />
|
||||||
|
<unzip dest="${workingDirectory}" overwrite="true">
|
||||||
|
<fileset dir="${buildDirectory}/${buildLabel}"><include name="**/RSE-junit-tests*.zip"/></fileset>
|
||||||
|
</unzip>
|
||||||
|
|
||||||
|
<!-- create top level testing directory-->
|
||||||
|
<delete dir="${workingDirectory}/testing"/>
|
||||||
|
<mkdir dir="${workingDirectory}/testing" />
|
||||||
|
|
||||||
|
<!--compile the tool used to generate the test.properties file, then run it.-->
|
||||||
|
<!--test.properties maps test plugin id's to the name of the plugin directory-->
|
||||||
|
|
||||||
|
<!--eclipse.home is relative to the scripts directory in the org.eclipse.pde.build plugin. Assume the plugins used in the classpath are in the same directory as org.eclipse.pde.build-->
|
||||||
|
<property name="eclipse.home" value="../../.." />
|
||||||
|
|
||||||
|
<generateTestProperties
|
||||||
|
buildDirectory="${buildDirectory}"
|
||||||
|
featureId="org.eclipse.rse.tests"
|
||||||
|
outputFile="${workingDirectory}/testing/test.properties"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!--load the property file created with the directory names for all test plugins-->
|
||||||
|
<property file="${workingDirectory}/testing/test.properties" />
|
||||||
|
|
||||||
|
<!-- Remove the plugin version number appended to the org.eclipse.test plugin directory.
|
||||||
|
This is so that contributors of test.xml's do not have to update their paths to
|
||||||
|
library.xml in org.eclipse.test whenever its version is updated.
|
||||||
|
-->
|
||||||
|
<move todir="${workingDirectory}/eclipse/plugins/org.eclipse.test">
|
||||||
|
<fileset dir="${workingDirectory}/eclipse/plugins/${org.eclipse.test}" />
|
||||||
|
</move>
|
||||||
|
|
||||||
|
<!--the Ant move task leaves behind an empty directory-->
|
||||||
|
<delete dir="${workingDirectory}/eclipse/plugins/${org.eclipse.test}" includeEmptyDirs="true" />
|
||||||
|
|
||||||
|
<!-- rezip the JUnit plugin tests -->
|
||||||
|
<zip destfile="${workingDirectory}/testing/RSE-junit-tests-${buildAlias}.zip">
|
||||||
|
<zipfileset dir="${workingDirectory}/eclipse" prefix="eclipse"/>
|
||||||
|
</zip>
|
||||||
|
|
||||||
|
<!--Copy scripts and doc used in the automated testing to the testing directory-->
|
||||||
|
<copy todir="${workingDirectory}/testing">
|
||||||
|
<fileset dir="${buildDirectory}/plugins/org.eclipse.test" includes="testframework.html,JUNIT.XSL" />
|
||||||
|
</copy>
|
||||||
|
<copy todir="${workingDirectory}/testing">
|
||||||
|
<fileset dir="${builderDirectory}/scripts" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<!--copy in the file containing the URL of the Eclipse build used for testing-->
|
||||||
|
<copy todir="${workingDirectory}/testing" file="${buildDirectory}/../build.cfg" />
|
||||||
|
|
||||||
|
<!--create zip file of the automated testing framework-->
|
||||||
|
<zip destfile="${buildDirectory}/${buildLabel}/RSE-automated-tests-${buildAlias}.zip">
|
||||||
|
<zipfileset dir="${workingDirectory}/testing" prefix="testing"/>
|
||||||
|
</zip>
|
||||||
|
|
||||||
|
<delete file="${buildDirectory}/${buildLabel}/RSE-junit-tests-${buildAlias}.zip" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Default target -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<target name="noDefault">
|
||||||
|
<echo message="You must specify a target when invoking this file" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
162
releng/org.eclipse.tm.releng/builder/tests/scripts/readme.html
Normal file
162
releng/org.eclipse.tm.releng/builder/tests/scripts/readme.html
Normal file
|
@ -0,0 +1,162 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Instructions</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000">
|
||||||
|
<font size="+2"> Automated Testing of DSDP Project Builds</font>
|
||||||
|
<p>last updated: November 9, 2005</p>
|
||||||
|
<p><font size="+1">Description</font></p>
|
||||||
|
<p>This document describes how to run the your project's JUnit test plugins from the command
|
||||||
|
line. This is the same mechanism used in the builds.</p>
|
||||||
|
<p>Click <a href="testframework.html">here</a> for a description of the testing
|
||||||
|
framework, and how it can be used outside of the setup described here.</p>
|
||||||
|
<p>If you simply wish to write and run JUnit tests interactively from an Eclipse
|
||||||
|
workbench, try one of the links below:</p>
|
||||||
|
<p><a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-ui-home/plugins/org.eclipse.jdt.junit/index.html">JUnit
|
||||||
|
Support in Eclipse</a><br>
|
||||||
|
<a href="http://dev.eclipse.org:8080/help/content/help:/org.eclipse.jdt.doc.user/tasks/tasks-207.htm?resultof=%6a%75%6e%69%74%20&toc=%2Forg.eclipse.jdt.doc.user%2Ftoc.xml">Using
|
||||||
|
JUnit</a></p>
|
||||||
|
|
||||||
|
<p><font size="+1">Requirements</font></p>
|
||||||
|
<p>1. All test machines must have a java runtime environment (version 1.3.1) installed and added to the path environment variable (see
|
||||||
|
<a href="#vm">-vm</a> parameter below).<br>
|
||||||
|
2. <a href="http://www.info-zip.org/pub/infozip/UnZip.html">Info-ZIP UnZip</a>
|
||||||
|
version 5.41 or later installed and added to the path.<br>
|
||||||
|
3. The Automated Test feature from a
|
||||||
|
<a href="http://www.eclipse.org/dsdp/tm">downloads</a>.
|
||||||
|
This contains the test framework plugins and the JUnit test plugins to run.<br>
|
||||||
|
4. The zip file from the same build as the Automated Test feature. You can use the RSE-*-SDK zip file instead of the individual files.<br>
|
||||||
|
5. An Eclipse SDK zip file. The URL and build name of the required builds
|
||||||
|
are specified in the build.cfg file included in the Automated Test zip file.</p>
|
||||||
|
<p><font size="+1">Setup</font></p>
|
||||||
|
<p>1. Extract the RSE-*-automated-tests-<buildid>.zip. On Window, extract
|
||||||
|
this file close to the root of the drive to prevent some path names from exceeding
|
||||||
|
the 255 character limit. This will create a top-level directory "<i>testing</i>".<br>
|
||||||
|
2. Place the Eclipse SDK zip file and the project's runtime in the <i>testing</i> directory.
|
||||||
|
Do not unzip these files. (The test scripts will take care of this)<br>
|
||||||
|
</p>
|
||||||
|
<p><font size="+1">Running Tests</font></p>
|
||||||
|
<p>1. cd to the <i>testing</i> directory<br>
|
||||||
|
2. Run the following script:</p>
|
||||||
|
<p><b>runtests.sh [-os <operating system>] [-ws <windowing system>] [-arch
|
||||||
|
<architecture>] [-noclean] [<testTarget>][-properties <path>][-vm
|
||||||
|
<path to java executable>]</b></p>
|
||||||
|
All parameters and targets are optional on windows systems. Just running "runtests.sh"
|
||||||
|
will run <b>ALL</b> tests on Windows, installing a clean Eclipse and your project's SDK between
|
||||||
|
each test target. On *nix systems, the os, ws and arch parameters must be specified.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
Test results are placed in the <i>testing</i>/<i>results</i> directory in xml and html format.<br>
|
||||||
|
<p><font size="+1"><a name="vm"></a>Parameters</font></p>
|
||||||
|
<table width="90%" border="1">
|
||||||
|
<tr>
|
||||||
|
<td>Parameter</td>
|
||||||
|
<td>Description</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-os <operating system></td>
|
||||||
|
<td>The OS the tests are being run on. One of: aix, hpux, linux, qnx, solaris,
|
||||||
|
win32. <b>Default win32</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-ws <windowing system></td>
|
||||||
|
<td>The windowing system the tests are being run on. One of: motif, gtk, photon,
|
||||||
|
win32. <b>Default win32</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-arch <architecture></td>
|
||||||
|
<td>The architecture the tests are being run on. One of: ppc, PA_RISC, x86,
|
||||||
|
sparc. <b>Default x86</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-noclean</td>
|
||||||
|
<td>Run tests without installing an Eclipse and GEF SDK and tests between
|
||||||
|
test targets. Default is to re-install these between test targets.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-properties</td>
|
||||||
|
<td>Used to reference a properties file containing additional Ant properties
|
||||||
|
used in running tests.Can be used to pass additional vm arguments to the
|
||||||
|
Java virtual machine running the tests by adding the entry "extraVMargs=<the
|
||||||
|
args to pass to the vm>" to the specified properties file.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-vm</td>
|
||||||
|
<td>The full path to the java executable with which to run the tests. Use
|
||||||
|
this to specify a specific virtual machine with which to run the tests.
|
||||||
|
For example, "-vm c:\sun131\jre\bin\java". Default set to "java"
|
||||||
|
(i.e. java executable on system path). </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><font size="+1">Test Targets</font></p>
|
||||||
|
<p>Specifies which ant target to run in the main test.xml. Typically this corresponds
|
||||||
|
to a test project's tests. If you do not specify a test target then the <b>all</b>
|
||||||
|
test target is run.</p>
|
||||||
|
|
||||||
|
<table width="90%" border="1">
|
||||||
|
<tr>
|
||||||
|
<td>all</td>
|
||||||
|
<td>Runs all the targets below.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>rse</td>
|
||||||
|
<td>Runs the JUnit tests located in the test plug-ins</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>genHtml</td>
|
||||||
|
<td>Converts xml test results in the "<i>testing</i>/<i>results</i>" directory
|
||||||
|
to html.</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<p> </p>
|
||||||
|
<p><font size="+1"><a name="appendixb"></a>Appendix A- Supported os, ws, and arch
|
||||||
|
value combinations</font></p>
|
||||||
|
<p>The following table contains the values that can be used with the -os, -ws,
|
||||||
|
and -arch switches.</p>
|
||||||
|
<table width="75%" border="1">
|
||||||
|
<tr>
|
||||||
|
<td>Operating System (os)</td>
|
||||||
|
<td>Windowing System (ws)</td>
|
||||||
|
<td>Architecture (arch)</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>aix</td>
|
||||||
|
<td>motif</td>
|
||||||
|
<td>ppc</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>hpux</td>
|
||||||
|
<td>motif</td>
|
||||||
|
<td>PA_RISC</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>linux</td>
|
||||||
|
<td>gtk</td>
|
||||||
|
<td>x86</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>linux</td>
|
||||||
|
<td>motif</td>
|
||||||
|
<td>x86</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td height="24">qnx</td>
|
||||||
|
<td height="24">photon</td>
|
||||||
|
<td height="24">x86</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>solaris</td>
|
||||||
|
<td>motif</td>
|
||||||
|
<td>sparc</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>win32</td>
|
||||||
|
<td>win32</td>
|
||||||
|
<td>x86</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
87
releng/org.eclipse.tm.releng/builder/tests/scripts/test.xml
Normal file
87
releng/org.eclipse.tm.releng/builder/tests/scripts/test.xml
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<project name="Automated Testing" default="all" basedir="." >
|
||||||
|
|
||||||
|
<!--properties file containing the plugin directory name including version number-->
|
||||||
|
<property file="test.properties" />
|
||||||
|
|
||||||
|
<!-- urls and such from the build -->
|
||||||
|
<property file="${basedir}/../../../build.cfg" />
|
||||||
|
|
||||||
|
<!--default directory where test-eclipse will be installed-->
|
||||||
|
<property name="install" value="${basedir}/target" />
|
||||||
|
|
||||||
|
<!--name that can be added to report name to identify which platform tests results come from-->
|
||||||
|
<property name="platform" value="" />
|
||||||
|
|
||||||
|
<!-- The root of the eclipse installation -->
|
||||||
|
<property name="eclipse-home" value="${install}/eclipse" />
|
||||||
|
|
||||||
|
<!-- The directory that will contain the xml and html results from the tests that are run -->
|
||||||
|
<property name="results" value="${basedir}/results" />
|
||||||
|
|
||||||
|
<target name="setup" if="clean" description="Reinstall the test Eclipse installation if specified by user">
|
||||||
|
<delete dir="${install}" /><mkdir dir="${install}" />
|
||||||
|
|
||||||
|
<!-- TODO: if your project requires more dependencies, add them here -->
|
||||||
|
<echo message="Download, then unpack: Eclipse, EMF ..." />
|
||||||
|
<property name="common.releng.dir" value="${basedir}/../../../org.eclipse.modeling.common.releng"/>
|
||||||
|
<property name="getTestDependencies.xml" value="${common.releng.dir}/scripts/getTestDependencies.xml"/>
|
||||||
|
<ant target="getTestDependency" antfile="${getTestDependencies.xml}" dir="${common.releng.dir}">
|
||||||
|
<property name="url" value="${eclipseURL}" />
|
||||||
|
<property name="file" value="${eclipseFile}" />
|
||||||
|
<property name="unpackDest" value="${install}"/>
|
||||||
|
</ant>
|
||||||
|
<ant target="getTestDependency" antfile="${getTestDependencies.xml}" dir="${common.releng.dir}">
|
||||||
|
<property name="url" value="${emfURL}" />
|
||||||
|
<property name="file" value="${emfFile}" />
|
||||||
|
<property name="unpackDest" value="${install}"/>
|
||||||
|
</ant>
|
||||||
|
|
||||||
|
<property name="dir" location="."/>
|
||||||
|
<echo message="Unpack SDK + JUnit Tests (${dir}/RSE-*.zip) ..."/>
|
||||||
|
<unzip dest="${install}" overwrite="true">
|
||||||
|
<fileset dir="${dir}"><include name="**/RSE-*.zip"/></fileset>
|
||||||
|
</unzip>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="runtests" depends="setup" description="Runs ant on the test.xml for a specified plugin. Requires a property value setting for testPlugin only if test.properties is not available. The property testPlugin represents a directory name made up of the plugin id and plugin version. This directory must contain a valid test.xml.">
|
||||||
|
<!-- TODO: if your test plugin is jarred, do nothing here
|
||||||
|
TODO: if your test plugin is NOT a jarred plugin, uncomment the next line and comment out the 4 lines thereafter -->
|
||||||
|
<echo message="${eclipse-home}/plugins/${testPlugin} is not a jarred plugin. No unpack required!"/>
|
||||||
|
<!-- <echo message="Unpack ${eclipse-home}/plugins/${testPlugin}.jar to ${eclipse-home}/plugins/${testPlugin} ... "/>
|
||||||
|
<move file="${eclipse-home}/plugins/${testPlugin}.jar" tofile="${eclipse-home}/plugins/${testPlugin}_.jar"/>
|
||||||
|
<unjar src="${eclipse-home}/plugins/${testPlugin}_.jar" dest="${eclipse-home}/plugins/${testPlugin}"/>
|
||||||
|
<delete file="${eclipse-home}/plugins/${testPlugin}_.jar"/> -->
|
||||||
|
|
||||||
|
<echo message="Running test.xml from jarfile ${eclipse-home}/plugins/${testPlugin} ... "/>
|
||||||
|
<ant antfile="${eclipse-home}/plugins/${testPlugin}/test.xml" dir="${eclipse-home}"/>
|
||||||
|
<copy file="${eclipse-home}/${report}.xml" tofile="${results}/xml/${report}_${platform}.xml" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="rse" description="Runs the test.xml of the tests plugin">
|
||||||
|
<antcall target="runtests">
|
||||||
|
<param name="testPlugin" value="${org.eclipse.rse.tests}" />
|
||||||
|
<param name="report" value="org.eclipse.rse.tests" />
|
||||||
|
</antcall>
|
||||||
|
|
||||||
|
<!-- test if chkpii script exists before proceeding -->
|
||||||
|
<property name="common.releng.dir" value="${basedir}/../../../org.eclipse.modeling.common.releng"/>
|
||||||
|
<property name="chkpii.xml" value="${common.releng.dir}/scripts/chkpii.xml"/>
|
||||||
|
<available file="${chkpii.xml}" property="chkpiiXMLAvailable"/>
|
||||||
|
<antcall target="runChkpii"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="runChkpii" if="chkpiiXMLAvailable">
|
||||||
|
<ant target="chkpii" antfile="${chkpii.xml}" inheritall="true">
|
||||||
|
<property name="zipPattern" value="RSE-*.zip"/>
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="all">
|
||||||
|
<antcall target="rse" />
|
||||||
|
<antcall target="genHtml" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="genHtml" description="Generates HTML results with provided JUNIT.XSL provided">
|
||||||
|
<style style="JUNIT.XSL" basedir="${results}/xml" destdir="${results}/html" />
|
||||||
|
</target>
|
||||||
|
</project>
|
1
releng/org.eclipse.tm.releng/maps/build.cfg
Normal file
1
releng/org.eclipse.tm.releng/maps/build.cfg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# this file's contents are generated
|
66
releng/org.eclipse.tm.releng/maps/rse.map
Normal file
66
releng/org.eclipse.tm.releng/maps/rse.map
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
!*************** PROJECT CONTRIBUTION ********************************************************
|
||||||
|
|
||||||
|
!*** Special entries from eclipse
|
||||||
|
|
||||||
|
plugin@org.eclipse.test=v20070226,:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse,
|
||||||
|
fragment@org.eclipse.ant.optional.junit=v20050226,:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse,
|
||||||
|
|
||||||
|
!*** Project's plugins, features and fragments
|
||||||
|
|
||||||
|
feature@org.eclipse.rse=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse-feature
|
||||||
|
feature@org.eclipse.rse.core=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.core-feature
|
||||||
|
feature@org.eclipse.rse.dstore=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.dstore-feature
|
||||||
|
feature@org.eclipse.rse.examples=v20071121,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/examples/org.eclipse.rse.examples-feature
|
||||||
|
feature@org.eclipse.rse.ftp=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.ftp-feature
|
||||||
|
feature@org.eclipse.rse.local=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.local-feature
|
||||||
|
feature@org.eclipse.rse.remotecdt=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.remotecdt-feature
|
||||||
|
feature@org.eclipse.rse.sdk=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.sdk-feature
|
||||||
|
feature@org.eclipse.rse.ssh=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.ssh-feature
|
||||||
|
feature@org.eclipse.rse.telnet=v20071121,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.telnet-feature
|
||||||
|
feature@org.eclipse.rse.tests=v20071206,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/tests/org.eclipse.rse.tests-feature
|
||||||
|
plugin@org.eclipse.dstore.core=v20080102,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.dstore.core
|
||||||
|
plugin@org.eclipse.dstore.doc.isv=v20080110,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/doc/org.eclipse.dstore.doc.isv
|
||||||
|
plugin@org.eclipse.dstore.extra=v20071106,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.dstore.extra
|
||||||
|
plugin@org.eclipse.rse=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse
|
||||||
|
plugin@org.eclipse.rse.connectorservice.dstore=v20071206,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.connectorservice.dstore
|
||||||
|
plugin@org.eclipse.rse.connectorservice.local=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.connectorservice.local
|
||||||
|
plugin@org.eclipse.rse.connectorservice.ssh=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.connectorservice.ssh
|
||||||
|
plugin@org.eclipse.rse.connectorservice.telnet=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.connectorservice.telnet
|
||||||
|
plugin@org.eclipse.rse.core=v20080110,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.core
|
||||||
|
plugin@org.eclipse.rse.doc.isv=v20080110,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/doc/org.eclipse.rse.doc.isv
|
||||||
|
plugin@org.eclipse.rse.doc.user=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/doc/org.eclipse.rse.doc.user
|
||||||
|
plugin@org.eclipse.rse.dstore.security=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.dstore.security
|
||||||
|
plugin@org.eclipse.rse.efs=v20080107,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.efs
|
||||||
|
plugin@org.eclipse.rse.efs.ui=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.efs.ui
|
||||||
|
plugin@org.eclipse.rse.examples.daytime=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/examples/org.eclipse.rse.examples.daytime
|
||||||
|
plugin@org.eclipse.rse.examples.tutorial=v20071115,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/examples/org.eclipse.rse.examples.tutorial
|
||||||
|
plugin@org.eclipse.rse.files.ui=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.files.ui
|
||||||
|
plugin@org.eclipse.rse.importexport=v20071106,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.importexport
|
||||||
|
plugin@org.eclipse.rse.processes.ui=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.processes.ui
|
||||||
|
plugin@org.eclipse.rse.remotecdt=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/examples/org.eclipse.rse.remotecdt
|
||||||
|
plugin@org.eclipse.rse.sdk=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.sdk
|
||||||
|
plugin@org.eclipse.rse.services.dstore=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.services.dstore
|
||||||
|
plugin@org.eclipse.rse.services.files.ftp=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.services.files.ftp
|
||||||
|
plugin@org.eclipse.rse.services.local=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.services.local
|
||||||
|
plugin@org.eclipse.rse.services.ssh=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.services.ssh
|
||||||
|
plugin@org.eclipse.rse.services.telnet=v20071106,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.services.telnet
|
||||||
|
plugin@org.eclipse.rse.services=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.services
|
||||||
|
plugin@org.eclipse.rse.shells.ui=v20080110,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.shells.ui
|
||||||
|
plugin@org.eclipse.rse.subsystems.files.core=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.files.core
|
||||||
|
plugin@org.eclipse.rse.subsystems.files.dstore=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.files.dstore
|
||||||
|
plugin@org.eclipse.rse.subsystems.files.ftp=v20080107,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.files.ftp
|
||||||
|
plugin@org.eclipse.rse.subsystems.files.local=v20071115,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.files.local
|
||||||
|
plugin@org.eclipse.rse.subsystems.files.ssh=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.files.ssh
|
||||||
|
plugin@org.eclipse.rse.subsystems.processes.core=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.processes.core
|
||||||
|
plugin@org.eclipse.rse.subsystems.processes.dstore=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.processes.dstore
|
||||||
|
plugin@org.eclipse.rse.subsystems.processes.local=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.processes.local
|
||||||
|
plugin@org.eclipse.rse.subsystems.processes.shell.linux=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.processes.shell.linux
|
||||||
|
plugin@org.eclipse.rse.subsystems.shells.core=v20071106,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.shells.core
|
||||||
|
plugin@org.eclipse.rse.subsystems.shells.dstore=v20071106,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.shells.dstore
|
||||||
|
plugin@org.eclipse.rse.subsystems.shells.local=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.shells.local
|
||||||
|
plugin@org.eclipse.rse.subsystems.shells.ssh=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.shells.ssh
|
||||||
|
plugin@org.eclipse.rse.subsystems.shells.telnet=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.subsystems.shells.telnet
|
||||||
|
plugin@org.eclipse.rse.tests=v20071206,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/tests/org.eclipse.rse.tests
|
||||||
|
plugin@org.eclipse.rse.tests.framework=v20070620,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/tests/org.eclipse.rse.tests.framework
|
||||||
|
plugin@org.eclipse.rse.ui=v20080124,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.ui
|
||||||
|
plugin@org.eclipse.rse.useractions=v20071031,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse.useractions
|
164
releng/org.eclipse.tm.releng/promoteToEclipse.rse.properties
Normal file
164
releng/org.eclipse.tm.releng/promoteToEclipse.rse.properties
Normal file
|
@ -0,0 +1,164 @@
|
||||||
|
## promoteToEclipse.*.properties
|
||||||
|
## specific version of promoteToEclipse.sh properties
|
||||||
|
##
|
||||||
|
## NOTE:
|
||||||
|
## You must rename this file to promoteToEclipse.$subprojectName.properties for it to be
|
||||||
|
## found when using the -sub flag; otherwise you'll have to use the -f flag to specify
|
||||||
|
## a CUSTOM-named properties file
|
||||||
|
|
||||||
|
# product being built (folder name prefix)
|
||||||
|
projectName=tm
|
||||||
|
subprojectName=rse
|
||||||
|
projectNameVanity=`echo $projectName $subprojectName | tr "a-z" "A-Z"`; # or something else manually assigned
|
||||||
|
|
||||||
|
# used to determine the actual name of the SDK zip (when builds are aliased)
|
||||||
|
SDKfilenamepattern="RSE-SDK-*.zip"
|
||||||
|
|
||||||
|
# the following two arrays must be the same size (or else the second one will default to blank)
|
||||||
|
javadocModuleArray=( "RSE" ); # array, project-subproject, for the name of the zip scp'd to remote, eg. foo-bar-doc.zip
|
||||||
|
# if "", create in $projectName/javadoc; if "/path", create in $projectName/$subprojectName/javadoc
|
||||||
|
javadocFolderArray=( "/$subprojectName" ); # array of path fragments
|
||||||
|
# list of targets to use when executing fixJavadocs.sh
|
||||||
|
javadocTargetArray=( "-sub $subprojectName" );
|
||||||
|
|
||||||
|
# publisher of newsgroup announcements
|
||||||
|
newsgroupPublisherEmail="TM Builder <moberhuber@build.eclipse.org>"
|
||||||
|
newsgroup=eclipse.dsdp.tm
|
||||||
|
# to thread posts under an existing post (or posts) enter the slash-escaped Message-ID for which this is a reply,
|
||||||
|
# eg: <du7hic\$qos\$1@utils.eclipse.org>
|
||||||
|
newsgroupThreadReferences=""
|
||||||
|
|
||||||
|
# default eclipse.org, build server, mapfile server usernames
|
||||||
|
user=$USER
|
||||||
|
# if no value set here or by -userIES flag, default to -user flag or value in properties file
|
||||||
|
userIES=
|
||||||
|
|
||||||
|
# group permissions on eclipse.org so that anyone can change files
|
||||||
|
eclipseUserGroup="dsdp-tm"admin
|
||||||
|
eclipsePermsDir=2775
|
||||||
|
eclipsePermsFile=664
|
||||||
|
|
||||||
|
# group permissions on build box so that anyone can change files
|
||||||
|
buildUserGroup="www"
|
||||||
|
buildPermsDir=2775
|
||||||
|
buildPermsFile=664
|
||||||
|
|
||||||
|
# IES map file branch (required)
|
||||||
|
branchIES=
|
||||||
|
|
||||||
|
# IES map file template: use "buildIDactual" and "webPath" as placeholders
|
||||||
|
IESmapfileArray=(
|
||||||
|
"RSE-runtime-buildIDactual.zip=webPath | | | runtime | $subprojectName"
|
||||||
|
"RSE-SDK-buildIDactual.zip=webPath | | | sdk | $subprojectName" ); # array of lines
|
||||||
|
|
||||||
|
### DEFAULT BEHAVIOUR OPTIONS ###
|
||||||
|
|
||||||
|
# default setting for whether to do or skip the drop upload section: 0 = do, 1 = skip
|
||||||
|
dodrop=1
|
||||||
|
|
||||||
|
# default setting for whether to do or skip the javadoc section: 0 = do, 1 = skip
|
||||||
|
dodocs=1
|
||||||
|
|
||||||
|
# default setting for whether to do or skip the Update Manager jars section: 0 = do, 1 = skip
|
||||||
|
UMjars=1
|
||||||
|
|
||||||
|
#default buildID
|
||||||
|
buildID=
|
||||||
|
|
||||||
|
#default branch
|
||||||
|
branch=1.0.0
|
||||||
|
cvsbranch=HEAD
|
||||||
|
|
||||||
|
#do RSS feed file update?
|
||||||
|
RSS=1
|
||||||
|
|
||||||
|
# do search cvs update?
|
||||||
|
searchCVS=1
|
||||||
|
# how long to block before giving up (in seconds, eg., 1200 for 20 mins wait)
|
||||||
|
searchCVSTimeout=1200
|
||||||
|
|
||||||
|
#do IES mapping file update?
|
||||||
|
IES=0
|
||||||
|
|
||||||
|
# debug output
|
||||||
|
debug=0 ; # values can be 0,1,2
|
||||||
|
|
||||||
|
#clean up /tmp folder?
|
||||||
|
noclean=0;
|
||||||
|
|
||||||
|
# compare drops folder after scp upload?
|
||||||
|
noCompareDropsFolders=0 ; # default 0, do compare; set 1 to bypass or pass in querystring
|
||||||
|
|
||||||
|
# compare UM folder after scp upload?
|
||||||
|
noCompareUMFolders= ; # default 0, do compare; set 1 to bypass or pass in querystring
|
||||||
|
|
||||||
|
# announce new build in newsgroup? (default 0)
|
||||||
|
announce=0;
|
||||||
|
|
||||||
|
### SERVER & PATH CONFIG OPTIONS ###
|
||||||
|
|
||||||
|
#server on which builds occur (need to ssh to this box as $user@$buildServerFullName)
|
||||||
|
buildServerFullName=`hostname`
|
||||||
|
|
||||||
|
#server on which eclipse's production CVS is located (need to ssh to this box as $user@$eclipseServerFullName)
|
||||||
|
eclipseServerFullName=dev.eclipse.org
|
||||||
|
|
||||||
|
#server on which eclipse's production files are located (downloads, javadoc, etc.): ssh as $user@$downloadServerFullName)
|
||||||
|
downloadServerFullName=download1.eclipse.org
|
||||||
|
|
||||||
|
#paths on \$downloadServerFullName where files are published
|
||||||
|
projectWWWDir=/home/data/httpd/download.eclipse.org/dsdp/$projectName
|
||||||
|
#projectDropsDir=$projectWWWDir/$subprojectName/downloads/drops
|
||||||
|
projectDropsDir=$projectWWWDir/downloads/drops
|
||||||
|
|
||||||
|
#paths to build base, scripts, and drops on build server
|
||||||
|
baseBuildDir=/home/www-data/build/dsdp/$projectName
|
||||||
|
buildScriptsDir=/home/www-data/build/dsdp/scripts
|
||||||
|
buildDropsDir=$baseBuildDir/$subprojectName/downloads/drops
|
||||||
|
|
||||||
|
# path to website on build server
|
||||||
|
localWebDir=/var/www/html/dsdp/$projectName
|
||||||
|
|
||||||
|
# urls
|
||||||
|
releaseNotesURL=http://www.eclipse.org/dsdp/$projectName/news/relnotes.php?project=$subprojectName
|
||||||
|
downloadsURL=http://www.eclipse.org/dsdp/$projectName/downloads/?project=$subprojectName
|
||||||
|
|
||||||
|
### ANT OPTIONS ###
|
||||||
|
ANT=/opt/apache-ant-1.6/bin/ant
|
||||||
|
|
||||||
|
### DEFAULT BEHAVIOUR AND JVM OPTIONS :: buildUpdate.sh ###
|
||||||
|
|
||||||
|
# specify the correct java home & vm used to run the build
|
||||||
|
javaHome=/opt/sun-java2-1.4
|
||||||
|
vm=$javaHome/bin/java
|
||||||
|
|
||||||
|
# zips to unpack for UM jar generation
|
||||||
|
filePrefixesToUnzipArray=( "RSE-SDK-" "RSE-automated-tests-" "RSE-examples-" );
|
||||||
|
|
||||||
|
# ant script and target to be executed
|
||||||
|
antScript=org.eclipse.releng.generators/buildProductUpdateJars.xml
|
||||||
|
target=run
|
||||||
|
|
||||||
|
# default operations
|
||||||
|
builder=1 # get builder packages from cvs
|
||||||
|
promote=0 # don't promote by default
|
||||||
|
skipjars=0 # when promoting, upload all jars (don't skip)
|
||||||
|
cleanup=1 # delete temp stuff when done
|
||||||
|
|
||||||
|
# compare UM folder after scp upload?
|
||||||
|
noCompareUMFolders=0 ; # default 0, do compare; set 1 to bypass or pass in querystring
|
||||||
|
|
||||||
|
# do 4-part jars?
|
||||||
|
no4thPart=0;
|
||||||
|
|
||||||
|
# where to get releng.generators.ProductUpdateBuilder, jars & ant scripts
|
||||||
|
relengGeneratorsCVSPath=releng-common/tools/updates/org.eclipse.releng.generators
|
||||||
|
|
||||||
|
# use a default value for basebuilderBranch? 0 = no, 1 = yes
|
||||||
|
useDefaultBasebuilderBranch=0
|
||||||
|
|
||||||
|
# See http://wiki.eclipse.org/Modeling_Project_Releng/Releasing#Contributing_To_Ganymede_Update_Site
|
||||||
|
# pattern to use when searching for features to include in coordsite; defaults to ".*eclipse/features/org.eclipse..*(${subprojectName}|${subprojectName}.sdk)_.*\/$"
|
||||||
|
coordsiteFeaturePattern=""
|
||||||
|
# pattern to use when setting feature to include in coordsite's main feature ('Models and Model Development'); all other matching features will go in 'Enabling Features'
|
||||||
|
coordsiteMainFeaturePattern=""
|
7
releng/org.eclipse.tm.releng/repoInfo.properties
Normal file
7
releng/org.eclipse.tm.releng/repoInfo.properties
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
cvsHost=dev.eclipse.org
|
||||||
|
cvsReadProtocol=pserver
|
||||||
|
cvsWriteProtocol=ext
|
||||||
|
cvsReadUser=anonymous
|
||||||
|
cvsWriteUser=moberhuber
|
||||||
|
cvsWriteRelengUser=moberhuber
|
||||||
|
cvsRep=/cvsroot/dsdp
|
10
releng/org.eclipse.tm.releng/templateFiles/rse.map.template
Normal file
10
releng/org.eclipse.tm.releng/templateFiles/rse.map.template
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
!*************** PROJECT CONTRIBUTION ********************************************************
|
||||||
|
|
||||||
|
!*** Special entries from eclipse
|
||||||
|
|
||||||
|
plugin@org.eclipse.test=v20070226,:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse,
|
||||||
|
fragment@org.eclipse.ant.optional.junit=v20050226,:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse,
|
||||||
|
|
||||||
|
!*** Project's plugins, features and fragments
|
||||||
|
|
||||||
|
@entries@
|
|
@ -0,0 +1,50 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<topLevel>
|
||||||
|
<zipTypes>
|
||||||
|
<zipType name="projruntime">
|
||||||
|
<platform
|
||||||
|
id="projRUN"
|
||||||
|
name="All"
|
||||||
|
fileName='<a href="RSE-runtime-@build@.zip">RSE-runtime-@build@.zip</a> <font size="2">(size:@RSE-runtime-@build@.zip.size@ - checksum:<a href="RSE-runtime-@build@.zip.md5">md5</a>)</font>'>
|
||||||
|
</platform>
|
||||||
|
</zipType>
|
||||||
|
<zipType name="projsdk">
|
||||||
|
<platform
|
||||||
|
id="projSRC"
|
||||||
|
name="All"
|
||||||
|
fileName='<a href="RSE-SDK-@build@.zip">RSE-SDK-@build@.zip</a> <font size="2">(size:@RSE-SDK-@build@.zip.size@ - checksum:<a href="RSE-SDK-@build@.zip.md5">md5</a>)</font>'>
|
||||||
|
</platform>
|
||||||
|
</zipType>
|
||||||
|
<zipType name="projtests">
|
||||||
|
<platform
|
||||||
|
id="T"
|
||||||
|
name="All"
|
||||||
|
fileName='<a href="RSE-automated-tests-@build@.zip">RSE-automated-tests-@build@.zip</a> <font size="2">(size:@RSE-automated-tests-@build@.zip.size@ - checksum:<a href="RSE-automated-tests-@build@.zip.md5">md5</a>)</font>'>
|
||||||
|
</platform>
|
||||||
|
</zipType>
|
||||||
|
<zipType name="projexamples">
|
||||||
|
<platform
|
||||||
|
id="EX"
|
||||||
|
name="All"
|
||||||
|
fileName='<a href="RSE-examples-@build@.zip">RSE-examples-@build@.zip</a> <font size="2">(size:@RSE-examples-@build@.zip.size@ - checksum:<a href="RSE-examples-@build@.zip.md5">md5</a>)</font>'>
|
||||||
|
</platform>
|
||||||
|
</zipType>
|
||||||
|
</zipTypes>
|
||||||
|
|
||||||
|
<logFiles>
|
||||||
|
<logFile name="org.eclipse.rse.tests_linux.gtk.xml">
|
||||||
|
<effectedFile id="SDK"></effectedFile>
|
||||||
|
<effectedFile id="projRUN"></effectedFile>
|
||||||
|
</logFile>
|
||||||
|
|
||||||
|
<!-- Comment out for now until we get tests on various platforms.
|
||||||
|
<logFile name="org.eclipse.rse.tests_win32.xml">
|
||||||
|
<effectedFile id="SDK"></effectedFile>
|
||||||
|
<effectedFile id="projRUN"></effectedFile>
|
||||||
|
</logFile>
|
||||||
|
-->
|
||||||
|
|
||||||
|
@entries@
|
||||||
|
|
||||||
|
</logFiles>
|
||||||
|
</topLevel>
|
59
releng/org.eclipse.tm.releng/testManifest.xml
Normal file
59
releng/org.eclipse.tm.releng/testManifest.xml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<topLevel>
|
||||||
|
<zipTypes>
|
||||||
|
<zipType name="projruntime">
|
||||||
|
<platform
|
||||||
|
id="projRUN"
|
||||||
|
name="All"
|
||||||
|
fileName='<a href="RSE-runtime-@build@.zip">RSE-runtime-@build@.zip</a> <font size="2">(size:@RSE-runtime-@build@.zip.size@ - checksum:<a href="RSE-runtime-@build@.zip.md5">md5</a>)</font>'>
|
||||||
|
</platform>
|
||||||
|
</zipType>
|
||||||
|
<zipType name="projsdk">
|
||||||
|
<platform
|
||||||
|
id="projSRC"
|
||||||
|
name="All"
|
||||||
|
fileName='<a href="RSE-SDK-@build@.zip">RSE-SDK-@build@.zip</a> <font size="2">(size:@RSE-SDK-@build@.zip.size@ - checksum:<a href="RSE-SDK-@build@.zip.md5">md5</a>)</font>'>
|
||||||
|
</platform>
|
||||||
|
</zipType>
|
||||||
|
<zipType name="projtests">
|
||||||
|
<platform
|
||||||
|
id="T"
|
||||||
|
name="All"
|
||||||
|
fileName='<a href="RSE-automated-tests-@build@.zip">RSE-automated-tests-@build@.zip</a> <font size="2">(size:@RSE-automated-tests-@build@.zip.size@ - checksum:<a href="RSE-automated-tests-@build@.zip.md5">md5</a>)</font>'>
|
||||||
|
</platform>
|
||||||
|
</zipType>
|
||||||
|
<zipType name="projexamples">
|
||||||
|
<platform
|
||||||
|
id="EX"
|
||||||
|
name="All"
|
||||||
|
fileName='<a href="RSE-examples-@build@.zip">RSE-examples-@build@.zip</a> <font size="2">(size:@RSE-examples-@build@.zip.size@ - checksum:<a href="RSE-examples-@build@.zip.md5">md5</a>)</font>'>
|
||||||
|
</platform>
|
||||||
|
</zipType>
|
||||||
|
</zipTypes>
|
||||||
|
|
||||||
|
<logFiles>
|
||||||
|
<logFile name="org.eclipse.rse.tests_linux.gtk.xml">
|
||||||
|
<effectedFile id="SDK"></effectedFile>
|
||||||
|
<effectedFile id="projRUN"></effectedFile>
|
||||||
|
</logFile>
|
||||||
|
|
||||||
|
<!-- Comment out for now until we get tests on various platforms.
|
||||||
|
<logFile name="org.eclipse.rse.tests_win32.xml">
|
||||||
|
<effectedFile id="SDK"></effectedFile>
|
||||||
|
<effectedFile id="projRUN"></effectedFile>
|
||||||
|
</logFile>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<logFile name="plugins/org.eclipse.rse.examples_*/*.bin.log">
|
||||||
|
<effectedFile id="EX"></effectedFile>
|
||||||
|
</logFile>
|
||||||
|
<logFile name="plugins/org.eclipse.rse_*/*.bin.log">
|
||||||
|
<effectedFile id="SDK"></effectedFile>
|
||||||
|
<effectedFile id="projRUN"></effectedFile>
|
||||||
|
</logFile>
|
||||||
|
<logFile name="plugins/org.eclipse.rse.tests_*/*.bin.log">
|
||||||
|
<effectedFile id="T"></effectedFile>
|
||||||
|
</logFile>
|
||||||
|
|
||||||
|
</logFiles>
|
||||||
|
</topLevel>
|
Loading…
Add table
Reference in a new issue