ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Jar.java
Date Sun, 16 Feb 2003 02:24:08 GMT
conor       2003/02/15 18:24:08

  Modified:    src/main/org/apache/tools/ant/taskdefs Jar.java
  Log:
  Also write manifets into JAR as UTF-8
  
  Revision  Changes    Path
  1.69      +2 -1      ant/src/main/org/apache/tools/ant/taskdefs/Jar.java
  
  Index: Jar.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Jar.java,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -w -u -r1.68 -r1.69
  --- Jar.java	16 Feb 2003 02:03:06 -0000	1.68
  +++ Jar.java	16 Feb 2003 02:24:07 -0000	1.69
  @@ -380,7 +380,8 @@
           zipDir(null, zOut, "META-INF/", ZipFileSet.DEFAULT_DIR_MODE);
           // time to write the manifest
           ByteArrayOutputStream baos = new ByteArrayOutputStream();
  -        PrintWriter writer = new PrintWriter(baos);
  +        OutputStreamWriter osw = new OutputStreamWriter(baos, "UTF-8");
  +        PrintWriter writer = new PrintWriter(osw);
           manifest.write(writer);
           writer.flush();
   
  
  
  

Mime
View raw message