replace deprecated constructor Manifest(Reader) with Manifest(InputStream)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1755539 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/plugin/ear/EarMojo.java b/src/main/java/org/apache/maven/plugin/ear/EarMojo.java
index b2eeb08..c804d53 100644
--- a/src/main/java/org/apache/maven/plugin/ear/EarMojo.java
+++ b/src/main/java/org/apache/maven/plugin/ear/EarMojo.java
@@ -20,7 +20,7 @@
*/
import java.io.File;
-import java.io.FileReader;
+import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
@@ -790,7 +790,7 @@
}
// Read the manifest from disk
- Manifest mf = new Manifest( new FileReader( newCreatedManifestFile ) );
+ Manifest mf = new Manifest( new FileInputStream( newCreatedManifestFile ) );
Attribute classPath = mf.getMainSection().getAttribute( "Class-Path" );
List<String> classPathElements = new ArrayList<String>();