This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
/
deploy.xml
54 lines (46 loc) · 2.32 KB
/
deploy.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
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="phing-grammar.rng"
type="application/xml"
schematypens="http://relaxng.org/ns/structure/1.0" ?>
<project name="AjaXplorer" default="build" basedir=".">
<taskdef classname="lib.AjxpAPIClientTask" name="ajaxplorer_sdk"/>
<property file="deploy.properties"/>
<target name="build" description="Main sequence">
<if>
<not><available type="file" file="${installPath}/ajaxplorer-latest.zip"/></not>
<then>
<httpget url="http://ajaxplorer.info/build/ajaxplorer-latest.zip" dir="${installPath}" filename="ajaxplorer-latest.zip"/>
</then>
</if>
<if>
<not><available type="dir" file="${installPath}/ajaxplorer-latest"/></not>
<then>
<unzip file="${installPath}/ajaxplorer-latest.zip" todir="${installPath}"/>
</then>
</if>
<property name="cliPath" value="${installPath}/ajaxplorer-latest"/>
<touch file="${cliPath}/data/cache/diag_result.php"/>
<!-- RUN FIRST INSTALL -->
<ajaxplorer_sdk
cliPath="${cliPath}"
action="apply_installer_form"
params='--ADMIN_USER_LOGIN=${admin_user} --ADMIN_USER_PASS=${admin_password} --APPLICATION_TITLE="Latest Tests" --APPLICATION_WELCOME="Phing Test Deployment" --APPLICATION_LANGUAGE=en'
/>
<!-- CREATE REPOSITORIES -->
<ajaxplorer_sdk
cliPath="${cliPath}"
user="${admin_user}"
password="${admin_password}"
action="create_repository"
params='--DISPLAY="fs" --DRIVER=fs --json_data={\"PATH\":\"AJXP_DATA_PATH/files/phing\",\"CREATE\":\"true\"}'/>
<ajaxplorer_sdk
cliPath="${cliPath}"
user="${admin_user}"
password="${admin_password}"
action="create_repository"
params='--DISPLAY="smb" --DRIVER=smb --json_data={\"HOST\":\"${ws.samba.host}\",\"PATH\":\"${ws.samba.share}\",\"USER\":\"${ws.samba.user}\",\"PASSWORD\":\"${ws.samba.password}\",}'/>
<!-- Some cleaning before accessing via HTTP -->
<delete file="${cliPath}/data/cache/i18n/en_plugins_messages.ser"/>
<exec command="chmod -R a+rw ${cliPath}/data"/>
</target>
</project>