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-stomp/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/commit/3c7acaca Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/tree/3c7acaca Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/diff/3c7acaca Branch: refs/heads/1.6.x Commit: 3c7acacab8af0fbb26a16e74d5d6be7c37b1d872 Parents: f895eff Author: Jim Gomes <jgo...@apache.org> Authored: Wed Aug 6 01:05:35 2014 +0000 Committer: Jim Gomes <jgo...@apache.org> Committed: Wed Aug 6 01:05:35 2014 +0000 ---------------------------------------------------------------------- nant-common.xml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/blob/3c7acaca/nant-common.xml ---------------------------------------------------------------------- diff --git a/nant-common.xml b/nant-common.xml index be40af6..55694f9 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.">