-
Notifications
You must be signed in to change notification settings - Fork 2
/
Master.xml
78 lines (67 loc) · 2.86 KB
/
Master.xml
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
<?xml version="1.0"?>
<project name="Master" basedir="Tasks" default="">
<property name="dryRun" value="${dryRun}"/>
<property name="build.home" value="build/Phing"/>
<import file="${build.home}/SiteImporter.xml"/>
<exec command="whoami" outputProperty="local.user" />
<property name="file.properties" value="configuration/PhingSettings.properties"/>
<available file="${file.properties}" type="file" property="file.exists"/>
<if>
<isset property="file.exists"/>
<then>
<property file="${file.properties}"/>
</then>
</if>
<if>
<equals arg1="${local.database.password}" arg2=""/>
<then>
<!-- handle case if SQL server has not password -->
<property name="mysql.local" value="${local.mysql.binary} -u ${local.database.username}"/>
</then>
<else>
<property name="mysql.local" value="${local.mysql.binary} -u ${local.database.username} -p${local.database.password}"/>
</else>
</if>
<!-- FILE SET -->
<fileset dir="${local.directory.documentRoot}/fileadmin" id="processedFiles">
<include name="_processed_/**"/>
<include name="*/_processed_/**"/>
<include name="*/*/_processed_/**"/>
</fileset>
<path id="t3phing.classes">
<pathelement dir="${build.home}/Classes/"/>
</path>
<!-- TASK DEFINITION -->
<taskdef name="commandLocal" classname="CommandLocalTask" classpathref="t3phing.classes"/>
<taskdef name="commandRemote" classname="CommandRemoteTask" classpathref="t3phing.classes"/>
<taskdef name="dumpRemote" classname="DumpRemoteTask" classpathref="t3phing.classes"/>
<taskdef name="localconfFinisher" classname="LocalconfFinisherTask" classpathref="t3phing.classes"/>
<taskdef name="rsync" classname="RsyncTask" classpathref="t3phing.classes"/>
<taskdef name="fetchProperties" classname="FetchPropertiesTask" classpathref="t3phing.classes"/>
<!--
==============================================
Default entry point
==============================================
-->
<target name="help">
<echo>Usage of this Phing:</echo>
<echo/>
<echo>phing help - display this help message</echo>
<echo/>
<echo>---------------------------------------------</echo>
<echo>Import website locally</echo>
<echo>---------------------------------------------</echo>
<echo>phing show - Show Phing current configuration</echo>
<echo>phing import-dump - Fetch the database and build it again locally for TYPO3 6.0</echo>
<echo>phing uploads - Fetch uploads folder</echo>
<echo>phing fileadmin - Fetch fileadmin</echo>
<echo>phing user_upload - Fetch user_upload folder</echo>
<echo/>
<echo>phing d - import-dump shortcut</echo>
<echo/>
<echo>---------------------------------------------</echo>
<echo>Possible option</echo>
<echo>---------------------------------------------</echo>
<echo>-DdryRun=true - Only display the command to be executed</echo>
</target>
</project>