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-base/archiva-consumers | |
parent | 7503cb83e346eb5f9eed0d45d534318ec535232e (diff) | |
download | archiva-f886688c25fb6939e1b60fc946b2ee1e93659eb2.tar.gz archiva-f886688c25fb6939e1b60fc946b2ee1e93659eb2.zip |
Migrating scheduler to java.nio
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers')
2 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java index 56fdf7994..434f864e6 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java @@ -148,7 +148,7 @@ public class NexusIndexerConsumer Path artifactFile = managedRepository.resolve(path); ArtifactIndexingTask task = - new ArtifactIndexingTask( repository, artifactFile.toFile(), ArtifactIndexingTask.Action.ADD, getIndexingContext() ); + new ArtifactIndexingTask( repository, artifactFile, ArtifactIndexingTask.Action.ADD, getIndexingContext() ); try { log.debug( "Queueing indexing task '{}' to add or update the artifact in the index.", task ); @@ -174,7 +174,7 @@ public class NexusIndexerConsumer // specify in indexing task that this is not a repo scan request! ArtifactIndexingTask task = - new ArtifactIndexingTask( repository, artifactFile.toFile(), ArtifactIndexingTask.Action.ADD, + new ArtifactIndexingTask( repository, artifactFile, ArtifactIndexingTask.Action.ADD, getIndexingContext(), false ); // only update index we don't need to scan the full repo here task.setOnlyUpdate( true ); diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumerTest.java b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumerTest.java index 7d6ea28ea..2b76279a0 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumerTest.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumerTest.java @@ -68,7 +68,7 @@ public class NexusIndexerConsumerTest switch ( task.getAction() ) { case ADD: - indexed.add( task.getResourceFile().toPath() ); + indexed.add( task.getResourceFile() ); break; case DELETE: indexed.remove( task.getResourceFile() ); |