aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2017-09-10 17:47:17 +0200
committerMartin Stockhammer <martin_s@apache.org>2017-09-10 17:47:17 +0200
commitf886688c25fb6939e1b60fc946b2ee1e93659eb2 (patch)
tree215fd107f00d43f7836b42d1ca02dae1b9cad893 /archiva-modules/archiva-web
parent7503cb83e346eb5f9eed0d45d534318ec535232e (diff)
downloadarchiva-f886688c25fb6939e1b60fc946b2ee1e93659eb2.tar.gz
archiva-f886688c25fb6939e1b60fc946b2ee1e93659eb2.zip
Migrating scheduler to java.nio
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java2
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java2
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResource.java2
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 );