Skip to content

Commit

Permalink
replace deprecated method (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 17, 2020
1 parent 99df7a0 commit da99691
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -255,15 +255,16 @@ public void testRecreation()
MavenArchiveConfiguration config = new MavenArchiveConfiguration();
config.setForced( false );

FileUtils.deleteDirectory( "target/maven-archiver" );
File directory = new File( "target/maven-archiver" );
org.apache.commons.io.FileUtils.deleteDirectory( directory );
archiver.createArchive( session, project, config );
assertThat( jarFile ).exists();

long history = System.currentTimeMillis() - 60000L;
jarFile.setLastModified( history );
long time = jarFile.lastModified();

List<File> files = FileUtils.getFiles( new File( "target/maven-archiver" ), "**/**", null, true );
List<File> files = FileUtils.getFiles( directory, "**/**", null, true );
for ( File file : files )
{
assertThat( file.setLastModified( time ) ).isTrue();
Expand Down

0 comments on commit da99691

Please sign in to comment.