add clean-tmp target to clean up sigil artifacts from cache on "clean" builds


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@818758 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/build.xml b/sigil/build.xml
index 3e17dbc..fd8b599 100644
--- a/sigil/build.xml
+++ b/sigil/build.xml
@@ -36,7 +36,7 @@
 
   <target name="dist" depends="build, site" />
 
-  <target name="clean" depends="clean-list, clean-site" />
+  <target name="clean" depends="clean-list, clean-site, clean-tmp" />
 
   <target name="build" depends="init, build-list" />
 
@@ -78,4 +78,13 @@
   <target name="clean-site">
     <delete dir="${site.dir}" />
   </target>
+
+  <target name="clean-tmp">
+    <echo>${cache.dir}</echo>
+    <delete includeemptydirs="true">
+     <fileset dir="${cache.dir}" includes="all/org.apache-felix.sigil*"/>
+     <fileset dir="${cache.dir}" includes="all/org.apache/felix.sigil*"/>
+     <fileset dir="${cache.dir}" includes="all/resolved-org.apache-felix.sigil*"/>
+    </delete>
+  </target>
 </project>