Author: brett
Date: Mon Sep 14 06:45:47 2009
New Revision: 814496
URL: http://svn.apache.org/viewvc?rev=814496&view=rev
Log:
[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)
Modified:
maven/maven-2/branches/maven-2.2.x/build.xml
Modified: maven/maven-2/branches/maven-2.2.x/build.xml
URL:
http://svn.apache.org/viewvc/maven/maven-2/branches/maven-2.2.x/build.xml?rev=814496&r1=814495&r2=814496&view=diff
==============================================================================
--- maven/maven-2/branches/maven-2.2.x/build.xml (original)
+++ maven/maven-2/branches/maven-2.2.x/build.xml Mon Sep 14 06:45:47 2009
@@ -89,6 +89,13 @@
<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">