mirror of
https://github.com/apache/archiva.git
synced 2025-02-23 02:56:38 +00:00
upgrade to redback 2.6.2 (#77)
* upgrade to redback 2.6.2 Signed-off-by: Olivier Lamy <olamy@apache.org> * cleanup index if existing Signed-off-by: Olivier Lamy <olamy@apache.org>
This commit is contained in:
parent
762b721833
commit
9077002f12
@ -96,15 +96,12 @@ public void setUp()
|
|||||||
// set the timestamps to a time well in the past
|
// set the timestamps to a time well in the past
|
||||||
Calendar cal = Calendar.getInstance();
|
Calendar cal = Calendar.getInstance();
|
||||||
cal.add( Calendar.YEAR, -1 );
|
cal.add( Calendar.YEAR, -1 );
|
||||||
for ( File f : (List<File>) FileUtils.getFiles( repoDir, "**", null ) )
|
for ( File f : FileUtils.getFiles( repoDir, "**", null ) )
|
||||||
{
|
{
|
||||||
f.setLastModified( cal.getTimeInMillis() );
|
f.setLastModified( cal.getTimeInMillis() );
|
||||||
}
|
}
|
||||||
// TODO: test they are excluded instead
|
|
||||||
for ( String dir : (List<String>) FileUtils.getDirectoryNames( repoDir, "**/.svn", null, false ) )
|
FileUtils.deleteDirectory(new File(repoDir, ".indexer"));
|
||||||
{
|
|
||||||
FileUtils.deleteDirectory( new File( repoDir, dir ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
assertTrue( "Default Test Repository should exist.", repoDir.exists() && repoDir.isDirectory() );
|
assertTrue( "Default Test Repository should exist.", repoDir.exists() && repoDir.isDirectory() );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user