Skip to content
Snippets Groups Projects
Commit 8c1e1f0f authored by david_williams's avatar david_williams
Browse files

clean up and prep for bug 339818

parent 5adb3e7f
No related branches found
No related tags found
No related merge requests found
...@@ -2,59 +2,12 @@ ...@@ -2,59 +2,12 @@
name="checkout" name="checkout"
default="checkout" default="checkout"
basedir="."> basedir=".">
<!--
Standard properties pattern. Note: to be cross-platform,
"environment variables" are only appropriate for some variables,
e.g. ones we set, since properties are case sensitive, even if
the environment variables on your operating system are not, e.g.
it will be ${env.Path} not ${env.PATH} on Windows
-->
<property environment="env"/>
<!--
Let users override standard properties, if desired. If
directory, file, or some properties do not exist, then standard
properties will be used.
-->
<property file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties"/>
<fail
unless="projectname"
message="a projectname is required"/>
<!-- if not otherwise set, the following are good default values -->
<property
name="checkout.builder.clean"
value="true"/>
<property
name="mapVersionTag"
value="HEAD"/>
<property
name="cvsProtocol"
value="${env.BUILD_CVS_WRITE_PROTOCOL}"/>
<property
name="cvsUser"
value="${env.BUILD_CVS_WRITE_USER}"/>
<property
name="cvsServer"
value="${env.BUILD_CVS_SERVER}"/>
<property
name="cvsRoot"
value="${env.BUILD_CVS_ROOT}"/>
<!-- end required defaults-if-not-set -->
<!-- standard computed properties. Should not have to be changed. -->
<property
name="mapCvsRoot"
value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}"/>
<property
name="codir"
value="${env.PROJECT_BUILDERS}/${projectname}"/>
<echo message="projectname: ${projectname}"/>
<!-- main --> <!-- main -->
<target <target
name="checkout" name="checkout"
depends="init"
if="projectname"> if="projectname">
<!-- we always check and init the builder --> <!-- we always check and init the builder -->
<antcall target="getbuilder"/> <antcall target="getbuilder"/>
...@@ -65,7 +18,7 @@ ...@@ -65,7 +18,7 @@
--> -->
<target <target
name="getbuilder" name="getbuilder"
depends="check.clean,initBuilders" depends="init,check.clean,initBuilders"
if="doClean"> if="doClean">
<!-- <!--
This is a special property file, that contains (only) the This is a special property file, that contains (only) the
...@@ -100,7 +53,8 @@ ...@@ -100,7 +53,8 @@
set doClean property checkout.build.clean is set in set doClean property checkout.build.clean is set in
checkout.properties from the project properties directory checkout.properties from the project properties directory
--> -->
<target name="check.clean"> <target name="check.clean"
depends="init">
<echo message="checkout.builder.clean: ${checkout.builder.clean}"/> <echo message="checkout.builder.clean: ${checkout.builder.clean}"/>
<condition property="doClean"> <condition property="doClean">
<equals <equals
...@@ -118,7 +72,7 @@ ...@@ -118,7 +72,7 @@
--> -->
<target <target
name="initBuilders" name="initBuilders"
depends="check.clean" depends="init,check.clean"
if="doClean"> if="doClean">
<!-- Note: it is important to remove 'codir', which is <projectBuidlers>/<project> so it <!-- Note: it is important to remove 'codir', which is <projectBuidlers>/<project> so it
...@@ -136,4 +90,59 @@ ...@@ -136,4 +90,59 @@
dest="${codir}" dest="${codir}"
tag="${mapVersionTag}"/> tag="${mapVersionTag}"/>
</target> </target>
<target name="init" unless="checkout.initialized">
<!--
Standard properties pattern. Note: to be cross-platform,
"environment variables" are only appropriate for some variables,
e.g. ones we set, since properties are case sensitive, even if
the environment variables on your operating system are not, e.g.
it will be ${env.Path} not ${env.PATH} on Windows
-->
<property environment="env"/>
<!--
Let users override standard properties, if desired. If
directory, file, or some properties do not exist, then standard
properties will be used.
-->
<property file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties"/>
<fail
unless="projectname"
message="a projectname is required"/>
<!-- if not otherwise set, the following are good default values -->
<property
name="checkout.builder.clean"
value="true"/>
<property
name="mapVersionTag"
value="HEAD"/>
<property
name="cvsProtocol"
value="${env.BUILD_CVS_WRITE_PROTOCOL}"/>
<property
name="cvsUser"
value="${env.BUILD_CVS_WRITE_USER}"/>
<property
name="cvsServer"
value="${env.BUILD_CVS_SERVER}"/>
<property
name="cvsRoot"
value="${env.BUILD_CVS_ROOT}"/>
<!-- end required defaults-if-not-set -->
<!-- standard computed properties. Should not have to be changed. -->
<property
name="mapCvsRoot"
value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}"/>
<property
name="codir"
value="${env.PROJECT_BUILDERS}/${projectname}"/>
<echo message="projectname: ${projectname}"/>
<property name="checkout.initialized" value="true"/>
</target>
</project> </project>
\ No newline at end of file
...@@ -66,7 +66,7 @@ fi ...@@ -66,7 +66,7 @@ fi
# This CONTROLTAG controls _only_ the version of releng.control that is fetched by build administrator # This CONTROLTAG controls _only_ the version of releng.control that is fetched by build administrator
# It may, for example, contain a version of cc_config.xml where it, in turn, specifies # It may, for example, contain a version of cc_config.xml where it, in turn, specifies
# other branches to do non standard builds (HEAD is the standard, production value) # other branches to do non standard builds (HEAD is the standard, production value)
#CONTROLTAG=david_williams_tempTest33 #CONTROLTAG=david_williams_tempTest36
CONTROLTAG=HEAD CONTROLTAG=HEAD
echo " checking out $CONTROLTAG of ${RELENG_CONTROL} from cvs " echo " checking out $CONTROLTAG of ${RELENG_CONTROL} from cvs "
echo " using :${BUILD_CVS_READ_PROTOCOL}:${BUILD_CVS_READ_USER}@dev.eclipse.org: " echo " using :${BUILD_CVS_READ_PROTOCOL}:${BUILD_CVS_READ_USER}@dev.eclipse.org: "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment