ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs AntStructure.java
Date Thu, 13 Sep 2001 15:56:26 GMT
bodewig     01/09/13 08:56:26

  Modified:    src/main/org/apache/tools/ant Tag: ANT_14_BRANCH
                        XmlLogger.java
               src/main/org/apache/tools/ant/taskdefs Tag: ANT_14_BRANCH
                        AntStructure.java
  Log:
  add encoding declaration to generated XML files
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.8.2.3   +1 -0      jakarta-ant/src/main/org/apache/tools/ant/XmlLogger.java
  
  Index: XmlLogger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/XmlLogger.java,v
  retrieving revision 1.8.2.2
  retrieving revision 1.8.2.3
  diff -u -r1.8.2.2 -r1.8.2.3
  --- XmlLogger.java	2001/09/13 13:06:51	1.8.2.2
  +++ XmlLogger.java	2001/09/13 15:56:26	1.8.2.3
  @@ -136,6 +136,7 @@
               Writer out =
                   new OutputStreamWriter(new FileOutputStream(outFilename),
                                          "UTF8");
  +            out.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
               out.write("<?xml:stylesheet type=\"text/xsl\" href=\"log.xsl\"?>\n\n");
                         (new DOMElementWriter()).write(buildElement.element, out, 0, "\t");
               out.flush();
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.13.2.1  +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/AntStructure.java
  
  Index: AntStructure.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/AntStructure.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- AntStructure.java	2001/07/26 07:51:28	1.13
  +++ AntStructure.java	2001/09/13 15:56:26	1.13.2.1
  @@ -71,7 +71,7 @@
    *
    * @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a>
    *
  - * @version $Revision: 1.13 $
  + * @version $Revision: 1.13.2.1 $
    */
   
   public class AntStructure extends Task {
  @@ -146,7 +146,7 @@
   
       private void printHead(PrintWriter out, Enumeration tasks, 
                              Enumeration types) {
  -        out.println("<?xml version=\"1.0\" ?>");
  +        out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
           out.println("<!ENTITY % boolean \"(true|false|on|off|yes|no)\">");
           out.print("<!ENTITY % tasks \"");
           boolean first = true;
  
  
  

Mime
View raw message