You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2014/08/06 03:04:22 UTC

svn commit: r1616064 - /activemq/activemq-dotnet/Apache.NMS.EMS/branches/1.6.x/nant-common.xml

Author: jgomes
Date: Wed Aug  6 01:04:21 2014
New Revision: 1616064

URL: http://svn.apache.org/r1616064
Log:
Clean the individual configurations.
Fixes [AMQNET-486]. (See https://issues.apache.org/jira/browse/AMQNET-486)

Modified:
    activemq/activemq-dotnet/Apache.NMS.EMS/branches/1.6.x/nant-common.xml

Modified: activemq/activemq-dotnet/Apache.NMS.EMS/branches/1.6.x/nant-common.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/branches/1.6.x/nant-common.xml?rev=1616064&r1=1616063&r2=1616064&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/branches/1.6.x/nant-common.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/branches/1.6.x/nant-common.xml Wed Aug  6 01:04:21 2014
@@ -506,9 +506,18 @@
         <if test="${target::exists('clean-init')}">
             <call target="clean-init" />
         </if>
-        <delete dir="build" if="${directory::exists('build')}" />
-        <delete dir="obj" if="${directory::exists('obj')}" />
-        <delete dir="package" if="${directory::exists('package')}" />
+        <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
+            <foreach item="String" in="${build.config.strings}" delim="," property="current.build.config">
+                <call target="clean-proj" />
+            </foreach>
+        </foreach>
+    </target>
+
+    <target name="clean-proj" depends="init" description="Deletes specific project build">
+        <property name="clean.dir" value="build/${current.build.framework}/${current.build.config}" />
+        <delete dir="${clean.dir}" if="${directory::exists(clean.dir)}" />
+        <property name="clean.dir" value="package/${current.build.config}" />
+        <delete dir="${clean.dir}" if="${directory::exists(clean.dir)}" />
     </target>
 
     <target name="package" description="Bundle the source and binary distributions.">