forked from shannah/xataface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
150 lines (126 loc) · 5 KB
/
build.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<project name="dataface" default="prodn" basedir=".">
<taskdef
name="jsdoctoolkit"
classname="uk.co.darrenhurley.ant.tasks.JsDocToolkit"
classpath="./build_tools/jsdoc/java/classes/jsdoc-toolkit-ant-task-1.1.2.jar:./build_tools/jsdoc/java/classes/js.jar"
/>
<target name="init">
<property name="sourceDir" value="."/>
<property name="libDir" value="lib"/>
<property name="outputDir" value="/tmp/dataface-build" />
<property name="docsDir" value="docs" />
<property name="testsDir" value="tests" />
<property name="tablesDir" value="tables" />
<property name="casOutputDir" value="/tmp/dataface_cas_module" />
<property name="sourceGuardianEncode5" value="/usr/local/php5/sg6/bin/encode5"/>
<property name="feedburnerOutputDir" value="/tmp/dataface_feedburner_module" />
</target>
<target name="clean" depends="init">
<delete dir="${casOutputDir}" />
<delete file="{$casOutputDir}.tar.gz" />
<deltree dir="${outputDir}" />
<delete file="${outputDir}.tar.gz" />
</target>
<target name="prepare" depends="clean">
<mkdir dir="${outputDir}" />
</target>
<target name="devel" depends="prepare">
<copydir src="${sourceDir}" dest="${outputDir}" />
<delete dir="${outputDir}/Dataface/templates_c"/>
<mkdir dir="${outputDir}/Dataface/templates_c"/>
</target>
<target name="prodn" depends="devel">
<deltree dir="./doc"/>
<deltree dir="./doc_output"/>
<deltree dir="./build_tools"/>
<deltree dir="${outputDir}/${docsDir}"/>
<deltree dir="${outputDir}/${testsDir}"/>
<deltree dir="${outputDir}/${tablesDir}"/>
<deltree dir="${outputDir}/lib/Auth"/>
<deltree dir="${outputDir}/lib/Cache"/>
<deltree dir="${outputDir}/lib/DB"/>
<delete file="${outputDir}/lib/DB.php"/>
<deltree dir="${outputDir}/lib/Event"/>
<delete file="${outputDir}/lib/excel.php"/>
<deltree dir="${outputDir}/lib/FX"/>
<delete file="${outputDir}/lib/LiveUser.php"/>
<deltree dir="${outputDir}/lib/PHPUnit"/>
<delete file="${outputDir}/lib/PHPUnit.php"/>
<deltree dir="${outputDir}/lib/Perm"/>
<deltree dir="${outputDir}/lib/Var_Dump"/>
<delete file="${outputDir}/lib/Var_Dump.php"/>
<deltree dir="${outputDir}/lib/docs"/>
<deltree dir="${outputDir}/lib/phpThumb"/>
<deltree dir="${outputDir}/lib/simpletest"/>
<deltree dir="${outputDir}/modules/Auth"/>
<deltree dir="${outputDir}/modules/Feedburner"/>
<delete file="${outputDir}/Dataface/QueryTranslator.php"/>
<deltree dir="{$outputDir}/lib/dhtmlxGrid/samples" />
<deltree dir="{$outputDir}/lib/dhtmlxGrid/src" />
<deltree dir="{$outputDir}/lib/dhtmlxGrid/doc" />
<delete file="{$outputDir}/lib/dhtmlxGrid/dhtmlxGrid.zip" />
<delete dir="{$outputDir}/lib/FCKeditor"/>
<delete dir="{$outputDir}/lib/tiny_mce"/>
</target>
<target name="tarball">
<exec dir="/tmp" executable="tar">
<arg value="cvf"/>
<arg path="${outputDir}.tar"/>
<arg path="${outputDir}"/>
</exec>
<exec dir="/tmp" executable="gzip">
<arg path="${outputDir}.tar"/>
</exec>
</target>
<target name="prodn-tarball" depends="prodn">
<antcall target="tarball"/>
</target>
<target name="lite" depends="prodn">
<deltree dir="${outputDir}/lib/FCKeditor"/>
<deltree dir="${outputDir}/lib/HTTP"/>
<deltree dir="${outputDir}/lib/phpThumb"/>
<deltree dir="${outputDir}/lib/tiny_mce"/>
</target>
<target name="lite-tarball" depends="lite">
<antcall target="tarball"/>
</target>
<target name="oem" depends="lite">
<deltree dir="${outputDir}/install"/>
<delete file="${outputDir}/installer.php"/>
</target>
<target name="oem-tarball" depends="oem">
<antcall target="tarball"/>
</target>
<target name="oem_lite" depends="lite">
<deltree dir="${outputDir}/install"/>
<delete file="${outputDir}/installer.php"/>
</target>
<target name="oem_lite-tarball" depends="oem_lite">
<antcall target="tarball" />
</target>
<target name="cas_module" depends="clean">
<mkdir dir="${casOutputDir}" />
<mkdir dir="${casOutputDir}/modules" />
<mkdir dir="${casOutputDir}/modules/Auth" />
<copydir src="${sourceDir}/modules/Auth/cas" dest="${casOutputDir}/modules/Auth/cas" />
</target>
<target name="feedburner_module" depends="clean">
<mkdir dir="${feedburnerOutputDir}" />
<mkdir dir="${feedburnerOutputDir}/modules" />
<copydir src="${sourceDir}/modules/Feedburner" dest="${casOutputDir}/modules/Feedburner" />
</target>
<target name="jsdoc">
<jsdoctoolkit
jsdochome="./build_tools/jsdoc/"
template="jsdoc"
outputdir="./doc_output/jsdoc/"
>
<fileset dir="./js/">
<include name="**/*.js"/>
</fileset>
<fileset dir="./modules/XataJax/js/">
<include name="**/*.js"/>
</fileset>
</jsdoctoolkit>
</target>
</project>