]> source.dussan.org Git - archiva.git/commitdiff
[MRM-738] increase logging on path errors so we can identify the source
authorBrett Porter <brett@apache.org>
Thu, 20 Mar 2008 04:27:54 +0000 (04:27 +0000)
committerBrett Porter <brett@apache.org>
Thu, 20 Mar 2008 04:27:54 +0000 (04:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@639156 13f79535-47bb-0310-9956-ffa450edef68

archiva-1.0.x/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/repository/DaysOldRepositoryPurge.java
archiva-1.0.x/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/repository/RetentionCountRepositoryPurge.java
archiva-1.0.x/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/PathParser.java

index ae9cefe50570fb5e490619978e239b0f5848fbcb..a844128c3d08fa0c74fa6fdccd0f9603db511c0e 100644 (file)
@@ -140,11 +140,11 @@ public class DaysOldRepositoryPurge
         }
         catch ( LayoutException le )
         {
-            throw new RepositoryPurgeException( le.getMessage() );
+            throw new RepositoryPurgeException( le.getMessage(), le );
         }
         catch ( ContentNotFoundException e )
         {
-            throw new RepositoryPurgeException( e.getMessage() );
+            throw new RepositoryPurgeException( e.getMessage(), e );
         }
     }
 
index 1bb597dc894dc91762e2afb56e2cf450f94810c5..c114cea9b2b473f98e10b25248fcb5c17a2dd1e2 100644 (file)
@@ -64,7 +64,7 @@ public class RetentionCountRepositoryPurge
             {
                 return;
             }
-
+                                                                     
             ArtifactReference artifact = repository.toArtifactReference( path );
 
             if ( VersionUtil.isSnapshot( artifact.getVersion() ) )
@@ -99,7 +99,7 @@ public class RetentionCountRepositoryPurge
         }
         catch ( LayoutException le )
         {
-            throw new RepositoryPurgeException( le.getMessage() );
+            throw new RepositoryPurgeException( le.getMessage(), le );
         }
         catch ( ContentNotFoundException e )
         {
index 88fff1e431c410952d8de4f45e8378c12e285e5d..66cfa1b620dc3fa155979acab39fd8e1961f6baa 100644 (file)
@@ -1,7 +1,23 @@
-/**\r
+package org.apache.maven.archiva.repository.content;\r
+\r
+/*\r
+ * Licensed to the Apache Software Foundation (ASF) under one\r
+ * or more contributor license agreements.  See the NOTICE file\r
+ * distributed with this work for additional information\r
+ * regarding copyright ownership.  The ASF licenses this file\r
+ * to you under the Apache License, Version 2.0 (the\r
+ * "License"); you may not use this file except in compliance\r
+ * with the License.  You may obtain a copy of the License at\r
  *\r
+ *   http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing,\r
+ * software distributed under the License is distributed on an\r
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r
+ * KIND, either express or implied.  See the License for the\r
+ * specific language governing permissions and limitations\r
+ * under the License.\r
  */\r
-package org.apache.maven.archiva.repository.content;\r
 \r
 import org.apache.maven.archiva.model.ArtifactReference;\r
 import org.apache.maven.archiva.repository.layout.LayoutException;\r