Created
February 9, 2009 21:41
-
-
Save andrewgilmartin/61027 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="pdf-thumbnailer" default="jar"> | |
<property name="compile.debug" value="true" /> | |
<property name="compile.deprecation" value="false" /> | |
<property name="compile.optimize" value="false" /> | |
<path id="compile.classpath"> | |
<fileset dir="${basedir}/lib"> | |
<include name="*.jar" /> | |
</fileset> | |
</path> | |
<path id="run.classpath"> | |
<pathelement location="${basedir}/classes" /> | |
<path refid="compile.classpath" /> | |
</path> | |
<target name="clean"> | |
<delete dir="${basedir}/build" /> | |
</target> | |
<target name="build"> | |
<mkdir dir="${basedir}/build/classes" /> | |
<javac | |
destdir="${basedir}/build/classes" | |
debug="${compile.debug}" | |
deprecation="${compile.deprecation}" | |
optimize="${compile.optimize}" | |
> | |
<src path="${basedir}/src" /> | |
<classpath refid="compile.classpath" /> | |
</javac> | |
</target> | |
<target name="jar" depends="build"> | |
<mkdir dir="${basedir}/build/lib" /> | |
<jar jarfile="${basedir}/build/lib/pdf_thumbnailer.jar" > | |
<fileset dir="${basedir}/build/classes" /> | |
</jar> | |
</target> | |
<target name="tools" depends="jar"> | |
<mkdir dir="${basedir}/build/bin" /> | |
<pathconvert refid="compile.classpath" property="cpunix" targetos="unix" /> | |
<echo file="${basedir}/build/bin/j">java -classpath ${cpunix}:${basedir}/build/lib/pdf | |
_thumbnailer.jar $*</echo> | |
<chmod dir="${basedir}/build/bin" perm="ugo+rx" includes="*" /> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment