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-ems/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-ems/commit/d5e5ceb6 Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-ems/tree/d5e5ceb6 Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-ems/diff/d5e5ceb6 Branch: refs/heads/1.6.x Commit: d5e5ceb60c490a74ea6814b5f20d943019116ade Parents: 228a7d5 Author: Jim Gomes <[email protected]> Authored: Wed Aug 6 01:04:21 2014 +0000 Committer: Jim Gomes <[email protected]> Committed: Wed Aug 6 01:04:21 2014 +0000 ---------------------------------------------------------------------- nant-common.xml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-nms-ems/blob/d5e5ceb6/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.">
