-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
55 lines (44 loc) · 1.51 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
<project name="joid" default="build" basedir="."
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks-2.1.1.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
uri="antlib:org.apache.maven.artifact.ant"
classpathref="maven-ant-tasks.classpath" />
<!-- property file="./build.properties"/ -->
<target name="all" depends="clean, build, javadocs" />
<target name="usage">
<echo>
Main targets:
build --> compiles library, servlets, tests and runs unit tests
clean --> cleans all built files
javaodcs --> creates javadocs
test --> runs unit tests
all --> clean, build, javadocs
</echo>
</target>
<target name="build" depends="unjar-tsik">
<artifact:mvn pom="./pom.xml">
<arg value="install"/>
</artifact:mvn>
</target>
<target name="unjar-tsik">
<mkdir dir="./tsik/target/classes"/>
<unzip src="./tsik/lib/tsik/tsik/1.0.0/tsik-1.0.0.jar"
dest="./tsik/target/classes" />
</target>
<target name="javadocs">
<artifact:mvn pom="./pom.xml">
<arg value="javadoc:javadoc"/>
</artifact:mvn>
</target>
<target name="clean">
<artifact:mvn pom="./pom.xml">
<arg value="clean"/>
</artifact:mvn>
</target>
<target name="test">
<artifact:mvn pom="./pom.xml">
<arg value="test"/>
</artifact:mvn>
</target>
</project>