ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/cvslib ChangeLogWriter.java
Date Thu, 11 Nov 2004 17:27:09 GMT
sbailliez    2004/11/11 09:27:09

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib
                        ChangeLogWriter.java
  Log:
  Fix invalid xml formed in case the filename is made of reserved xml characters (ampersand
for entities for instance)
  PR: 30817
  
  Revision  Changes    Path
  1.15      +2 -2      ant/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogWriter.java
  
  Index: ChangeLogWriter.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogWriter.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ChangeLogWriter.java	9 Mar 2004 16:48:14 -0000	1.14
  +++ ChangeLogWriter.java	11 Nov 2004 17:27:09 -0000	1.15
  @@ -82,7 +82,7 @@
               final RCSFile file = (RCSFile) enumeration.nextElement();
   
               output.println("\t\t<file>");
  -            output.println("\t\t\t<name>" + file.getName() + "</name>");
  +            output.println("\t\t\t<name><![CDATA[" + file.getName() + "]]></name>");
               output.println("\t\t\t<revision>" + file.getRevision()
                   + "</revision>");
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message