Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (51 sloc) 1.764 kB
<?xml version="1.0" encoding="utf-8"?>
<project basedir="." default="jar" name="ByteList">
<!-- Initializes the build -->
<target name="init">
<mkdir dir="build"/>
<mkdir dir="build/classes"/>
<mkdir dir="build/test-classes"/>
</target>
<target name="compile" depends="init">
<javac destdir="build/classes" debug="true" source="1.5" target="1.5" deprecation="true" encoding="UTF-8">
<src path="src"/>
</javac>
</target>
<target name="compile-tests" depends="compile">
<javac destdir="build/test-classes" debug="true" source="1.5" target="1.5" deprecation="true" encoding="UTF-8">
<classpath>
<pathelement location="build/classes"/>
</classpath>
<src path="test"/>
</javac>
</target>
<target name="test" depends="compile-tests" description="Runs all tests">
<junit haltonfailure="false">
<classpath>
<pathelement location="build/classes"/>
<pathelement location="build/test-classes"/>
</classpath>
<formatter type="brief" usefile="false"/>
<batchtest>
<fileset dir="test">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="jar" depends="test" description="Create the bytelist.jar file">
<jar destfile="lib/bytelist-1.0.2.jar">
<fileset dir="build/classes">
<include name="**/*.class"/>
<include name="**/*.properties"/>
</fileset>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
</manifest>
</jar>
</target>
<target name="clean" depends="init" description="clean everything">
<delete dir="build"/>
<delete file="lib/bytelist-1.0.2.jar" quiet="true"/>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.