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:
Olivier Lamy 2022-04-17 09:57:12 +10:00 committed by GitHub
parent 762b721833
commit 9077002f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,15 +96,12 @@ public void setUp()
// set the timestamps to a time well in the past
Calendar cal = Calendar.getInstance();
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() );
}
// TODO: test they are excluded instead
for ( String dir : (List<String>) FileUtils.getDirectoryNames( repoDir, "**/.svn", null, false ) )
{
FileUtils.deleteDirectory( new File( repoDir, dir ) );
}
FileUtils.deleteDirectory(new File(repoDir, ".indexer"));
assertTrue( "Default Test Repository should exist.", repoDir.exists() && repoDir.isDirectory() );