</target>
<target name="makedist" depends="build, buildPropertiesFile, buildindices">
- <!-- make the package jar -->
+ <!-- make the package jar if not already existing -->
<mkdir dir="${packageDir}" />
-
+ <!-- clean dir if it already existed -->
+ <delete>
+ <fileset dir="${packageDir}">
+ <include name="*.jar"/>
+ </fileset>
+ </delete>
<jar destfile="${packageDir}/${outputJar}">
<manifest>
<attribute name="Main-Class" value="jalview.bin.Jalview" />