File: SvnSwitchTest.xml

package info (click to toggle)
phing 3.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,328 kB
  • sloc: php: 59,826; xml: 9,770; sql: 78; makefile: 39; sh: 14
file content (23 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (2)
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>