Revision: 3430
Author: jfuerth
Date: Mon Apr 5 14:01:08 2010
Log: The "clean" target should not depend on any other targets. When it
does, there's a chance you won't be able to clean (for example, I ran into
this after first trying to compile on JDK6, then switching to JDK5).
I'm guessing the dependency on "init" was put there because the delete task
fails raises an error when the target file doesn't exist.
I've removed the dependency on init, and changed all the delete tasks not
to fail on error.
http://code.google.com/p/power-architect/source/detail?r=3430
Modified:
/trunk/build.xml
=======================================
--- /trunk/build.xml Mon Mar 29 13:18:45 2010
+++ /trunk/build.xml Mon Apr 5 14:01:08 2010
@@ -857,15 +857,15 @@
</java>
</target>
- <target name="clean" depends="init">
- <delete dir="${build}"/>
- <delete dir="${build.tests}"/>
- <delete dir="${build.examples}"/>
- <delete><fileset dir="${dist.dir}" includes="lib,SQL Power
Architect.app,architect.jar"/></delete>
- <delete dir="webstart/lib"/>
- <delete dir="${staging.dir}"/>
- <delete dir="${generated}/ca"/>
- <delete><fileset dir="." includes="mycoverage.db*"/></delete>
+ <target name="clean">
+ <delete dir="${build}" failonerror="false"/>
+ <delete dir="${build.tests}" failonerror="false"/>
+ <delete dir="${build.examples}" failonerror="false"/>
+ <delete failonerror="false"><fileset dir="${dist.dir}" includes="lib,SQL
Power Architect.app,architect.jar"/></delete>
+ <delete dir="webstart/lib" failonerror="false"/>
+ <delete dir="${staging.dir}" failonerror="false"/>
+ <delete dir="${generated}/ca" failonerror="false"/>
+ <delete failonerror="false"><fileset dir="."
includes="mycoverage.db*"/></delete>
</target>
<target name="dist-clean" depends="clean">
--
To unsubscribe, reply using "remove me" as the subject.