-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
48 lines (43 loc) · 1.61 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
<project name="jack" default="jar">
<path id="project.class.path">
<!-- order is important. if we include davex first, we get a log4j exception -->
<fileset dir="lib/">
<include name="jackrabbit*.jar"/>
</fileset>
<fileset dir="lib/">
<include name="*.jar" />
</fileset>
</path>
<manifestclasspath property="jar.class.path"
jarfile="build/jack.jar">
<classpath refid="project.class.path" />
</manifestclasspath>
<target name="jar" depends="compile">
<jar jarfile="build/jack.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="ch.liip.jcr.jack.Jack"/>
<attribute name="Class-Path" value="${jar.class.path}"/>
</manifest>
</jar>
</target>
<target name="compile">
<mkdir dir="build/classes/"/>
<dependset>
<srcfileset dir="src" includes="**/*.java" />
<targetfileset dir="build/classes" includes="**/*.class" />
</dependset>
<javac srcdir="src" destdir="build/classes/" debug="on" optimize="on" deprecation="on" source="1.3" target="1.3">
<classpath refid="project.class.path" />
</javac>
<copy todir="build/classes">
<fileset dir="src" excludes="*.java"/>
</copy>
</target>
<target name="javadoc">
<javadoc packagenames="**.*, "
sourcepath="src"
destdir="build/javadoc">
<classpath refid="project.class.path"/>
</javadoc>
</target>
</project>