The CVS taks passes -r to cvs, even if the tag is empty. Fixed.

- tom

--
* Thomas Haas             <mailto:[EMAIL PROTECTED]>
* SoftWired AG                   <http://www.softwired-inc.com/>
* Technoparkstr. 1  ***  CH-8005 Zurich  ***  +41-1-4452370

--- Cvs.java.orig       Thu Mar 23 10:14:58 2000
+++ Cvs.java    Tue Apr 18 14:24:52 2000
@@ -1,7 +1,7 @@
 /*
  * The Apache Software License, Version 1.1
  *
- * Copyright (c) 1999 The Apache Software Foundation.  All rights 
+ * Copyright (c) 1999 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -9,7 +9,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
@@ -17,15 +17,15 @@
  *    distribution.
  *
  * 3. The end-user documentation included with the redistribution, if
- *    any, must include the following acknowlegement:  
- *       "This product includes software developed by the 
+ *    any, must include the following acknowlegement:
+ *       "This product includes software developed by the
  *        Apache Software Foundation (http://www.apache.org/)."
  *    Alternately, this acknowlegement may appear in the software itself,
  *    if and wherever such third-party acknowlegements normally appear.
  *
  * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
  *    Foundation" must not be used to endorse or promote products derived
- *    from this software without prior written permission. For written 
+ *    from this software without prior written permission. For written
  *    permission, please contact [EMAIL PROTECTED]
  *
  * 5. Products derived from this software may not be called "Apache"
@@ -69,15 +69,15 @@
     private String cvsRoot;
     private String pack;
     private String tag;
-    
+
     public void execute() throws BuildException {
 
        // XXX: we should use JCVS (www.ice.com/JCVS) instead of command line
        // execution so that we don't rely on having native CVS stuff around 
(SM)
-       
+
        StringBuffer sb=new StringBuffer();
        sb.append(" cvs -d ").append( cvsRoot ).append(" checkout ");
-       if (tag!=null)
+       if (tag!=null && tag.length() > 0)
             sb.append("-r ").append(tag).append(" ");
 
        sb.append( pack );

Reply via email to