mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 08:30:35 +00:00
ANT build script.
This commit is contained in:
parent
e7ec9b0b48
commit
17b85bba97
75
build/build.xml
Normal file
75
build/build.xml
Normal file
@ -0,0 +1,75 @@
|
||||
<project name="AppleCommander" default="executableJar" basedir="..">
|
||||
<description>
|
||||
This ANT build script will build the pieces that need to be distributed.
|
||||
</description>
|
||||
|
||||
<property name="work" value="work"/>
|
||||
<property name="classes" value="${work}/classes"/>
|
||||
<property name="lib" value="${work}/lib"/>
|
||||
<property name="source" value="src"/>
|
||||
<property name="build" value="build"/>
|
||||
<property name="doc" value="documentation"/>
|
||||
<property name="web" value="web"/>
|
||||
<property name="swtjar" value="C:\Program Files\Eclipse 2.0\plugins\org.eclipse.swt.win32_2.0.2\ws\win32\swt.jar"/>
|
||||
<property name="acjar" value="${lib}/AppleCommander.jar"/>
|
||||
<property name="aczip" value="${work}/AppleCommander.zip"/>
|
||||
|
||||
<target name="init" description="Ensure work directory is present">
|
||||
<mkdir dir="${work}"/>
|
||||
<mkdir dir="${classes}"/>
|
||||
<mkdir dir="${lib}"/>
|
||||
</target>
|
||||
|
||||
<target name="clean" depends="init" description="Wipes out work contents">
|
||||
<delete dir="${classes}"/>
|
||||
<delete dir="${lib}"/>
|
||||
</target>
|
||||
|
||||
<target name="executableJar" depends="init" description="Build executable JAR">
|
||||
<javac srcdir="${source}" destdir="${classes}" target="1.3" classpath="${swtjar}">
|
||||
<include name="**/*.java"/>
|
||||
<exclude name="**/*Test.java"/>
|
||||
</javac>
|
||||
<jar jarfile="${acjar}" manifest="build/manifest.mf">
|
||||
<fileset dir="${classes}"/>
|
||||
<fileset dir="${source}">
|
||||
<include name="**/*.dump"/>
|
||||
<include name="**/*.properties"/>
|
||||
<include name="**/*.gif"/>
|
||||
</fileset>
|
||||
<fileset dir=".">
|
||||
<include name="LICENSE"/>
|
||||
<include name="TODO"/>
|
||||
<include name="VERSIONS"/>
|
||||
</fileset>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="sourceZip" depends="init" description="Build source ZIP archive">
|
||||
<zip zipfile="${aczip}">
|
||||
<zipfileset dir=".">
|
||||
<include name="ECLIPSE-CONFIG"/>
|
||||
<include name="HEADER"/>
|
||||
<include name="LICENSE"/>
|
||||
<include name="NATIVE-COMPILE"/>
|
||||
<include name="TODO"/>
|
||||
<include name="VERSIONS"/>
|
||||
</zipfileset>
|
||||
<zipfileset dir="${source}" prefix="${source}">
|
||||
<include name="**/*.java"/>
|
||||
<include name="**/*.dump"/>
|
||||
<include name="**/*.properties"/>
|
||||
<include name="**/*.gif"/>
|
||||
</zipfileset>
|
||||
<zipfileset dir="${build}" prefix="${build}"/>
|
||||
<zipfileset dir="${doc}" prefix="${doc}">
|
||||
<include name="**/*.txt"/>
|
||||
</zipfileset>
|
||||
<zipfileset dir="${web}" prefix="${web}">
|
||||
<include name="**/*.html"/>
|
||||
<include name="**/*.gif"/>
|
||||
<include name="**/*.png"/>
|
||||
</zipfileset>
|
||||
</zip>
|
||||
</target>
|
||||
</project>
|
Loading…
Reference in New Issue
Block a user