| <project |
| name="checkout" |
| default="checkout" |
| 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" /> |
| |
| <!-- = = = end standard properties pattern = = = --> |
| |
| <!-- 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 --> |
| <target |
| name="checkout" |
| if="projectname"> |
| <!-- we always check and init the builder --> |
| <antcall |
| target="getbuilder" /> |
| <!-- and distribution projects can do more if needed. --> |
| <antcall |
| target="${projectname}" /> |
| </target> |
| |
| <!-- |
| Checkout from CVS corresponding map files for each of the projects |
| --> |
| <target |
| name="wtp-R3.0-N"> |
| </target> |
| |
| <target |
| name="wtp-R3.0-S"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGJSF}" |
| dest="${codir}" |
| tag="HEAD" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGDALI}" |
| dest="${codir}" |
| tag="HEAD" /> |
| </target> |
| |
| <target |
| name="wtp-R3.0-I"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGJSF}" |
| dest="${codir}" |
| tag="HEAD" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGDALI}" |
| dest="${codir}" |
| tag="HEAD" /> |
| </target> |
| |
| <target |
| name="wtp-R3.0-M"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="R3_0_maintenance" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGJSF}" |
| dest="${codir}" |
| tag="R3_0_maintenance" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGDALI}" |
| dest="${codir}" |
| tag="R3_0_maintenance" /> |
| </target> |
| |
| <target |
| name="wtp-R3.0-R"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGJSF}" |
| dest="${codir}" |
| tag="HEAD" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGDALI}" |
| dest="${codir}" |
| tag="HEAD" /> |
| </target> |
| |
| <target |
| name="wtp-R1.5-M"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="R1_5_maintenance" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGMAPS}" |
| dest="${codir}" |
| tag="R1_5_maintenance" /> |
| </target> |
| |
| <target |
| name="wtp-R2.0-M"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="R2_0_maintenance" /> |
| |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGDALI}" |
| dest="${codir}" |
| tag="R1_0_maintenance" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGJSF}" |
| dest="${codir}" |
| tag="R1_0_maintenance" /> |
| |
| <!-- relengmaps must some last, to avoid overwriting specific components --> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGMAPS}" |
| dest="${codir}" |
| tag="R2_0_maintenance" /> |
| |
| |
| </target> |
| <target |
| name="wtp-R2.0-R"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="R2_0_maintenance" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGMAPS}" |
| dest="${codir}" |
| tag="R2_0_maintenance" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGDALI}" |
| dest="${codir}" |
| tag="R1_0_maintenance" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGJSF}" |
| dest="${codir}" |
| tag="R1_0_maintenance" /> |
| </target> |
| |
| <target |
| name="jem-R1.5-M"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="R1_5_maintenance" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGMAPS}" |
| dest="${codir}" |
| tag="R1_5_maintenance" /> |
| </target> |
| <target |
| name="patches-R1.5-P"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="R1_5_5_patches" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGMAPS}" |
| dest="${codir}" |
| tag="R1_5_5_patches" /> |
| </target> |
| <target |
| name="patches-R2.0.2-P"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="R2_0_2_patches" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGMAPS}" |
| dest="${codir}" |
| tag="R2_0_2_patches" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGDALI}" |
| dest="${codir}" |
| tag="R1_0_2_patches" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGJSF}" |
| dest="${codir}" |
| tag="R1_0_2_patches" /> |
| |
| </target> |
| <target |
| name="wtpbuildTools-R3.0-T"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="HEAD" /> |
| </target> |
| <target |
| name="incubator-R0.5-I"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="HEAD" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGMAPS}" |
| dest="${codir}" |
| tag="HEAD" /> |
| </target> |
| <target |
| name="incubator-R0.5-S"> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="HEAD" /> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENGMAPS}" |
| dest="${codir}" |
| tag="HEAD" /> |
| </target> |
| |
| <!-- |
| The order of execution of these three worker targets |
| is critical, check.clean, initBuilders, and |
| then getbuilder. |
| --> |
| <target |
| name="getbuilder" |
| depends="check.clean,initBuilders" |
| if="doClean"> |
| <!-- This is a special property file, that contains (only) the |
| value of builderVersion. Then, that version of the builder |
| is fetched to control the rest of the build --> |
| <property |
| file="${codir}/${env.RELENG}/maps/build.cfg" /> |
| <fail unless="builderVersion" message="Could not get builderVersion. Probably could not checkout build.cfg" /> |
| |
| <!-- |
| deleting WTP builder project |
| location: <BUILD HOME>/projectBuilders/<project>/webtools.releng/releng.wtpbuilder |
| --> |
| <delete |
| dir="${codir}/${env.RELENG_BUILDER}" |
| failonerror="false" /> |
| <echo |
| message="Version tag for ${env.RELENG_BUILDER} is: ${builderVersion}" /> |
| <!-- |
| Get a new version of the wtpbuild project from CVS, version comes from build.cfg map file |
| --> |
| <cvs |
| quiet="${env.CVS_QUIET}" |
| reallyquiet="${env.CVS_REALLY_QUIET}" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG_BUILDER}" |
| dest="${codir}" |
| tag="${builderVersion}" /> |
| </target> |
| |
| <!-- |
| set doClean property |
| checkout.build.clean is set in checkout.properties from the project properties directory |
| --> |
| <target |
| name="check.clean"> |
| <echo |
| message="checkout.builder.clean: ${checkout.builder.clean}" /> |
| <condition |
| property="doClean"> |
| <equals |
| arg1="${checkout.builder.clean}" |
| arg2="true" |
| trim="true" |
| casesensitive="false" /> |
| </condition> |
| </target> |
| |
| <!-- |
| checkout releng, wst, jst map files from from CVS |
| CVS src: webtools.map/releng/maps files |
| dest: <BUILD HOME>/projectBuilders/<project>/webtools.maps/releng/maps |
| --> |
| <target |
| name="initBuilders" |
| depends="check.clean" |
| if="doClean"> |
| <echo |
| message="Version tag for ${env.RELENG}: ${mapVersionTag}" /> |
| <cvs |
| quiet="true" |
| cvsRoot="${mapCvsRoot}" |
| package="${env.RELENG}" |
| dest="${codir}" |
| tag="${mapVersionTag}" /> |
| </target> |
| </project> |