File: phing.xml

package info (click to toggle)
phing 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 9,340 kB
  • sloc: php: 59,826; xml: 9,770; sql: 78; makefile: 39; sh: 14
file content (193 lines) | stat: -rw-r--r-- 6,834 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  ~ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  ~ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  ~ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  ~ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  ~ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  ~ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  ~ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  ~ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  ~ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  ~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  ~
  ~ This software consists of voluntary contributions made by many individuals
  ~ and is licensed under the LGPL. For more information please see
  ~ <http://phing.info>.
  -->
<project name="PhingTaskTest" basedir="." default="test1">
    <path id="inheritable">
        <pathelement path="${php.classpath}" />
    </path>

    <target name="cleanup">
        <delete file="test1.log" />
        <delete file="test2.log" />
        <delete file="phing/test3.log" />
        <delete file="phing/test4.log" />
    </target>

    <target name="all" depends="test1,test2,test3,test4"/>

    <target name="test1">
        <phing phingfile="phing.xml" dir="." target="test1" haltonfailure="true"/>
    </target>

    <target name="test2">
        <phingcall/>
    </target>

    <target name="test3">
        <phingcall target="test3"/>
    </target>

    <target name="test4">
        <phingcall target=""/>
    </target>

    <target name="test4b">
        <phingcall target="does-not-exist"/>
    </target>

    <target name="test5">
        <phingcall target="dummy"/>
    </target>

    <target name="test6">
        <phing phingfile="phing.xml" dir="." target="dummy"/>
    </target>

    <target name="dummy">
    </target>

    <target name="inheritBasedir">
        <phing phingfile="phing/phing.xml" target="dummy" inheritAll="true" />
    </target>

    <target name="doNotInheritBasedir">
        <phing phingfile="phing/phing.xml" target="dummy" inheritAll="false" />
    </target>

    <target name="explicitBasedir1">
        <phing phingfile="system/phing/phing.xml" target="dummy" inheritAll="true" dir=".." />
    </target>

    <target name="explicitBasedir2">
        <phing phingfile="system/phing/phing.xml" target="dummy" inheritAll="false" dir=".." />
    </target>

    <target name="tripleCall">
        <phing phingfile="phing/phing.xml" target="callback" inheritAll="false" />
    </target>

    <target name="testInherit">
        <phing phingfile="phing/references.xml" inheritRefs="true" target="dummy" />
    </target>

    <target name="testNoInherit">
        <phing phingfile="phing/references.xml" inheritRefs="false" target="dummy" />
    </target>

    <target name="testRename">
        <phing phingfile="phing/references.xml" inheritRefs="false" target="dummy">
            <reference refId="path" torefid="newpath" />
        </phing>
    </target>

    <target name="testInheritPath" description="try to pass a reference to a path, which refers itself to a second path">
        <resolvepath propertyName="rootdir" path="."/>
        <path id="project.classpath">
            <pathelement dir="../src"/>
        </path>
        <path id="test.classpath">
            <pathelement dir="${rootdir}/test/testframework.jar"/>
            <path refid="project.classpath"/>
        </path>
        <phing phingfile="phing/references.xml"  target="testInheritPath">
            <reference refId="test.classpath"/>
        </phing>
    </target>

    <target name="testLogfilePlacement">
        <phing phingfile="phing.xml" target="dummy" output="test1.log"
             inheritAll="false" />
        <phing phingfile="phing.xml" target="dummy" output="test2.log" />
        <phing phingfile="phing.xml" target="dummy" output="test3.log"
             inheritAll="false" dir="phing" />
        <phing phingfile="phing.xml" target="dummy" output="test4.log"
             dir="phing" />
    </target>

    <target name="test-property-override-inheritall-start">
        <property name="test" value="1" />
        <phing phingfile="phing.xml"
             target="test-property-override-inheritall-level-2"
             inheritAll="true">
            <property name="test" value="2" />
        </phing>
    </target>

    <target name="test-property-override-inheritall-level-2">
        <property name="test" value="3" />
        <phing phingfile="phing.xml"
             target="test-property-override-inheritall-level-3"
             inheritAll="true">
            <property name="test" value="4" />
        </phing>
    </target>

    <target name="test-property-override-inheritall-level-3">
        <property name="test" value="5" />
        <echo message="The value of test is ${test}" />
    </target>

    <target name="test-property-override-no-inheritall-start">
        <property name="test" value="1" />
        <phing phingfile="phing.xml" target="test-property-override-no-inheritall-level-2" inheritAll="false">
            <property name="test" value="2" />
        </phing>
    </target>

    <target name="test-property-override-no-inheritall-level-2">
        <property name="test" value="3" />
        <phing phingfile="phing.xml" target="test-property-override-no-inheritall-level-3" inheritAll="false">
            <property name="test" value="4" />
        </phing>
    </target>

    <target name="test-property-override-no-inheritall-level-3">
        <property name="test" value="5" />
        <echo message="The value of test is ${test}" />
    </target>

    <target name="infinite-loop-via-depends">
        <phingcall target="dependent" />
    </target>

    <target name="middleman" depends="infinite-loop-via-depends"/>
    <target name="dependent" depends="middleman"/>

    <target name="multi-same-property">
        <phing phingfile="phing.xml" target="echo-for-multi-same">
            <property name="prop" value="one"/>
            <property name="prop" value="two"/>
        </phing>
    </target>

    <target name="echo-for-multi-same">
        <echo>prop is ${prop}</echo>
    </target>

    <target name="topleveltarget">
        <phing phingfile="phing.topleveltest.xml"/>
    </target>

    <target name="ta"><echo>ta</echo></target>
    <target name="tb" depends="da,dc"><echo>tb</echo></target>
    <target name="tc" depends="db,dc"><echo>tc</echo></target>

    <target name="da"><echo>da</echo></target>
    <target name="db"><echo>db</echo></target>
    <target name="dc"><echo>dc</echo></target>
</project>