aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-scheduler
diff options
context:
space:
mode:
authorMartin Stockhammer <martin.stockhammer@ars.de>2017-11-20 08:20:42 +0100
committerMartin Stockhammer <martin.stockhammer@ars.de>2017-11-20 08:20:42 +0100
commit754b2d594076355d6e9d0b7698d309c87a0d672b (patch)
treefc263ab07783ed35617a0d6a085a0b458d1ef0fb /archiva-modules/archiva-scheduler
parent2fe8227634acfeaf7837e953e0f8fd2a44dae3a5 (diff)
downloadarchiva-754b2d594076355d6e9d0b7698d309c87a0d672b.tar.gz
archiva-754b2d594076355d6e9d0b7698d309c87a0d672b.zip
Adding local path to repository API
Diffstat (limited to 'archiva-modules/archiva-scheduler')
-rw-r--r--archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java
index 02c026174..d0e6532fe 100644
--- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java
+++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java
@@ -91,8 +91,9 @@ public class ArchivaIndexingTaskExecutorTest
{
super.setUp();
- repositoryConfig = new BasicManagedRepository( "test-repo", "Test Repository");
- Path repoLocation = Paths.get( System.getProperty( "basedir" ), "target/test-classes/test-repo" ).toAbsolutePath();
+ Path baseDir = Paths.get(System.getProperty("basedir"), "target/test-classes").toAbsolutePath();
+ repositoryConfig = new BasicManagedRepository( "test-repo", "Test Repository", baseDir);
+ Path repoLocation = baseDir.resolve("test-repo" );
repositoryConfig.setLocation(repoLocation.toUri() );
repositoryConfig.setLayout( "default" );
repositoryConfig.setScanned( true );