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()
409
409
public void testCreateResourceCollection ()
410
410
throws Exception
411
411
{
412
- if ( Os .isFamily ( Os .FAMILY_WINDOWS )) return ; // THe
413
-
414
412
final File srcDir = new File ("src" );
415
413
final File zipFile = new File ( "target/output/src.zip" );
416
414
ZipArchiver zipArchiver = (ZipArchiver ) lookup ( Archiver .ROLE , "zip" );
417
415
zipArchiver .setDestFile ( zipFile );
418
416
zipArchiver .addDirectory ( srcDir , null , FileUtils .getDefaultExcludes () );
417
+ zipArchiver .setEncoding ( "UTF-8" );
419
418
FileUtils .removePath ( zipFile .getPath () );
420
419
zipArchiver .createArchive ();
421
420
422
421
final File zipFile2 = new File ( "target/output/src2.zip" );
423
422
ZipArchiver zipArchiver2 = (ZipArchiver ) lookup ( Archiver .ROLE , "zip" );
424
423
zipArchiver2 .setDestFile ( zipFile2 );
425
424
zipArchiver2 .addArchivedFileSet ( zipFile , "prfx/" );
425
+ zipArchiver2 .setEncoding ( "UTF-8" );
426
426
FileUtils .removePath ( zipFile2 .getPath () );
427
427
zipArchiver2 .createArchive ();
428
428
You can’t perform that action at this time.
0 commit comments