]> source.dussan.org Git - archiva.git/commitdiff
cleanup bad content from previous builds: my bad !
authorOlivier Lamy <olamy@apache.org>
Thu, 19 Jan 2012 13:33:34 +0000 (13:33 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 19 Jan 2012 13:33:34 +0000 (13:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233368 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ManagedRepositoriesServiceTest.java

index e43b521baa9eac4a79f5b7f09fe2e79240f28553..df0e3bbb07d3ebe3e8cc320232ed2094fc8461de 100644 (file)
@@ -298,6 +298,12 @@ public abstract class AbstractArchivaRestTest
         managedRepository.setId( testRepoId );
         managedRepository.setName( "test repo" );
 
+        File badContent = new File( repoPath, "target" );
+        if ( badContent.exists() )
+        {
+            FileUtils.deleteDirectory( badContent );
+        }
+
         managedRepository.setLocation( new File( repoPath ).getPath() );
         managedRepository.setIndexDirectory(
             System.getProperty( "java.io.tmpdir" ) + "/target/.index-" + Long.toString( new Date().getTime() ) );
index edffe0762bbcbefe4c7695d9916026320bab12d8..58e9159beb1e61cf909f082974b3e5f516fa5659 100644 (file)
@@ -114,8 +114,6 @@ public class ManagedRepositoriesServiceTest
 
         ManagedRepositoriesService service = getManagedRepositoriesService( authorizationHeader );
 
-        RepositoriesService repositoriesService = getRepositoriesService( authorizationHeader );
-
         ArchivaRepositoryStatistics archivaRepositoryStatistics = service.getManagedRepositoryStatistics( testRepoId );
 
         assertNotNull( archivaRepositoryStatistics );