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

170 lines (156 sloc) 6.036 kB
<?xml version="1.0" encoding="utf-8"?>
<project name="ProjectName" default="all" basedir=".">
<property file="build.properties"/>
<path id="project.class.path">
<fileset dir="${lib}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
<pathelement path="${build}/classes"/>
<pathelement path="${build}/test-classes"/>
<pathelement path="${java.class.path}"/>
</path>
<target name="clean">
<mkdir dir="${classes}"/>
<mkdir dir="${build}"/>
<mkdir dir="${build}/classes"/>
<mkdir dir="${build}/testclasses"/>
<mkdir dir="${doc}"/>
<mkdir dir="${reports}"/>
<mkdir dir="${version}"/>
<delete includeEmptyDirs="true">
<fileset dir="${classes}" includes="*/**"/>
<fileset dir="${build}" includes="*/**"/>
<fileset dir="${doc}" includes="*/**"/>
<fileset dir="${reports}" includes="*/**"/>
<fileset dir="${version}" includes="*/**"/>
<fileset dir="./" includes="${classes}"/>
<fileset dir="./" includes="${build}"/>
<fileset dir="./" includes="${doc}"/>
<fileset dir="./" includes="${reports}"/>
<fileset dir="./" includes="${version}"/>
</delete>
</target>
<target name="prepare">
<mkdir dir="${classes}"/>
<mkdir dir="${build}"/>
<mkdir dir="${build}/classes"/>
<mkdir dir="${build}/testclasses"/>
<mkdir dir="${doc}"/>
<mkdir dir="${reports}"/>
</target>
<target name="compile" depends="prepare">
<javac fork="true" srcdir="${src}" destdir="${build}/classes"
deprecation="true" debug="true" target="jsr14" source="1.5">
<include name="**/*.java"/>
<classpath refid="project.class.path"/>
</javac>
<javac srcdir="${test}" destdir="${build}/testclasses"
deprecation="true" debug="true" target="jsr14" source="1.5">
<include name="**/*.java"/>
<classpath refid="project.class.path"/>
</javac>
<!--native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
includes="**/*.properties"/-->
<copy todir="${build}/classes">
<fileset dir="${src}">
<exclude name="**/*.java"/>
<exclude name="**/*.class"/>
<!--exclude name="**/*.properties"/-->
</fileset>
<fileset dir="${resources}"/>
</copy>
</target>
<target name="test" depends="compile">
<antcall target="testUnits"/>
<antcall target="testSuite"/>
<junitreport todir="${reports}">
<fileset dir="${reports}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${reports}"/>
</junitreport>
</target>
<target if="testclass" name="testUnits">
<junit fork="no" printsummary="yes" haltonfailure="no"
failureProperty="failTest" errorProperty="failTest">
<formatter type="xml"/>
<classpath refid="project.class.path"/>
<test name="${testclass}" todir="${reports}"/>
</junit>
</target>
<target unless="testclass" name="testSuite">
<junit fork="no" printsummary="yes" haltonfailure="no"
failureProperty="failTest" errorProperty="failTest">
<classpath refid="project.class.path"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${reports}">
<fileset dir="${src}">
<include name="**/*TestSuite.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="javadoc">
<javadoc packagenames="*.*"
sourcepath="${src}"
destdir="${doc}"
windowtitle="${projectName}"
author="true"
Locale="en_US"
docencoding="UTF-8"
version="true">
</javadoc>
</target>
<target name="jar" if="version">
<jar jarfile="${version}.jar" basedir="${build}/${classes}"/>
</target>
<target name="finish">
<copy todir="${classes}">
<fileset dir="${build}/${classes}"/>
</copy>
</target>
<target name="release" depends="jar">
<mkdir dir="${version}"/>
<mkdir dir="${version}/${src}"/>
<mkdir dir="${version}/${test}"/>
<mkdir dir="${version}/${doc}"/>
<mkdir dir="${version}/bin"/>
<mkdir dir="${version}/${classes}"/>
<mkdir dir="${version}/${lib}"/>
<copy todir="${version}/${src}">
<fileset dir="${src}"/>
</copy>
<copy todir="${version}/${test}">
<fileset dir="${test}"/>
</copy>
<copy todir="${version}/${doc}">
<fileset dir="${doc}"/>
</copy>
<copy todir="${version}/bin">
<fileset dir="bin"/>
</copy>
<copy todir="${version}/${classes}">
<fileset dir="${classes}"/>
</copy>
<copy todir="${version}/${lib}">
<fileset dir="${lib}"/>
</copy>
<copy todir="${version}">
<fileset file="${version}.jar"/>
</copy>
<copy todir="${version}">
<fileset file="LICENSE.txt"/>
</copy>
<copy todir="${version}">
<fileset file="build.properties"/>
</copy>
<copy todir="${version}">
<fileset file="build.xml"/>
</copy>
<copy todir="${version}">
<fileset file="pom.xml"/>
</copy>
</target>
<target name="all" depends="prepare,compile,test,jar,javadoc,finish"/>
</project>
Jump to Line
Something went wrong with that request. Please try again.