[sword-devel] Build file for jsword
Bobby Nations
sword-devel@crosswire.org
Sun, 09 Dec 2001 21:13:32 -0600
This is a multi-part message in MIME format.
--------------529A4F0BCFD0D8E812163A67
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
All,
I'm pumped to find out about jsword, the java port of sword. As a small
token of my appreciation for the work done by everyone so far, I'm
attaching an ant build file for the jsword project. By default, it will
compile and jar all of the java files under 'jsword/src' into
'jsword/dist/sword.jar', and it will also create the javadocs under
'jsword/dist/api'. There's a clean target as well to remove temporary
directories such as dist.
Hope you like it, and I would love to contribute more to the ongoing
porting efforts.
Cheers,
Bobby
--------------529A4F0BCFD0D8E812163A67
Content-Type: text/xml; charset=us-ascii;
name="build.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="build.xml"
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="jsword" default="jar" basedir=".">
<!-- Set the project wide classpath -->
<path id="project.classpath">
<pathelement path="${java.class.path}/"/>
<pathelement location="./"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="init">
<property name="src.dir" value="src" />
<property name="build.dir" value="btree" />
<property name="dist.dir" value="dist" />
<property name="javadoc.dir" value="${dist.dir}/api" />
<property name="build.compiler" value="modern" />
<tstamp/>
</target>
<target name="createDir" depends="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${javadoc.dir}"/>
</target>
<target name="javadoc" depends="createDir">
<javadoc destdir="${javadoc.dir}"
sourcepath="${src.dir}/"
packagenames="SwordMod, sword, org.crosswire.sword.*,
org.crosswire.utils">
<classpath refid="project.classpath"/>
</javadoc>
</target>
<target name="compile" depends="javadoc">
<javac srcdir="${src.dir}"
destdir="${build.dir}" optimize="on"
classpathref="project.classpath"/>
</target>
<target name="jar" depends="compile">
<jar jarfile="${dist.dir}/sword.jar" basedir="${build.dir}"/>
</target>
<target name="modedit" depends="createDir">
<javac srcdir="apps/ModEdit/${src.dir}"
destdir="${build.dir}" optimize="on"
classpathref="project.classpath"/>
</target>
<target name="clean" depends="init">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
</project>
--------------529A4F0BCFD0D8E812163A67--