]> source.dussan.org Git - archiva.git/commitdiff
o make sure directory exists to keep tests from failing
authorJason van Zyl <jvanzyl@apache.org>
Thu, 15 Jun 2006 03:54:50 +0000 (03:54 +0000)
committerJason van Zyl <jvanzyl@apache.org>
Thu, 15 Jun 2006 03:54:50 +0000 (03:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@414450 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DefaultArtifactReporter.java
maven-repository-reports-standard/src/main/java/org/apache/maven/repository/reporting/DuplicateArtifactFileReportProcessor.java

index 2769dc59a12215ad1ff2b0dfd5ab0cd6557f7239..6136fbf4c44e3384f857e27d7b8f2c1bc2f7a06f 100644 (file)
@@ -24,7 +24,7 @@ import java.util.Iterator;
 import java.util.List;
 
 /**
- * 
+ * @plexus.component role-hint="default"
  */
 public class DefaultArtifactReporter
     implements ArtifactReporter
index e865e8cec7f80e3e4e70c01049913b21cfb2dcca..6c86e3ddb4ac18cbbdeba7cef0ce402087adb980 100644 (file)
@@ -71,6 +71,11 @@ public class DuplicateArtifactFileReportProcessor
             //@todo remove hard-coded value; current value enables tests to pass!
             File indexPath = new File( "target/.index" );
 
+            if ( !indexPath.exists() )
+            {
+                indexPath.mkdirs();
+            }
+
             RepositoryIndex index;
             try
             {