Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (43 sloc) 1.61 KB
<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>