mirror of https://github.com/apache/archiva.git
avoid creating .archiva directory in src directory
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1177930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
77e42c692f
commit
cf8d566442
|
@ -23,6 +23,7 @@ import org.apache.archiva.rest.api.model.Artifact;
|
|||
import org.apache.archiva.rest.api.model.SearchRequest;
|
||||
import org.apache.archiva.rest.api.services.ManagedRepositoriesService;
|
||||
import org.apache.archiva.rest.api.services.SearchService;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -225,7 +226,13 @@ public class SearchServiceTest
|
|||
{
|
||||
getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( testRepoId, true );
|
||||
}
|
||||
File targetRepo = new File( "src/test/repo-with-osgi" );
|
||||
File targetRepo = new File( "target/test-origin-repo" );
|
||||
if ( targetRepo.exists() )
|
||||
{
|
||||
FileUtils.deleteDirectory( targetRepo );
|
||||
}
|
||||
assertFalse( targetRepo.exists() );
|
||||
FileUtils.copyDirectory( new File( "src/test/repo-with-osgi" ), targetRepo );
|
||||
|
||||
ManagedRepository managedRepository = new ManagedRepository();
|
||||
managedRepository.setId( testRepoId );
|
||||
|
|
Loading…
Reference in New Issue