You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ar...@locus.apache.org on 2000/05/24 08:45:06 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Cvs.java
arnout 00/05/23 23:45:06
Modified: src/main/org/apache/tools/ant/taskdefs Cvs.java
Log:
Fixed problem when an empty tag was supplied.
Submitted by: Jean-Noel Gadreau <jn...@activcard.com>
Revision Changes Path
1.4 +10 -3 jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Cvs.java
Index: Cvs.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Cvs.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Cvs.java 2000/01/30 17:15:32 1.3
+++ Cvs.java 2000/05/24 06:45:05 1.4
@@ -97,9 +97,16 @@
this.pack = p;
}
- public void setTag(String p) {
- this.tag = p;
- }
+ public void setTag(String p) {
+ // Check if not real tag => set it to null
+ if (p != null) {
+ if (p.trim().equals(""))
+ p = null;
+ }
+
+ this.tag = p;
+ }
+
}