From: James William Dumay Date: Mon, 11 Aug 2008 04:52:39 +0000 (+0000) Subject: Moving utility methods to end of class X-Git-Tag: archiva-1.2-M1~86 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b1cfd31b85bbf43197277b16db3f27d7e41b6d7a;p=archiva.git Moving utility methods to end of class git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@684631 13f79535-47bb-0310-9956-ffa450edef68 --- 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 ) {