-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFixSettings.xml
79 lines (63 loc) · 2.86 KB
/
FixSettings.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
79
<?xml version="1.0"?>
<project name="Master" basedir="Tasks" default="">
<property name="build.home" value="build/Phing"/>
<property name="dryRun" value="${dryRun}"/>
<!-- FILE SET -->
<path id="t3phing.classes">
<pathelement dir="${build.home}/Classes/"/>
</path>
<!-- TASK DEFINITION -->
<taskdef name="fixSettings" classname="FixSettingsTask" classpathref="t3phing.classes"/>
<!--
==============================================
Default entry point
==============================================
-->
<target name="help">
<echo>Missing file "configuration/PhingSettings.xml", let create it.</echo>
<echo></echo>
<echo>A few questions related to your local environment.</echo>
<echo>This Phing will best work when having a local Virtual Host (and is not under localhost for instance)</echo>
<echo></echo>
<echo>Enter your local domain without 'www', e.g. example.lan.</echo>
<input propertyName="local.domain"
message="local.domain: "/>
<echo>Enter the path where to find the database credentials relative to me. Default: configuration/Settings.php</echo>
<echo>Other possible value: htdocs/typo3conf/LocalConfiguration.php</echo>
<input propertyName="local.database.credentials"
message="local.database.credentials: "/>
<echo>Do you want to configure phing to fetch the website from a remote server? Enter true or false. Default: true</echo>
<input propertyName="has.server.deployment"
message="has.server.deployment: "/>
<if>
<or>
<istrue value="${has.server.deployment}"/>
<equals arg1="${has.server.deployment}" arg2="" />
</or>
<then>
<echo></echo>
<echo>A few questions related to your remote server. Enter values if previously enter true for has.server.deployment
</echo>
<echo>Enter the SSH credentials to the server if relevant. Ex. [email protected]</echo>
<input propertyName="remote.server.credentials"
message="remote.server.credentials: "/>
<echo>Enter the final domain without 'www'.</echo>
<input propertyName="remote.domain"
message="remote.domain: "/>
<echo>Enter the home directory on the remote (without the trailing slash), e.g /sites/domain.com</echo>
<input propertyName="remote.directory.home"
message="remote.directory.home: "/>
<echo>Enter the path where to find the database credentials relative to remote.directory.home. Default:
configuration/Settings.php
</echo>
<input propertyName="remote.database.credentials"
message="remote.database.credentials: "/>
</then>
</if>
<echo></echo>
<echo>[NOTICE] A new file "configuration/PhingSettings.xml" has just been generated.</echo>
<echo>It may be a good idea to have a look at it and personalise it a bit...</echo>
<echo>Once being checked, run again this phing. It should look different.</echo>
<fixSettings/>
</target>
</project>