[MNG-4352] improve the error message if an unexpected directory was used (previously this errored out at the end of the process with an incomplete build in a different directory)
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-2/branches/maven-2.2.x@814496 13f79535-47bb-0310-9956-ffa450edef68 Project: http://git-wip-us.apache.org/repos/asf/maven/repo Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/7645602a Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/7645602a Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/7645602a Branch: refs/heads/maven-2.2.x Commit: 7645602ae0f997e90987870002ad89877b41bdb8 Parents: 66f8e09 Author: Brett Leslie Porter <br...@apache.org> Authored: Mon Sep 14 06:45:47 2009 +0000 Committer: Brett Leslie Porter <br...@apache.org> Committed: Mon Sep 14 06:45:47 2009 +0000 ---------------------------------------------------------------------- build.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven/blob/7645602a/build.xml ---------------------------------------------------------------------- diff --git a/build.xml b/build.xml index b759900..aabe44b 100644 --- a/build.xml +++ b/build.xml @@ -89,6 +89,13 @@ TODO: <property name="surefire.useFile" value="true"/> <echo>maven.home = ${maven.home}</echo> <echo>maven.assembly = ${maven.assembly}</echo> + <fail message="Expected M2_HOME to end in ${maven.home.basename.expected} but was ${maven.home}"> + <condition> + <not> + <equals arg1="${maven.home}" arg2="${maven.home.dirname}/${maven.home.basename.expected}" /> + </not> + </condition> + </fail> </target> <target name="clean-bootstrap" description="cleans up generated bootstrap classes">