summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r--archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java42
1 files changed, 21 insertions, 21 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java
index e7f7a69e7..5e9978fa6 100644
--- a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java
+++ b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java
@@ -367,27 +367,6 @@ public class DefaultRepositoryProxyConnectors
return null;
}
- private long getLastModified( File file )
- {
- if ( !file.exists() || !file.isFile() )
- {
- return 0;
- }
-
- return file.lastModified();
- }
-
- private boolean hasBeenUpdated( File file, long originalLastModified )
- {
- if ( !file.exists() || !file.isFile() )
- {
- return false;
- }
-
- long currentLastModified = getLastModified( file );
- return ( currentLastModified > originalLastModified );
- }
-
public File fetchFromProxies( ManagedRepositoryContent repository, ProjectReference metadata )
{
File workingDir = createWorkingDirectory(repository);
@@ -487,6 +466,27 @@ public class DefaultRepositoryProxyConnectors
return null;
}
+ private long getLastModified( File file )
+ {
+ if ( !file.exists() || !file.isFile() )
+ {
+ return 0;
+ }
+
+ return file.lastModified();
+ }
+
+ private boolean hasBeenUpdated( File file, long originalLastModified )
+ {
+ if ( !file.exists() || !file.isFile() )
+ {
+ return false;
+ }
+
+ long currentLastModified = getLastModified( file );
+ return ( currentLastModified > originalLastModified );
+ }
+
private File toLocalRepoFile( ManagedRepositoryContent repository, RemoteRepositoryContent targetRepository,
String targetPath )
{