You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by mc...@apache.org on 2011/07/01 13:57:08 UTC
svn commit: r1141909 -
/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Author: mcculls
Date: Fri Jul 1 11:57:08 2011
New Revision: 1141909
URL: http://svn.apache.org/viewvc?rev=1141909&view=rev
Log:
Remove Java6-only method call
Modified:
felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java?rev=1141909&r1=1141908&r2=1141909&view=diff
==============================================================================
--- felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java (original)
+++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java Fri Jul 1 11:57:08 2011
@@ -502,9 +502,9 @@ public class BundlePlugin extends Abstra
stringProperties.setProperty( key, value );
}
}
- StringWriter writer = new StringWriter();
- stringProperties.store( writer, null );
- buf.append( writer );
+ ByteArrayOutputStream out = new ByteArrayOutputStream();
+ stringProperties.store( out, null ); // properties encoding is 8859_1
+ buf.append( out.toString( "8859_1" ) );
buf.append( "#-----------------------------------------------------------------------" + NL );
}
catch ( Throwable e )