File: taskdef.xml

package info (click to toggle)
phing 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,368 kB
  • sloc: php: 59,821; xml: 9,767; sql: 78; makefile: 39; sh: 14
file content (58 lines) | stat: -rw-r--r-- 1,327 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
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
<?xml version="1.0"?>

<project name="test" default="invalid">

  <target name="invalid">
    <fail>This file should only be run via a testcase</fail>
  </target>

  <target name="empty">
    <taskdef />
  </target>

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

  <target name="noName">
    <taskdef classname="Phing\Test\Support\TaskdefTestSimpleTask"/>
  </target>

  <target name="classNotFound">
    <taskdef name="" classname="oops"/>
  </target>

  <path id="testclasses">
    <pathelement dir="../../classes" />
  </path>

  <taskdef name="global" classname="Phing\Test\Support\TaskdefTestSimpleTask">
    <classpath refid="testclasses" />
  </taskdef>

  <target name="testGlobal">
    <global id="global">
      <echo message="testGlobal echo"/>
    </global>
  </target>

  <target name="testLocal">
    <taskdef name="local" classname="Phing\Test\Support\TaskdefTestSimpleTask">
      <classpath refid="testclasses" />
    </taskdef>
    <local id="local">
      <echo message="testLocal echo"/>
    </local>
  </target>

  <target name="testFile">
    <taskdef file="${phing.file}/taskdef.properties">
      <classpath refid="testclasses" />
    </taskdef>
    <tdfile id="tdfile">
      <echo message="testTdfile echo"/>
    </tdfile>
    <tdfile2 id="tdfile2"/>
  </target>

</project>