The following snippet will apply the fully labelled baseline CCANT1
and promote it to BUILT:
<project name="test" default="apply-bl"
xmlns:ca="antlib:net.sourceforge.clearantlib">
<target name="apply-bl">
<ca:applybl baselineselector="CCANT1"
pvob="\Projects" full="true"
plevel="BUILT"
failonerror="true"/>
</target>
</project> The following snippet will try to
apply the baseline CCANT1 and then check if it was succesful: <project name="test" default="apply-bl"
xmlns:ca="antlib:net.sourceforge.clearantlib">
<target name="apply-bl">
<ca:applybl baselineselector="CCANT1"
pvob="\Projects" checkexists="true"
createdproperty="ccblexists"
failonerror="true"/>
<fail unless="${ccblexists}">Baseline not applied</fail>
</target>
</project> |