Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (72 sloc) 2.69 KB
<?xml version="1.0" ?>
<project name="ImmediateCrypt" default="jar">
<property name="dist.name" value="ImmediateCrypt_v1.0.1.zip"/>
<property name="jar.name" value="ImmediateCrypt.jar"/>
<property name="jarlib.name" value="ImmediateCryptLib_v1.0.1.jar"/>
<property name="mainclass" value="com.giacomodrago.immediatecrypt.ImmediateCrypt"/>
<path id="classpath">
<pathelement path="${java.class.path}/"/>
<pathelement path="${additional.path}"/>
<fileset dir="lib/">
<include name="*.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="build" />
</target>
<target name="compile" depends="init">
<javac target="1.6" source="1.6" destdir="build" debug="true" srcdir="src" encoding="UTF-8">
<compilerarg value="-Xlint:all"/>
<compilerarg value="-Xlint:-options"/>
<classpath refid="classpath"/>
</javac>
<copy todir="build">
<fileset dir="src" includes="**/*.properties"/>
<fileset dir="src" includes="**/*.png"/>
</copy>
</target>
<target name="jar" depends="compile">
<mkdir dir="dist" />
<mkdir dir="dist/lib" />
<copy todir="dist/lib">
<fileset dir="lib" includes="*.jar"/>
</copy>
<manifestclasspath property="jar.classpath" jarfile="dist/${jar.name}">
<classpath>
<fileset dir="dist/lib">
<include name="*.jar" />
</fileset>
</classpath>
</manifestclasspath>
<jar destfile="dist/${jar.name}" basedir="build">
<manifest>
<attribute name="Main-Class" value="${mainclass}"/>
<attribute name="Class-Path" value="${jar.classpath}"/>
</manifest>
</jar>
</target>
<target name="dist" depends="jar">
<copy todir="dist">
<fileset dir="." includes="*.TXT" excludes="BUILD.TXT" />
</copy>
</target>
<target name="packdist" depends="dist">
<zip destfile="${dist.name}" basedir="dist" />
</target>
<target name="packlib" depends="compile">
<mkdir dir="distlib" />
<jar destfile="distlib/${jarlib.name}"
basedir="build"
includes="com/giacomodrago/immediatecrypt/aes/**, com/giacomodrago/immediatecrypt/messagecipher/**"
/>
</target>
<target name="run" depends="jar">
<java jar="dist/${jar.name}" fork="true"/>
</target>
<target name="clean">
<delete file="${dist.name}" />
<delete dir="distlib" />
<delete dir="build" />
<delete dir="dist" />
</target>
</project>