Created
April 15, 2011 09:30
-
-
Save ussy/921458 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="library" default="package"> | |
<property name="jarname" location="./bin/${ant.project.name}.jar" /> | |
<property name="src" location="./src" /> | |
<property name="bin" location="./bin" /> | |
<target name="clean"> | |
<delete dir="${bin}" /> | |
</target> | |
<target name="compile"> | |
<delete dir="${bin}/*" /> | |
<javac srcdir="${src}" destdir="${bin}" /> | |
</target> | |
<target name="package" depends="compile"> | |
<delete file="${jarname}" /> | |
<jar jarfile="${jarname}"> | |
<fileset dir="${bin}" /> | |
</jar> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment