1<?xml version="1.0" encoding="UTF-8"?> 2<project name="basicJar2" default="compile"> 3 <target name="compile"> 4 <mkdir dir="${basedir}/bin" /> 5 <mkdir dir="${basedir}/bin/classes" /> 6 <javac encoding="ascii" target="1.5" source="1.5" debug="true" extdirs="" 7 srcdir="src" destdir="${basedir}/bin/classes" /> 8 <jar destfile="${basedir}/bin/${ant.project.name}.jar"> 9 <fileset dir="${basedir}/bin/classes" /> 10 <fileset dir="src" excludes="**/*.java"/> 11 </jar> 12 </target> 13 <target name="clean"> 14 <delete dir="bin" /> 15 </target> 16</project> 17