diff options
author | Martin Stockhammer <martin_s@apache.org> | 2017-09-10 17:47:17 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2017-09-10 17:47:17 +0200 |
commit | f886688c25fb6939e1b60fc946b2ee1e93659eb2 (patch) | |
tree | 215fd107f00d43f7836b42d1ca02dae1b9cad893 /archiva-modules/archiva-web | |
parent | 7503cb83e346eb5f9eed0d45d534318ec535232e (diff) | |
download | archiva-f886688c25fb6939e1b60fc946b2ee1e93659eb2.tar.gz archiva-f886688c25fb6939e1b60fc946b2ee1e93659eb2.zip |
Migrating scheduler to java.nio
Diffstat (limited to 'archiva-modules/archiva-web')
3 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java index 0c57b3c5c..a336849d0 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java @@ -503,7 +503,7 @@ public class DefaultRepositoriesService { RepositoryTask task = new RepositoryTask(); task.setRepositoryId( repositoryId ); - task.setResourceFile( localFile ); + task.setResourceFile( localFile.toPath() ); task.setUpdateRelatedArtifacts( true ); //task.setScanAll( true ); diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java index 5d27b97e0..e02d52a6d 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java @@ -559,7 +559,7 @@ public class DefaultFileUploadService { RepositoryTask task = new RepositoryTask(); task.setRepositoryId( repositoryId ); - task.setResourceFile( localFile ); + task.setResourceFile( localFile.toPath() ); task.setUpdateRelatedArtifacts( true ); task.setScanAll( false ); diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java index 20bb2cb39..481b60414 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java @@ -713,7 +713,7 @@ public class ArchivaDavResource { RepositoryTask task = new RepositoryTask(); task.setRepositoryId( repository.getId() ); - task.setResourceFile( localFile ); + task.setResourceFile( localFile.toPath() ); task.setUpdateRelatedArtifacts( false ); task.setScanAll( false ); |