don't write datas in src directories

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233391 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-01-19 14:23:53 +00:00
parent 2d3d39db6a
commit b02d7efb48
1 changed files with 4 additions and 6 deletions

View File

@ -31,9 +31,7 @@ import org.apache.archiva.rest.api.services.RepositoryGroupService;
import org.apache.archiva.rest.api.services.SearchService; import org.apache.archiva.rest.api.services.SearchService;
import org.codehaus.redback.integration.security.role.RedbackRoleConstants; import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
import org.codehaus.redback.rest.services.FakeCreateAdminService; import org.codehaus.redback.rest.services.FakeCreateAdminService;
import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@ -77,7 +75,7 @@ public class DownloadMergedIndexTest
managedRepository.setId( id ); managedRepository.setId( id );
managedRepository.setName( "name of " + id ); managedRepository.setName( "name of " + id );
managedRepository.setLocation( "src/test/repositories/test-repo" ); managedRepository.setLocation( "src/test/repositories/test-repo" );
managedRepository.setIndexDirectory( "target/tmpIndex/" + id ); managedRepository.setIndexDirectory( System.getProperty( "java.io.tmpdir" ) + "/target/tmpIndex/" + id );
ManagedRepositoriesService managedRepositoriesService = getManagedRepositoriesService(); ManagedRepositoriesService managedRepositoriesService = getManagedRepositoriesService();
@ -114,7 +112,7 @@ public class DownloadMergedIndexTest
managedRepository.setId( id ); managedRepository.setId( id );
managedRepository.setName( "name of " + id ); managedRepository.setName( "name of " + id );
managedRepository.setLocation( "src/test/repositories/test-repo" ); managedRepository.setLocation( "src/test/repositories/test-repo" );
managedRepository.setIndexDirectory( "target/tmpIndex/" + id ); managedRepository.setIndexDirectory( System.getProperty( "java.io.tmpdir" ) + "/target/tmpIndex/" + id );
if ( managedRepositoriesService.getManagedRepository( id ) != null ) if ( managedRepositoriesService.getManagedRepository( id ) != null )
{ {
@ -153,7 +151,7 @@ public class DownloadMergedIndexTest
SearchService searchService = getSearchService(); SearchService searchService = getSearchService();
SearchRequest request = new SearchRequest( ); SearchRequest request = new SearchRequest();
request.setRepositories( Arrays.asList( id ) ); request.setRepositories( Arrays.asList( id ) );
request.setGroupId( "org.apache.felix" ); request.setGroupId( "org.apache.felix" );