File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
src/main/java/org/codehaus/plexus/archiver Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 55
55
<dependency >
56
56
<groupId >org.codehaus.plexus</groupId >
57
57
<artifactId >plexus-io</artifactId >
58
- <version >2.0.7 </version >
58
+ <version >2.0.8 </version >
59
59
</dependency >
60
60
<dependency >
61
61
<groupId >org.apache.commons</groupId >
Original file line number Diff line number Diff line change 17
17
* limitations under the License.
18
18
*/
19
19
20
+ import java .io .BufferedOutputStream ;
20
21
import java .io .ByteArrayInputStream ;
21
22
import java .io .ByteArrayOutputStream ;
22
23
import java .io .File ;
@@ -537,7 +538,8 @@ protected boolean createEmptyZip( File zipFile )
537
538
try
538
539
{
539
540
getLogger ().debug ( "Building MANIFEST-only jar: " + getDestFile ().getAbsolutePath () );
540
- zOut = new ZipOutputStream ( new FileOutputStream ( getDestFile () ) );
541
+ FileOutputStream out = new FileOutputStream ( getDestFile () );
542
+ zOut = new ZipOutputStream ( new BufferedOutputStream ( out , 65536 ) );
541
543
542
544
zOut .setEncoding ( getEncoding () );
543
545
if ( isCompress () )
Original file line number Diff line number Diff line change 17
17
* limitations under the License.
18
18
*/
19
19
20
+ import java .io .BufferedOutputStream ;
20
21
import java .io .ByteArrayOutputStream ;
21
22
import java .io .File ;
22
23
import java .io .FileOutputStream ;
@@ -305,7 +306,9 @@ private void createArchiveMain()
305
306
306
307
if ( !skipWriting )
307
308
{
308
- zOut = new ZipOutputStream ( zipFile );
309
+ FileOutputStream out = new FileOutputStream ( zipFile );
310
+ BufferedOutputStream buffered = new BufferedOutputStream ( out , 65536 );
311
+ zOut = new ZipOutputStream ( buffered );
309
312
310
313
zOut .setEncoding ( encoding );
311
314
if ( doCompress )
You can’t perform that action at this time.
0 commit comments