summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base
diff options
context:
space:
mode:
authorJames William Dumay <jdumay@apache.org>2008-08-11 04:52:39 +0000
committerJames William Dumay <jdumay@apache.org>2008-08-11 04:52:39 +0000
commitb1cfd31b85bbf43197277b16db3f27d7e41b6d7a (patch)
tree94c100d0462552fb03b559c2d0af765414cf06ee /archiva-modules/archiva-base
parentb40328492a2155e08dcac9549688f3f16a6bed45 (diff)
downloadarchiva-b1cfd31b85bbf43197277b16db3f27d7e41b6d7a.tar.gz
archiva-b1cfd31b85bbf43197277b16db3f27d7e41b6d7a.zip
Moving utility methods to end of class
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@684631 13f79535-47bb-0310-9956-ffa450edef68
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 )
{