You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ar...@apache.org on 2006/04/05 10:49:42 UTC
svn commit: r391563 -
/maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java
Author: aramirez
Date: Wed Apr 5 01:49:41 2006
New Revision: 391563
URL: http://svn.apache.org/viewcvs?rev=391563&view=rev
Log:
PR:MINSTALL-16
-applied changes done with the testing harness with the value of local-repo
Modified:
maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java
Modified: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java?rev=391563&r1=391562&r2=391563&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java Wed Apr 5 01:49:41 2006
@@ -37,6 +37,8 @@
InstallArtifactStub artifact;
+ private final String LOCAL_REPO = "target/local-repo/";
+
public void setUp()
throws Exception
{
@@ -46,9 +48,9 @@
String groupId = dotToSlashReplacer( artifact.getGroupId() );
- System.out.println( ">>>Cleaning the test artifacts in local repo..." );
+ System.out.println( ">>>Cleaning the test artifacts in " + LOCAL_REPO + "..." );
- FileUtils.deleteDirectory( System.getProperty( "localRepository" ) + "/" +
+ FileUtils.deleteDirectory( LOCAL_REPO +
groupId + "/" + artifact.getArtifactId() );
}
@@ -87,7 +89,7 @@
String packaging = getVariableValueFromObject( mojo, "packaging" ).toString();
- File installedArtifact = new File( System.getProperty( "localRepository" ) + "/" +
+ File installedArtifact = new File( LOCAL_REPO +
groupId + "/" + artifact.getArtifactId() + "/" +
artifact.getVersion() + "/" + artifact.getArtifactId() + "-" +
artifact.getVersion() + "." + packaging );
@@ -120,7 +122,7 @@
groupId = dotToSlashReplacer( attachedArtifact.getGroupId() );
- File installedArtifact = new File( System.getProperty( "localRepository" ) + "/" +
+ File installedArtifact = new File( LOCAL_REPO +
groupId + "/" + attachedArtifact.getArtifactId() + "/" +
attachedArtifact.getVersion() + "/" + attachedArtifact.getArtifactId() + "-" +
attachedArtifact.getVersion() + "." + packaging );
@@ -201,7 +203,7 @@
String groupId = dotToSlashReplacer( artifact.getGroupId() );
- File installedArtifact = new File( System.getProperty( "localRepository" ) + "/" +
+ File installedArtifact = new File( LOCAL_REPO +
groupId + "/" + artifact.getArtifactId() + "/" +
artifact.getVersion() + "/" + artifact.getArtifactId() + "-" +
artifact.getVersion() + "." + "jar" );