From: Olivier Lamy Date: Mon, 2 Apr 2012 21:02:43 +0000 (+0000) Subject: fix junit as now non absolute path is replace with appserver.base as parent X-Git-Tag: archiva-1.4-M3~856 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d16e1fdf91ccd500666157826fc27247c7beb5b1;p=archiva.git fix junit as now non absolute path is replace with appserver.base as parent git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308563 13f79535-47bb-0310-9956-ffa450edef68 --- 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 aff511520..f684abf15 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 @@ -88,7 +88,8 @@ public class ArchivaIndexingTaskExecutorTest repositoryConfig = new ManagedRepository(); repositoryConfig.setId( "test-repo" ); - repositoryConfig.setLocation( "target/test-classes/test-repo" ); + repositoryConfig.setLocation( + new File( System.getProperty( "basedir" ), "target/test-classes/test-repo" ).getAbsolutePath() ); repositoryConfig.setLayout( "default" ); repositoryConfig.setName( "Test Repository" ); repositoryConfig.setScanned( true );