Clean the individual configurations. Fixes [AMQNET-486]. (See https://issues.apache.org/jira/browse/AMQNET-486)
Project: http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/commit/ae1717c6 Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/tree/ae1717c6 Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/diff/ae1717c6 Branch: refs/heads/1.6.x Commit: ae1717c64dc634d8623a1e8c8f07278c6abddae3 Parents: 44c4615 Author: Jim Gomes <[email protected]> Authored: Wed Aug 6 01:05:06 2014 +0000 Committer: Jim Gomes <[email protected]> Committed: Wed Aug 6 01:05:06 2014 +0000 ---------------------------------------------------------------------- nant-common.xml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-nms-msmq/blob/ae1717c6/nant-common.xml ---------------------------------------------------------------------- diff --git a/nant-common.xml b/nant-common.xml index 9504104..3e5a8fc 100644 --- a/nant-common.xml +++ b/nant-common.xml @@ -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.">
