Skip to content
Snippets Groups Projects
createmainzips.xml 4.33 KiB
Newer Older
<?xml version="1.0" encoding="UTF-8"?>
    <!--
        This script is to create some zips with core features only.
        Limited, specialized usefulness, so they are not linked or
        advertised. That is, could change at any time.
    -->
<project
    default="build"
    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 = = = -->



    <fail unless="wtp.builder.home"/>
    <property file="${wtp.builder.home}/build.properties"/>


       <!-- required to get proper value of branch specific values, for example, 
            baseComparatorRepoDir, since can vary from forward "integration" stream, 
            and "maintenance" branch -->
    <property
        name="keyCfgFile"
        value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
    <echo
        level="info"
        message="keyCfgFile: ${keyCfgFile}"/>
    <property file="${keyCfgFile}"/>

    <fail
        unless="baseComparatorRepoDir"
        message="baseComparatorRepoDir must be defined for this ant script"/>


       <!-- if not otherwise set, use these default properties 
    <property
        name="repoDownloadBaseURL"
        value="http://build.eclipse.org/webtools/committers"/> -->
    <property
        name="repoDownloadBaseURL"
        value=".."/>

    <fail unless="env.PROJECT_PROJECTS"/>
    <fail unless="projectname"/>
    <property
        name="labelfile"
        value="${env.PROJECT_PROJECTS}/${projectname}/workdir/label.properties"/>
    <available
        file="${labelfile}"
        property="labelfileavailable"/>
    <fail unless="labelfileavailable"/>
    <property file="${labelfile}"/>



    <!--
        These properties are normally set by calling task, but for
        "local" tests from command line, they can be set here
    -->
    <property
        name="buildDirectory"
        value="/shared/webtools/committers/wtp-R3.2.0-I/20091029001529"/>
    <property
        name="buildLabel"
        value="I-3.2.0-20091029030635"/>
    <property
        name="wtp.builder.home"
        value="/shared/webtools/projectBuilders/wtp-R3.2.0-I/webtools.releng/releng.wtpbuilder"/>
    <echo message="buildDirectory: ${buildDirectory}"/>
    <echo message="buildLabel: ${buildLabel}"/>
    <echo message="wtp.builder.home: ${wtp.builder.home}"/>
    <!--
        three convenience variables to help avoid typos, etc. Should
        never need to be changed
    -->
    <property
        name="tempDir"
        value="${buildDirectory}/${buildLabel}/tempdir"/>
    <property
        name="tempRunnableEclipse"
        value="${tempDir}/eclipse"/>
    <property
        name="tempRepo"
        value="${buildDirectory}/${buildLabel}/temprepo"/>
    <target name="build">
        <antcall target="createCodeZip">
            <param
                name="newarchiveName"
                value="${build.distribution}-${buildLabel}.zip"/>
        </antcall>
        <antcall target="createSDKZip">
            <param
                name="newarchiveName"
                value="${build.distribution}-sdk-${buildLabel}.zip"/>
        </antcall>
        <antcall target="createTestZip">
            <param
                name="newarchiveName"
                value="${build.distribution}-tests-${buildLabel}.zip"/>
        </antcall>
    </target>
     <!-- 
     Note: this was done as an import, since eventually there may be more than one ... differ by streams? There may be 
     better ways ... and may not be needed after all, since turning out to be pretty generic ... driven by "categories". 
     -->
    <import file="${wtp.builder.home}/distribution/${build.distribution}.package/createziptasks.xml"/>
</project>