mirror of
https://github.com/apache/archiva.git
synced 2025-02-07 10:39:02 +00:00
[MRM-738] increase logging on path errors so we can identify the source
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@639156 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1ac7d9e459
commit
cec56a638e
@ -140,11 +140,11 @@ else if ( newArtifactFile.lastModified() < olderThanThisDate.getTimeInMillis() )
|
||||
}
|
||||
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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ public void process( String path )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
ArtifactReference artifact = repository.toArtifactReference( path );
|
||||
|
||||
if ( VersionUtil.isSnapshot( artifact.getVersion() ) )
|
||||
@ -99,7 +99,7 @@ public void process( String path )
|
||||
}
|
||||
catch ( LayoutException le )
|
||||
{
|
||||
throw new RepositoryPurgeException( le.getMessage() );
|
||||
throw new RepositoryPurgeException( le.getMessage(), le );
|
||||
}
|
||||
catch ( ContentNotFoundException e )
|
||||
{
|
||||
|
@ -1,8 +1,24 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.apache.maven.archiva.repository.content;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.maven.archiva.model.ArtifactReference;
|
||||
import org.apache.maven.archiva.repository.layout.LayoutException;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user