-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
132 lines (113 loc) · 4.98 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
<?xml version="1.0"?>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<project name="GPL Web Interface" default="webgpl">
<description>
Builds the GPL web interface.
</description>
<property name="runtime.jars" value="jakarta.jar,gson-1.6.jar,sat4j.jar,guidsl.jar,composer.jar,jak2java.jar"/>
<property name="runtime.exes" value="composer,jak2java"/>
<property name="dir.ahead" location="${basedir}/fop-v2011.02.12/ahead"/>
<property name="dir.ahead.build.lib" location="${dir.ahead}/build/lib"/>
<property name="dir.ahead.build.bin" location="${dir.ahead}/build/bin"/>
<property name="dir.ahead.javacc" location="${dir.ahead}/miscellaneous/javacc"/>
<property name="dir.gpl.src" location="${basedir}/fop-v2011.02.12/Tut-Demos/8GG"/>
<property name="webdsl.src" location="${basedir}/serverfiles"/>
<property name="webdsl.src.js" location="${webdsl.src}/js"/>
<property name="webdsl.src.css" location="${webdsl.src}/css"/>
<property name="webdsl.src.jak" location="${webdsl.src}/jak"/>
<property name="dir.build" location="${basedir}/build"/> <!-- drop the contents of this folder on your server -->
<property name="dir.build.lib" location="${dir.build}/lib"/>
<property name="dir.build.bin" location="${dir.build}/bin"/>
<property name="dir.build.classes" location="${dir.build}"/>
<property name="dir.build.js" location="${dir.build}/js"/>
<property name="dir.build.css" location="${dir.build}/css"/>
<property name="dir.build.jak" location="${dir.build}/jak"/>
<property name="dir.build.tmp" location="${dir.build}/tmp"/>
<path id="classpath">
<fileset dir="${dir.ahead.build.lib}" includes="**/*.jar"/>
</path>
<!-- - - - - - - - - - - - - - - -->
<!-- External Libraries & Tools: -->
<!-- - - - - - - - - - - - - - - -->
<property name="dir.ant" location="${ant.home}"/>
<property name="dir.ant.lib" location="${dir.ant}/lib"/>
<target name="all"
depends="ahead,webgpl"
description=""/>
<target
name="ahead"
depends="setPerms"
description="Builds the entire AHEAD Tool Suite.">
<ant dir="${dir.ahead}" inheritall="false"/>
</target>
<target
name="setPerms"
description="sets permissions to build ahead">
<chmod dir="${dir.ahead.javacc}/bin" includes="*" perm="u+x"/>
</target>
<target
name="guidsl"
description="Builds the GuiDsl AHEAD Tool.">
<ant dir="${dir.ahead}" target="guidsl" inheritall="false"/>
</target>
<target
name="webgpl"
depends="copy.files"
description="Builds the web GPL program.">
<mkdir dir="${dir.build.classes}"/>
<javac srcdir="${webdsl.src}" destdir="${dir.build.classes}" classpathref="classpath" includeantruntime="false"/>
</target>
<target name="copy.files">
<mkdir dir="${dir.build.bin}"/>
<mkdir dir="${dir.build.lib}"/>
<mkdir dir="${dir.build.js}"/>
<mkdir dir="${dir.build.css}"/>
<mkdir dir="${dir.build.tmp}"/>
<copy todir="${dir.build}">
<fileset dir="${webdsl.src}">
<include name="*.cnf"/>
<include name="*.cgi"/>
<include name="*.py"/>
<include name="*.html"/>
<include name="*.m"/>
<include name="setPerms.sh"/>
</fileset>
</copy>
<copy todir="${dir.build.bin}">
<filelist dir="${dir.ahead.build.bin}" files="${runtime.exes}"/>
</copy>
<copy todir="${dir.build.lib}">
<fileset dir="${dir.ahead.build.lib}">
<include name="**/*.jar"/>
</fileset>
</copy>
<copy todir="${dir.build.js}">
<fileset dir="${webdsl.src.js}">
<include name="**/*.js"/>
</fileset>
</copy>
<copy todir="${dir.build.css}">
<fileset dir="${webdsl.src.css}">
<include name="**/*.css"/>
</fileset>
</copy>
<copy todir="${dir.build.jak}">
<fileset dir="${dir.gpl.src}">
<include name="**/*.jak"/>
<include name="**/*.xhtml"/>
<include name="**/*.jpg"/>
</fileset>
</copy>
</target>
<target name="clean-all"
depends="clean"
description="Deletes generated files and scratch files.">
<ant dir="${dir.ahead}" target="clean" inheritall="false"/>
</target>
<target name="clean"
description="Cleans only serverfiles/build">
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="${dir.build}"/>
</delete>
</target>
</project>