16
16
*/
17
17
package org .codehaus .plexus .archiver .jar ;
18
18
19
+ import static org .codehaus .plexus .archiver .util .Streams .bufferedOutputStream ;
20
+ import static org .codehaus .plexus .archiver .util .Streams .fileInputStream ;
21
+ import static org .codehaus .plexus .archiver .util .Streams .fileOutputStream ;
22
+
19
23
import java .io .ByteArrayInputStream ;
20
24
import java .io .ByteArrayOutputStream ;
21
25
import java .io .File ;
22
- import java .io .FileInputStream ;
23
26
import java .io .IOException ;
24
27
import java .io .InputStream ;
25
28
import java .io .OutputStreamWriter ;
35
38
import java .util .StringTokenizer ;
36
39
import java .util .TreeMap ;
37
40
import java .util .Vector ;
41
+
38
42
import org .apache .commons .compress .archivers .zip .ZipArchiveEntry ;
39
43
import org .apache .commons .compress .archivers .zip .ZipArchiveOutputStream ;
40
44
import org .apache .commons .compress .archivers .zip .ZipFile ;
44
48
import org .codehaus .plexus .archiver .zip .ZipArchiver ;
45
49
import org .codehaus .plexus .logging .Logger ;
46
50
import org .codehaus .plexus .logging .console .ConsoleLogger ;
47
- import static org .codehaus .plexus .archiver .util .Streams .bufferedOutputStream ;
48
- import static org .codehaus .plexus .archiver .util .Streams .fileOutputStream ;
49
51
50
52
/**
51
53
* Base class for tasks that build archives in JAR file format.
@@ -195,7 +197,7 @@ public void setManifestEncoding( String manifestEncoding )
195
197
*
196
198
* @param newManifest The new manifest
197
199
*
198
- * @throws ManifestException .
200
+ * @throws ManifestException
199
201
*/
200
202
public void addConfiguredManifest ( Manifest newManifest )
201
203
throws ManifestException
@@ -218,7 +220,6 @@ public void addConfiguredManifest( Manifest newManifest )
218
220
* @param manifestFile the manifest file to use.
219
221
*
220
222
* @throws org.codehaus.plexus.archiver.ArchiverException
221
- * .
222
223
*/
223
224
@ SuppressWarnings (
224
225
{
@@ -238,7 +239,7 @@ public void setManifest( File manifestFile )
238
239
private Manifest getManifest ( File manifestFile )
239
240
throws ArchiverException
240
241
{
241
- try ( InputStream in = new FileInputStream ( manifestFile ) )
242
+ try ( InputStream in = fileInputStream ( manifestFile ) )
242
243
{
243
244
return getManifest ( in );
244
245
}
@@ -403,7 +404,6 @@ protected void finalizeZipOutputStream( ConcurrentJarCreator zOut )
403
404
* @throws IOException thrown if there is an error while creating the
404
405
* index and adding it to the zip stream.
405
406
* @throws org.codehaus.plexus.archiver.ArchiverException
406
- * .
407
407
*/
408
408
private void createIndexList ( ConcurrentJarCreator zOut )
409
409
throws IOException , ArchiverException
@@ -772,7 +772,7 @@ public int compare( String o1, String o2 )
772
772
* @param files .
773
773
* @param dirs .
774
774
*
775
- * @throws java.io.IOException .
775
+ * @throws java.io.IOException
776
776
*/
777
777
protected static void grabFilesAndDirs ( String file , List <String > dirs , List <String > files )
778
778
throws IOException
0 commit comments