You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by an...@apache.org on 2013/10/23 14:53:34 UTC

svn commit: r1535008 - /maven/plugins/trunk/maven-source-plugin/src/it/jar-attached/verify.bsh

Author: andham
Date: Wed Oct 23 12:53:34 2013
New Revision: 1535008

URL: http://svn.apache.org/r1535008
Log:
Fixed TODO; replaced calculation of local repo path with injected variable

Modified:
    maven/plugins/trunk/maven-source-plugin/src/it/jar-attached/verify.bsh

Modified: maven/plugins/trunk/maven-source-plugin/src/it/jar-attached/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-source-plugin/src/it/jar-attached/verify.bsh?rev=1535008&r1=1535007&r2=1535008&view=diff
==============================================================================
--- maven/plugins/trunk/maven-source-plugin/src/it/jar-attached/verify.bsh (original)
+++ maven/plugins/trunk/maven-source-plugin/src/it/jar-attached/verify.bsh Wed Oct 23 12:53:34 2013
@@ -31,16 +31,7 @@ try
         return false;
     }
 
-    // TODO: Use variable localRepositoryPath once MINVOKER-49 is released
-    File localRepoDir = new File( basedir.getParentFile().getParentFile(), "local-repo" );
-    System.out.println( "Checking for existence of " + localRepoDir );
-    if ( !localRepoDir.isDirectory() )
-    {
-        System.out.println( "FAILURE!" );
-        return false;
-    }
-
-    File attachedFile = new File( localRepoDir, "org/apache/maven/its/ejb/jar-attached/1.0-SNAPSHOT/jar-attached-1.0-SNAPSHOT-sources.jar" );
+    File attachedFile = new File( localRepositoryPath, "org/apache/maven/its/ejb/jar-attached/1.0-SNAPSHOT/jar-attached-1.0-SNAPSHOT-sources.jar" );
     System.out.println( "Checking for existence of " + attachedFile );
     if ( !attachedFile.isFile() )
     {