Author: thomas.diesler(a)jboss.com
Date: 2008-03-20 10:46:36 -0400 (Thu, 20 Mar 2008)
New Revision: 6043
Modified:
stack/native/trunk/ant-import/build-thirdparty.xml
Log:
thirdparty-delete unless=checksum.ok
Modified: stack/native/trunk/ant-import/build-thirdparty.xml
===================================================================
--- stack/native/trunk/ant-import/build-thirdparty.xml 2008-03-20 14:46:30 UTC (rev 6042)
+++ stack/native/trunk/ant-import/build-thirdparty.xml 2008-03-20 14:46:36 UTC (rev 6043)
@@ -24,8 +24,10 @@
<target name="thirdparty-init" depends="prepare">
+ <checksum file="${core.dir}/version.properties" fileext=".md5"
verifyproperty="checksum.ok"/>
+ <property name="checksum.ok.${checksum.ok}" value="true"/>
+
<property name="thirdparty.dir"
value="${core.dir}/thirdparty"/>
- <checksum file="${core.dir}/version.properties" fileext=".md5"
verifyproperty="checksum.ok"/>
<condition property="force.thirdparty">
<or>
<not>
@@ -35,13 +37,17 @@
<isset property="force.thirdparty.get"/>
</or>
</condition>
- <echo message="checksum.ok = ${checksum.ok}"/>
+ <echo message="checksum.ok=${checksum.ok}"/>
</target>
+ <target name="thirdparty-delete" depends="thirdparty-init"
unless="checksum.ok.true">
+ <delete dir="${thirdparty.dir}"/>
+ </target>
+
<!--
thirdpartry-get
-->
- <target name="thirdparty-get" depends="thirdparty-init"
if="force.thirdparty"
+ <target name="thirdparty-get" depends="thirdparty-delete"
if="force.thirdparty"
description="Gets the thirdparty libraries">
<!--