If cvs exits with error you may want to stop the build.

-- 
Iulian Musat 
3DGeo Development Inc.
465 Fairchild Drive, Suite 226, Mountain View, CA 94043
Tel: 650-969-3886 x107, Fax: 650-969-6422
Index: src/main/org/apache/tools/ant/taskdefs/Cvs.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Cvs.java,v
retrieving revision 1.14
diff -u -r1.14 Cvs.java
--- src/main/org/apache/tools/ant/taskdefs/Cvs.java     2001/04/27 11:52:54     
1.14
+++ src/main/org/apache/tools/ant/taskdefs/Cvs.java     2001/05/30 19:14:40
@@ -206,7 +206,10 @@
         exe.setCommandline(toExecute.getCommandline());
         exe.setEnvironment(env.getVariables());
         try {
-            exe.execute();
+           int retCode = exe.execute();
+           /*Throw an exception if cvs exited with error. (Iulian)*/
+           if(retCode != 0)
+               throw new BuildException("cvs exited with error code " + 
retCode);
         } catch (IOException e) {
             throw new BuildException(e, location);
         } finally {

Reply via email to