ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25745] - ClearCase Update task does not allow usage of the -force flag when invoked
Date Tue, 28 Jun 2005 20:43:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=25745>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=25745





------- Additional Comments From m.holster@home.nl  2005-06-28 22:43 -------
I needed the patch for a project I work on, but couldn't get it to work (could
it be the cvs2svn conversion or don't i just get it....). Because the patch was
made a long time ago and I cound't get it to work I patched it again. Tested
with clearcase 2003.06.14. It would be really appreciated if the patch will be
applied soon. Here's the patch:

Index: docs/manual/OptionalTasks/clearcase.html
===================================================================
RCS file: /home/cvspublic/ant/docs/manual/OptionalTasks/clearcase.html,v
retrieving revision 1.13
diff -u -r1.13 clearcase.html
--- docs/manual/OptionalTasks/clearcase.html	29 Apr 2005 18:58:10 -0000	1.13
+++ docs/manual/OptionalTasks/clearcase.html	27 Jun 2005 19:01:59 -0000
@@ -297,6 +297,11 @@
     Since ant 1.6.1</td>
     <td>No</td>
   </tr>
+  <tr>
+    <td>force</td>
+    <td>Suppresses the confirmation prompts. Default is false.</td>
+    <td>No</td>
+  </tr>
 </table>
 <h3>Examples</h3>
 <blockquote>
Index: src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java
===================================================================
RCS file:
/home/cvspublic/ant/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java,v
retrieving revision 1.17
diff -u -r1.17 CCUpdate.java
--- src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java	9
Mar 2004 16:48:16 -0000	1.17
+++ src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java	27
Jun 2005 19:01:32 -0000
@@ -75,6 +75,11 @@
  *      <td>Throw an exception if the command fails. Default is true</td>
  *      <td>No</td>
  *   <tr>
+ *   <tr>
+ *      <td>force</td>
+ *      <td>Suppresses the confirmation prompts. Default is false.</td>
+ *      <td>No</td>
+ *   </tr>
  * </table>
  *
  */
@@ -85,6 +90,7 @@
     private boolean mCtime = false;
     private boolean mPtime = false;
     private String mLog = null;
+    private boolean mForce = false;
 
     /**
      * Executes the task.
@@ -157,7 +163,10 @@
                     cmd.createArgument().setValue(FLAG_PRESERVETIME);
                 }
             }
-
+            if (getForce()) {
+                // -force
+                cmd.createArgument().setValue(FLAG_FORCE);
+            }
             // -log logname
             getLogCommand(cmd);
         }
@@ -276,7 +285,24 @@
     public String getLog() {
         return mLog;
     }
+    
+    /**
+     * If true, confirmation prompt will be suppressed.
+     *
+     * @param force The status to set the flag to.
+     */
+    public void setForce(boolean force) {
+        mForce = force;
+    }
 
+    /**
+     * Get force status
+     *
+     * @return boolean containing status of force flag
+     */
+    public boolean getForce() {
+        return mForce;
+    }
 
     /**
      * Get the 'log' command
@@ -325,6 +351,10 @@
      * -ptime flag -- modified time is written as the VOB time
      */
     public static final String FLAG_PRESERVETIME = "-ptime";
+    /**
+     * -force flag -- suppresses the confirmation prompts 
+     */
+    public static final String FLAG_FORCE = "-force";
 
 }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message