File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/org/codehaus/plexus/archiver/zip Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -409,20 +409,20 @@ public void notestJustThatOne()
409409 public void testCreateResourceCollection ()
410410 throws Exception
411411 {
412- if ( Os .isFamily ( Os .FAMILY_WINDOWS )) return ; // THe
413-
414412 final File srcDir = new File ("src" );
415413 final File zipFile = new File ( "target/output/src.zip" );
416414 ZipArchiver zipArchiver = (ZipArchiver ) lookup ( Archiver .ROLE , "zip" );
417415 zipArchiver .setDestFile ( zipFile );
418416 zipArchiver .addDirectory ( srcDir , null , FileUtils .getDefaultExcludes () );
417+ zipArchiver .setEncoding ( "UTF-8" );
419418 FileUtils .removePath ( zipFile .getPath () );
420419 zipArchiver .createArchive ();
421420
422421 final File zipFile2 = new File ( "target/output/src2.zip" );
423422 ZipArchiver zipArchiver2 = (ZipArchiver ) lookup ( Archiver .ROLE , "zip" );
424423 zipArchiver2 .setDestFile ( zipFile2 );
425424 zipArchiver2 .addArchivedFileSet ( zipFile , "prfx/" );
425+ zipArchiver2 .setEncoding ( "UTF-8" );
426426 FileUtils .removePath ( zipFile2 .getPath () );
427427 zipArchiver2 .createArchive ();
428428
You can’t perform that action at this time.
0 commit comments