| <project name="Build specific targets and properties" default="noDefault" > |
| <property name="postingDirectory" value="${buildDirectory}" /> |
| |
| <!-- ===================================================================== --> |
| <!-- Run a given ${target} on all elements being built --> |
| <!-- Add on <ant> task for each top level element being built. --> |
| <!-- ===================================================================== --> |
| <target name="allElements"> |
| <echo message="Target: ${target} " /> |
| <echo message="basedir: ${basedir}" /> |
| <echo message="component: ${component}" /> |
| <echo message="buildDirectory: ${buildDirectory}" /> |
| <echo message="baseLocation: ${baseLocation}" /> |
| |
| <ant antfile="${genericTargets}" target="${target}" > |
| <property name="type" value="feature" /> |
| <property name="id" value="org.eclipse.dali.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.dali"> |
| <property name="archiveName" value="dali-${buildLabel}.zip" /> |
| |
| <ant antfile="${assembleScriptName}" dir="${buildDirectory}" /> |
| |
| <mkdir dir="${postingDirectory}/${buildLabel}/checksum" /> |
| <checksum file="${postingDirectory}/${buildLabel}/dali-${buildLabel}.zip" property="md5" /> |
| |
| <echo message="${md5} *dali-${buildLabel}.zip" |
| file="${postingDirectory}/${buildLabel}/checksum/dali-${buildLabel}.zip.md5" /> |
| <echo message="${md5}" |
| file="${postingDirectory}/${buildLabel}/checksum/dali-${buildLabel}.zip.md5antformat" /> |
| </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.dali.tests"> |
| <property name="archiveName" value="dali-Automated-Tests-${buildLabel}.zip" /> |
| |
| <ant antfile="${assembleScriptName}" dir="${buildDirectory}" /> |
| |
| <mkdir dir="${postingDirectory}/${buildLabel}/checksum" /> |
| <checksum file="${postingDirectory}/${buildLabel}/dali-Automated-Tests-${buildLabel}.zip" property="md5" /> |
| |
| <echo message="${md5} *dali-Automated-Tests-${buildLabel}.zip" |
| file="${postingDirectory}/${buildLabel}/checksum/dali-Automated-Tests-${buildLabel}.zip.md5" /> |
| <echo message="${md5}" |
| file="${postingDirectory}/${buildLabel}/checksum/dali-Automated-Tests-${buildLabel}.zip.md5antformat" /> |
| </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/releng.dali" /> |
| </target> |
| |
| <target name="getMapFiles" depends="checkLocal" unless="mapsLocal"> |
| |
| <!-- *** change the repo info --> |
| <property name="mapCvsRoot" value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" /> |
| <property name="mapVersionTag" value="HEAD" /> |
| <property name="cvsPackage" value="releng.dali" /> |
| <echo message="${mapCvsRoot} ${mapVersionTag} "/> |
| <echo message="cvsPackage = ${cvsPackage} "/> |
| |
| <cvs cvsRoot="${mapCvsRoot}" package="${cvsPackage}" dest="${buildDirectory}/maps" tag="${mapVersionTag}" /> |
| <!--tag the map files project--> |
| <antcall target="tagMapFiles"> |
| <param name="mapCvsRoot" value="${mapCvsRoot}" /> |
| </antcall> |
| </target> |
| |
| <target name="tagMapFiles" if="tagMaps"> |
| <cvs cvsRoot="${mapCvsRoot}" dest="${buildDirectory}/maps" command="tag v${buildType}${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"> |
| <dirname file="${ant.file}" property="component.dir" /> |
| <echo message="ant.file: ${ant.file}" /> |
| <echo message="component.dir: ${component.dir}" /> |
| |
| <ant antfile="${component.dir}/dependency.xml" target="get"> |
| <property name="dependency.properties" value="${buildDirectory}/maps/releng.dali/maps/dependencies.properties" /> |
| <property name="base.install.dir" value="${buildRoot}" /> |
| </ant> |
| <!--fetch the additional pieces to build dali tests --> |
| <property name="featureOnly" value="false" /> |
| <property name="featureAndPlugins" value="true" /> |
| <property name="featuresRecursively" value="true" /> |
| |
| <ant antfile="${genericTargets}" dir="${pde.build.scripts}" target="fetchElement"> |
| <property name="type" value="feature" /> |
| <property name="id" value="org.eclipse.dali" /> |
| </ant> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do before fetching the build elements --> |
| <!-- ===================================================================== --> |
| <target name="preFetch"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do after fetching the build elements --> |
| <!-- ===================================================================== --> |
| <target name="postFetch"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do before generating the build scripts. --> |
| <!-- ===================================================================== --> |
| <target name="preGenerate"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do after generating the build scripts. --> |
| <!-- ===================================================================== --> |
| <target name="postGenerate"> |
| </target> |
| |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do before running the build.xmls for the elements being built. --> |
| <!-- ===================================================================== --> |
| <target name="preProcess"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do after running the build.xmls for the elements being built. --> |
| <!-- ===================================================================== --> |
| <target name="postProcess"> |
| </target> |
| |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do before running assemble. --> |
| <!-- ===================================================================== --> |
| <target name="preAssemble"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do after running assemble. --> |
| <!-- ===================================================================== --> |
| <target name="postAssemble"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do after the build is done. --> |
| <!-- ===================================================================== --> |
| <target name="postBuild"> |
| |
| <!-- create zipped up versions for update site --> |
| <!-- removing for now, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=139268 |
| |
| <property name="UpdateSiteStagingLocation" value="${buildDirectory}/updateSite" /> |
| <antcall target="generateUpdateSite" /> |
| --> |
| </target> |
| |
| <target name="generateUpdateSite"> |
| <!-- Create the directory structure --> |
| <mkdir dir="${UpdateSiteStagingLocation}" /> |
| <mkdir dir="${UpdateSiteStagingLocation}/features" /> |
| <mkdir dir="${UpdateSiteStagingLocation}/plugins" /> |
| <!-- Build the jar files --> |
| <antcall target="allElements"> |
| <param name="genericTargets" value="${builder}/customTargets.xml" /> |
| <param name="target" value="updateSiteExport" /> |
| </antcall> |
| <antcall target="copySiteXmlFromCvs" /> |
| <antcall target="createNightlyBuildSiteXml" /> |
| </target> |
| <target name="updateSiteExport"> |
| <ant antfile="build.xml" |
| dir="${buildDirectory}/features/${id}/" |
| target="build.update.jar"> |
| <property name="feature.destination" value="${UpdateSiteStagingLocation}/features" /> |
| <property name="plugin.destination" value="${UpdateSiteStagingLocation}/plugins" /> |
| </ant> |
| </target> |
| <target name="copySiteXmlFromCvs" unless="isNightlyBuild"> |
| <!-- connect to CVS and fetch site.xml, copy to ${UpdateSiteStagingLocation}/site.xml afterwards --> |
| </target> |
| <target name="createNightlyBuildSiteXml" if="isNightlyBuild"> |
| <!-- create ${UpdateSiteStagingLocation}/site.xml which contains only the nighlty build version --> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to test the build results --> |
| <!-- ===================================================================== --> |
| <target name="test" unless="dontRunTests"> |
| <property name="eclipseAutomatedTestHome" value="${buildDirectory}/plugins/org.eclipse.dali.utility.tests" /> |
| |
| <echo message="Setting up tests in ${eclipseAutomatedTestHome}"/> |
| |
| <copy file="${buildDirectory}/${buildLabel}/dali-${buildLabel}.zip" tofile="${eclipseAutomatedTestHome}/eclipse-SDK-dali-${buildLabel}.zip" /> |
| <copy file="${buildDirectory}/${buildLabel}/dali-Automated-Tests-${buildLabel}.zip" tofile="${eclipseAutomatedTestHome}/eclipse-junit-tests-dali-${buildLabel}.zip" /> |
| |
| <ant antfile="${eclipseAutomatedTestHome}/test.xml" target="run" dir="${eclipseAutomatedTestHome}"> |
| <property name="os" value="${baseos}" /> |
| <property name="ws" value="${basews}" /> |
| <property name="arch" value="${basearch}" /> |
| <property name="eclipse-home" value="${baseLocation}" /> |
| </ant> |
| |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do to publish the build results --> |
| <!-- ===================================================================== --> |
| <target name="publish"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Default target --> |
| <!-- ===================================================================== --> |
| <target name="noDefault"> |
| <echo message="You must specify a target when invoking this file" /> |
| </target> |
| |
| </project> |