From f886688c25fb6939e1b60fc946b2ee1e93659eb2 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sun, 10 Sep 2017 17:47:17 +0200 Subject: Migrating scheduler to java.nio --- .../org/apache/archiva/rest/services/DefaultRepositoriesService.java | 2 +- .../main/java/org/apache/archiva/web/api/DefaultFileUploadService.java | 2 +- .../src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'archiva-modules/archiva-web') 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 ); -- cgit v1.2.3