Author: jvanzyl Date: Tue Feb 27 16:00:09 2007 New Revision: 512504 URL: http://svn.apache.org/viewvc?view=rev&rev=512504 Log: o allow the ability to set the location of the local repository. a result of discoverying it0077 was not working correctly and everything was just going to default local repository and not to the one specified in the settings.xml used for the test. the verifier is not capable of parsing lines like:
<settings> <localRepository>file:../target/local-repo</localRepository> </settings> so i need to tell it explicity where to look to verify the results. Modified: maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java Modified: maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java?view=diff&rev=512504&r1=512503&r2=512504 ============================================================================== --- maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java (original) +++ maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java Tue Feb 27 16:00:09 2007 @@ -131,6 +131,11 @@ this( basedir, null, debug ); } + public void setLocalRepo( String localRepo ) + { + this.localRepo = localRepo; + } + public void resetStreams() { if ( !debug ) @@ -1417,6 +1422,7 @@ } File repoDir = new File( localRepo ); + if ( !repoDir.exists() ) { repoDir.mkdirs();