1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<?xml version="1.0"?>
<project name="SvnSwitchTest" default="invalid">
<property name="tmp.dir" value="./../../../../tmp/svn" />
<property name="repo.url" value="https://github.com/phingofficial/phing/trunk/etc"/>
<property name="repo.url.tag" value="https://github.com/phingofficial/phing/tags/2.10.0/etc"/>
<resolvepath propertyName="tmp.dir.resolved" file="${tmp.dir}" />
<target name="invalid">
<fail>This file should only be run via a testcase</fail>
</target>
<target name="switchSimple" description="Checkout then switch to tag">
<svncheckout
repositoryurl="${repo.url}"
todir="${tmp.dir.resolved}" />
<svnswitch
repositoryurl="${repo.url.tag}"
todir="${tmp.dir.resolved}" />
</target>
</project>
|