You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2016/08/08 20:34:46 UTC
svn commit: r1755539 -
/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java
Author: rfscholte
Date: Mon Aug 8 20:34:46 2016
New Revision: 1755539
URL: http://svn.apache.org/viewvc?rev=1755539&view=rev
Log:
replace deprecated constructor Manifest(Reader) with Manifest(InputStream)
Modified:
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java
Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java?rev=1755539&r1=1755538&r2=1755539&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java Mon Aug 8 20:34:46 2016
@@ -20,7 +20,7 @@ package org.apache.maven.plugin.ear;
*/
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 @@ public class EarMojo
}
// 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>();