This repository has been archived by the owner on Dec 3, 2021. It is now read-only.
forked from AceWiki/AceWiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
184 lines (174 loc) · 8.18 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?xml version="1.0" encoding="UTF-8"?>
<project name="AceWiki" default="buildeverything" basedir=".">
<property name="version" value="0.5.2"/>
<property file="src/ch/uzh/ifi/attempto/acewiki/acewiki.properties"/>
<property file="src/ch/uzh/ifi/attempto/aceeditor/aceeditor.properties"/>
<target name="compile"
description="Compile the Java files">
<mkdir dir="classes"/>
<javac
target="1.5"
encoding="utf-8"
includeantruntime="false"
debug="true"
debuglevel="lines,vars,source"
srcdir="src/"
excludes="**/test/**"
classpath="lib/aterm-java-1.6.jar;lib/attempto-ape.jar;lib/commons-fileupload-1.2.1.jar;lib/commons-lang-2.2.jar;lib/commons-logging-1.1.jar;lib/Echo3_App.jar;lib/Echo3_FileTransfer_App.jar;lib/Echo3_FileTransfer_WebContainer.jar;lib/Echo3_FileTransfer_Model.jar;lib/Echo3_FileTransfer_Receiver.jar;lib/Echo3_Extras_App.jar;lib/Echo3_Extras_WebContainer.jar;lib/Echo3_WebContainer.jar;lib/echopoint-3.0.0b5.jar;lib/jdom.jar;lib/owlapi-bin.jar;lib/HermiT.jar;lib/owllink-bin.jar;lib/relaxngDatatype.jar;lib/servlet-api.jar;lib/xsdlib.jar;lib/xstream-1.3.1.jar;lib/JPGF.final.jar"
destdir="classes/">
<compilerarg value="-Xlint"/>
</javac>
<copy todir="classes/ch/uzh/ifi/attempto/echocomp/style">
<fileset dir="src/ch/uzh/ifi/attempto/echocomp/style"/>
</copy>
<copy todir="classes/ch/uzh/ifi/attempto/acewiki/gui/img">
<fileset dir="src/ch/uzh/ifi/attempto/acewiki/gui/img"/>
</copy>
<copy
file="src/ch/uzh/ifi/attempto/acewiki/acewiki.properties"
tofile="classes/ch/uzh/ifi/attempto/acewiki/acewiki.properties"
/>
<copy todir="classes/ch/uzh/ifi/attempto/acewiki/gf">
<fileset dir="src/ch/uzh/ifi/attempto/acewiki/gf" includes="*.pgf"/>
</copy>
<copy
file="src/ch/uzh/ifi/attempto/aceeditor/aceeditor.properties"
tofile="classes/ch/uzh/ifi/attempto/aceeditor/aceeditor.properties"
/>
<copy todir="classes/ch/uzh/ifi/attempto/echocomp">
<fileset dir="src/ch/uzh/ifi/attempto/echocomp" includes="*.js"/>
</copy>
<copy
file="war/META-INF/nextapp/echo/SynchronizePeerBindings.properties"
tofile="classes/META-INF/nextapp/echo/SynchronizePeerBindings.properties"
/>
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm"/>
</tstamp>
<replace
file="classes/ch/uzh/ifi/attempto/acewiki/acewiki.properties"
token="@acewiki-build-date@"
value="${TODAY}"
/>
<replace
file="classes/ch/uzh/ifi/attempto/aceeditor/aceeditor.properties"
token="@aceeditor-build-date@"
value="${TODAY}"
/>
</target>
<target name="createjars"
description="Create JAR files"
depends="compile">
<jar
destfile="attempto-chartparser.jar"
basedir="classes/"
includes="ch/uzh/ifi/attempto/chartparser/** ch/uzh/ifi/attempto/base/**"
/>
<jar
destfile="attempto-echo.jar"
basedir="classes/"
includes="ch/uzh/ifi/attempto/echocomp/** META-INF/** ch/uzh/ifi/attempto/preditor/**"
/>
<jar
destfile="attempto-acewiki.jar"
basedir="classes/"
includes="ch/uzh/ifi/attempto/acewiki/**"
/>
<jar
destfile="attempto-aceeditor.jar"
basedir="classes/"
includes="ch/uzh/ifi/attempto/aceeditor/**"
/>
</target>
<target name="createjavadoc"
description="Create the Javadoc files">
<javadoc
encoding="utf-8"
sourcepath="src/"
packagenames="*"
excludepackagenames="**.test"
destdir="docs/"
extdirs="lib/"
windowtitle="AceWiki, version ${version}"
doctitle="AceWiki, version ${version}"
overview="src/overview.html"
linksource="on">
<bottom><![CDATA[<em>Copyright 2008-2012, AceWiki developers</em>]]></bottom>
</javadoc>
<copy
file="README.md"
tofile="docs/README.txt"
/>
<copy
file="war/WEB-INF/web.xml"
tofile="docs/web.xml"
/>
<copy todir="docs/ch/uzh/ifi/attempto/codeco">
<fileset dir="src/ch/uzh/ifi/attempto/codeco"
includes="*.pl"
/>
</copy>
<copy todir="docs/ch/uzh/ifi/attempto/aceeditor">
<fileset dir="src/ch/uzh/ifi/attempto/aceeditor"
includes="aceeditor_grammar*"
/>
</copy>
<copy todir="docs/ch/uzh/ifi/attempto/acewiki/aceowl">
<fileset dir="src/ch/uzh/ifi/attempto/acewiki/aceowl"
includes="acewiki_grammar*"
/>
</copy>
</target>
<target name="createwebapps"
description="Compiles everything and builds the WAR file that is used to run the web applications"
depends="createjars">
<mkdir dir="war/WEB-INF/lib"/>
<copy todir="war/WEB-INF/lib">
<fileset dir="lib/" includes="*.jar"/>
<fileset dir="." includes="*.jar"/>
</copy>
<delete file="acewiki.war"/>
<jar
destfile="acewiki.war"
basedir="war"
includes="**">
<manifest>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-SymbolicName" value="ch.uzh.ifi.attempto.acewiki"/>
<attribute name="Bundle-Name" value="${ant.project.name}"/>
<attribute name="Bundle-Version" value="${version}"/>
<attribute name="DynamicImport-Package" value="*" />
<attribute name="Web-ContextPath" value="acewiki"/>
<attribute name="Import-Package" value="javax.servlet,javax.servlet.http,org.w3c.dom,org.xml.sax,javax.xml.transform,javax.xml.transform.stream,javax.xml.transform.dom,javax.xml.parsers"/>
<attribute name="Bundle-ClassPath" value=".,WEB-INF/classes,WEB-INF/lib/Echo3_App.jar,WEB-INF/lib/Echo3_Extras_App.jar,WEB-INF/lib/Echo3_Extras_WebContainer.jar,WEB-INF/lib/Echo3_FileTransfer_App.jar,WEB-INF/lib/Echo3_FileTransfer_Model.jar,WEB-INF/lib/Echo3_FileTransfer_Receiver.jar,WEB-INF/lib/Echo3_FileTransfer_WebContainer.jar,WEB-INF/lib/Echo3_WebContainer.jar,WEB-INF/lib/HermiT.jar,WEB-INF/lib/aterm-java-1.6.jar,WEB-INF/lib/attempto-aceeditor.jar,WEB-INF/lib/attempto-acewiki.jar,WEB-INF/lib/attempto-ape.jar,WEB-INF/lib/attempto-chartparser.jar,WEB-INF/lib/attempto-echo.jar,WEB-INF/lib/commons-codec-1.5.jar,WEB-INF/lib/commons-fileupload-1.2.1.jar,WEB-INF/lib/commons-lang-2.2.jar,WEB-INF/lib/commons-logging-1.1.jar,WEB-INF/lib/echopoint-3.0.0b5.jar,WEB-INF/lib/httpclient-4.1.1.jar,WEB-INF/lib/httpcore-4.1.1.jar,WEB-INF/lib/jdom.jar,WEB-INF/lib/owlapi-bin.jar,WEB-INF/lib/owllink-bin.jar,WEB-INF/lib/relaxngDatatype.jar,WEB-INF/lib/servlet-api.jar,WEB-INF/lib/xsdlib.jar,WEB-INF/lib/xstream-1.3.1.jar"/>
</manifest>
</jar>
</target>
<target name="clean"
description="Clean up">
<delete file="attempto-chartparser.jar"/>
<delete file="attempto-echo.jar"/>
<delete file="attempto-acewiki.jar"/>
<delete file="attempto-aceeditor.jar"/>
<delete>
<fileset dir="." includes="acewiki-*.zip"/>
</delete>
<delete dir="classes/ch/"/>
<delete dir="docs/"/>
<delete dir="war/WEB-INF/lib/"/>
</target>
<target name="buildeverything"
depends="clean, createjars, createjavadoc, createwebapps"
description="Clean up and create Javadoc, JAR files, and the AceWiki web application"
/>
<target name="createzip"
description="Create the ZIP file"
depends="buildeverything">
<zip
destfile="acewiki-${version}.zip"
basedir="."
includes="**"
excludes="*.zip *.war .* .git/** classes/** war/WEB-INF/lib/** **/local/** /lib/pellet-*.jar .settings/** data/** logs/** ape.exe"
/>
</target>
</project>