-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsymfony-command-task-integration-test.xml
More file actions
72 lines (51 loc) · 2.89 KB
/
symfony-command-task-integration-test.xml
File metadata and controls
72 lines (51 loc) · 2.89 KB
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
<?xml version="1.0" encoding="utf-8"?>
<project name="SymfonyCommandTaskIntegrationTest" default="test">
<property file="${project.basedir}/symfony-command-task-integration-test.local.properties"/>
<taskdef name="symfony-cmd" classname="VasekPurchart\Phing\SymfonyCommand\SymfonyCommandTask"/>
<target name="call-command">
<property name="call-command.default.app" value="${project.basedir}/console"/>
<property name="symfony-command.default.app" value="${call-command.default.app}"/>
<property name="call-command.default.executable" value="php"/>
<property name="symfony-command.default.executable" value="${call-command.default.executable}"/>
<symfony-cmd cmd="hello:world"/>
</target>
<target name="call-command-with-custom-executable">
<property name="call-command-with-custom-executable.default.app" value="${project.basedir}/console"/>
<property name="symfony-command.default.app" value="${call-command-with-custom-executable.default.app}"/>
<property name="call-command-with-custom-executable.test.executable" value="php"/>
<symfony-cmd executable="${call-command-with-custom-executable.test.executable}" cmd="hello:world"/>
</target>
<target name="call-command-with-custom-app">
<property name="call-command-with-custom-app.default.executable" value="php"/>
<property name="symfony-command.default.executable" value="${call-command-with-custom-app.default.executable}"/>
<property name="call-command-with-custom-app.test.app" value="${project.basedir}/console"/>
<symfony-cmd app="${call-command-with-custom-app.test.app}" cmd="hello:world"/>
</target>
<target name="call-command-with-custom-executable-and-app">
<property name="call-command-with-custom-executable-and-app.test.app" value="${project.basedir}/console"/>
<property name="call-command-with-custom-executable-and-app.test.executable" value="php"/>
<symfony-cmd
executable="${call-command-with-custom-executable-and-app.test.executable}"
app="${call-command-with-custom-executable-and-app.test.app}"
cmd="hello:world"
/>
</target>
<target name="call-command-with-app-as-executable">
<property name="call-command-with-app-as-executable.test.app" value="${project.basedir}/console"/>
<symfony-cmd app="${call-command-with-app-as-executable.test.app}" cmd="hello:world"/>
</target>
<target name="call-command-and-override-defaults">
<property name="symfony-command.default.app" value="XXX"/>
<property name="symfony-command.default.executable" value="YYY"/>
<property name="call-command-and-override-defaults.test.app" value="${project.basedir}/console"/>
<property name="call-command-and-override-defaults.test.executable" value="php"/>
<symfony-cmd
executable="${call-command-and-override-defaults.test.executable}"
app="${call-command-and-override-defaults.test.app}"
cmd="hello:world"
/>
</target>
<target name="missing-app">
<symfony-cmd cmd="hello:world"/>
</target>
</project>