<project name="JournalReader" default="dist" basedir="."> <description> simple example build file </description> <!-- set global properties for this build --> <property name="src" location="src"/> <property name="build" location="bin"/> <property name="dist" location="dist"/> <presetdef name="javac"> <javac includeantruntime="false" /> </presetdef> <target name="init"> <!-- Create the time stamp --> <tstamp/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build}"/> </target> <target name="compile" depends="init" description="compile the source " > <!-- Compile the java code from ${src} into ${build} --> <javac srcdir="${src}" destdir="${build}"/> </target> <target name="dist" depends="compile" description="generate the distribution" > <!-- Create the distribution directory --> <mkdir dir="${dist}/lib"/> <!-- Put everything in ${build} into the JournalReader.jar file --> <jar jarfile="${dist}/journalReader.jar" basedir="${build}"> <manifest> <attribute name="Main-Class" value="journal.reader.JournalReader"/> <attribute name="Class-Path" value="."/> </manifest> </jar> </target> <target name="clean" description="clean up" > <!-- Delete the ${build} and ${dist} directory trees --> <delete dir="${build}"/> <delete dir="${dist}"/> </target> </project>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 8276 | Sven Erik Knop | Silenced build warning | ||
#2 | 7626 | Sven Erik Knop |
Removed obsolete imports. Added jar file manifest to build.xml |
||
#1 | 7527 | Sven Erik Knop |
JournalReader, now in its proper place. Documentation to follow. |