ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/cvslib CvsTagDiff.java
Date Tue, 15 Mar 2005 14:59:43 GMT
bodewig     2005/03/15 06:59:43

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib
                        CvsTagDiff.java
  Log:
  revision may be null
  
  Revision  Changes    Path
  1.27      +3 -1      ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java
  
  Index: CvsTagDiff.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- CvsTagDiff.java	15 Mar 2005 14:54:32 -0000	1.26
  +++ CvsTagDiff.java	15 Mar 2005 14:59:43 -0000	1.27
  @@ -411,7 +411,9 @@
           Element ent = doc.createElement("entry");
           Element f = DOMUtils.createChildElement(ent, "file");
           DOMUtils.appendCDATAElement(f, "name", entry.getFile());
  -        DOMUtils.appendTextElement(f, "revision", entry.getRevision());
  +        if (entry.getRevision() != null) {
  +            DOMUtils.appendTextElement(f, "revision", entry.getRevision());
  +        }
           if (entry.getPreviousRevision() != null) {
               DOMUtils.appendTextElement(f, "prevrevision",
                                          entry.getPreviousRevision());
  
  
  

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


Mime
View raw message