projectsolution Code
Brought to you by:
mallox-de
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- Based on build.xml.template version 1.1 from 15.11.2012. -->
<!-- Builds the ear referenced by Projectsolution and Property ear.name
Performs Checkin for ear, Tags the Serverproject/EAR
-->
<project name="%EarProjectName%Server" default="build" basedir="..">
<fail unless="serverbuild.buildtargets" message="Property serverbuild.buildtargets not defined. If this parameter it is not set, the important targets used by the build or not defined!" />
<property name="serverbuild.buildtargets" value="dummybuild.xml" />
<import file="${serverbuild.buildtargets}" />
<target name="localinit">
<!-- cctimestamp setzen für den fall das ant ausserhalb cruisecontrol läuft -->
<tstamp>
<format property="cctimestamp" pattern="yyyyMMddHHmmss" timezone="GMT" />
</tstamp>
<echo message="Buildtimestamp ${cctimestamp}" />
<property name="server.name" value="${ant.project.name}" />
<property name="output.dir" value="${output.base}/${ant.project.name}" />
</target>
<!-- Target 'checkout' use the tasks PSSetCredentials and PSCheckout from plug-in
de.mallox.projectsolution.core.ant. The PSCheckout requires the root-folder
of the project with the according projectsolution-file. -->
<target name="checkout" depends="localinit">
<PSSetCredentials baseURLPattern=".*" user="${user}" password="${password}" />
<!-- PSCheckout fetches the depend projects as described in the projektsolution-file. -->
<PSCheckout projectname="${ant.project.name}" />
</target>
<target name="buildEarAndTag" depends="earTargets.doAll">
</target>
<!-- Target 'build' is the main ant-target to start project-build; therefore the ant-file localBuild.xml is called. -->
<target name="build" depends="localinit, checkout">
<!-- Execute build for depended EAR. -->
<ant target="buildEarAndTag" antfile="etc\build.xml">
<property name="ear.name" value="%EarProjectName%" />
</ant>
</target>
</project>