You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by og...@apache.org on 2009/02/06 17:17:48 UTC
svn commit: r741613 -
/maven/mercury/trunk/mercury-repo/mercury-repo-local-m2/src/main/java/org/apache/maven/mercury/repository/local/m2/LocalRepositoryReaderM2.java
Author: ogusakov
Date: Fri Feb 6 16:17:48 2009
New Revision: 741613
URL: http://svn.apache.org/viewvc?rev=741613&view=rev
Log:
[MERCURY-89] adjusted for classifier in the file name
Modified:
maven/mercury/trunk/mercury-repo/mercury-repo-local-m2/src/main/java/org/apache/maven/mercury/repository/local/m2/LocalRepositoryReaderM2.java
Modified: maven/mercury/trunk/mercury-repo/mercury-repo-local-m2/src/main/java/org/apache/maven/mercury/repository/local/m2/LocalRepositoryReaderM2.java
URL: http://svn.apache.org/viewvc/maven/mercury/trunk/mercury-repo/mercury-repo-local-m2/src/main/java/org/apache/maven/mercury/repository/local/m2/LocalRepositoryReaderM2.java?rev=741613&r1=741612&r2=741613&view=diff
==============================================================================
--- maven/mercury/trunk/mercury-repo/mercury-repo-local-m2/src/main/java/org/apache/maven/mercury/repository/local/m2/LocalRepositoryReaderM2.java (original)
+++ maven/mercury/trunk/mercury-repo/mercury-repo-local-m2/src/main/java/org/apache/maven/mercury/repository/local/m2/LocalRepositoryReaderM2.java Fri Feb 6 16:17:48 2009
@@ -425,24 +425,24 @@
final int pos = bmd.getArtifactId().length() + 1;
- File[] files = gavDir.listFiles( new FilenameFilter()
- {
- public boolean accept( File dir, String name )
- {
- if( name.matches( regEx ) )
- {
- String ver = name.substring( pos, name.lastIndexOf( '.' ) );
-
- ts.add( ver );
-
- return true;
- }
-
- return false;
- }
-
- }
- );
+ gavDir.listFiles( new FilenameFilter()
+ {
+ public boolean accept( File dir, String name )
+ {
+ if( name.matches( regEx ) )
+ {
+ String ver = name.substring( pos, name.lastIndexOf( '.' ) );
+
+ ts.add( ver );
+
+ return true;
+ }
+
+ return false;
+ }
+
+ }
+ );
if( ts.isEmpty() )
{