donaldp 01/12/15 16:37:27
Modified:
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase
CCCheckin.java CCCheckout.java CCUnCheckout.java
CCUpdate.java ClearCase.java
Log:
BuildException -> TaskException
Removed uneeded imports.
Processed code through style formatter.
Revision Changes Path
1.3 +5 -9
jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java
Index: CCCheckin.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CCCheckin.java 2001/12/15 14:55:57 1.2
+++ CCCheckin.java 2001/12/16 00:37:26 1.3
@@ -6,12 +6,11 @@
* the LICENSE file.
*/
package org.apache.tools.ant.taskdefs.optional.clearcase;
-import org.apache.tools.ant.BuildException;
+
+import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;
-
-
/**
* Task to perform Checkin command to ClearCase. <p>
*
@@ -194,7 +193,6 @@
private boolean m_Keep = false;
private boolean m_Identical = true;
-
/**
* Set comment string
*
@@ -321,10 +319,10 @@
* Builds a command line to execute cleartool and then calls Exec's run
* method to execute the command line.
*
- * @exception BuildException Description of Exception
+ * @exception TaskException Description of Exception
*/
public void execute()
- throws BuildException
+ throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
@@ -348,11 +346,10 @@
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
- throw new BuildException( msg );
+ throw new TaskException( msg );
}
}
-
/**
* Get the 'comment' command
*
@@ -392,7 +389,6 @@
cmd.createArgument().setValue( getCommentFile() );
}
}
-
/**
* Check the command line options.
1.3 +5 -8
jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java
Index: CCCheckout.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CCCheckout.java 2001/12/15 14:55:57 1.2
+++ CCCheckout.java 2001/12/16 00:37:26 1.3
@@ -6,12 +6,11 @@
* the LICENSE file.
*/
package org.apache.tools.ant.taskdefs.optional.clearcase;
-import org.apache.tools.ant.BuildException;
+
+import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;
-
-
/**
* Task to perform Checkout command to ClearCase. <p>
*
@@ -408,10 +407,10 @@
* Builds a command line to execute cleartool and then calls Exec's run
* method to execute the command line.
*
- * @exception BuildException Description of Exception
+ * @exception TaskException Description of Exception
*/
public void execute()
- throws BuildException
+ throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
@@ -435,7 +434,7 @@
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
- throw new BuildException( msg );
+ throw new TaskException( msg );
}
}
@@ -459,7 +458,6 @@
}
}
-
/**
* Get the 'comment' command
*
@@ -519,7 +517,6 @@
cmd.createArgument().setValue( getOut() );
}
}
-
/**
* Check the command line options.
1.3 +5 -7
jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java
Index: CCUnCheckout.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CCUnCheckout.java 2001/12/15 14:55:57 1.2
+++ CCUnCheckout.java 2001/12/16 00:37:27 1.3
@@ -6,12 +6,11 @@
* the LICENSE file.
*/
package org.apache.tools.ant.taskdefs.optional.clearcase;
-import org.apache.tools.ant.BuildException;
+
+import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;
-
-
/**
* Task to perform UnCheckout command to ClearCase. <p>
*
@@ -112,10 +111,10 @@
* Builds a command line to execute cleartool and then calls Exec's run
* method to execute the command line.
*
- * @exception BuildException Description of Exception
+ * @exception TaskException Description of Exception
*/
public void execute()
- throws BuildException
+ throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
@@ -139,10 +138,9 @@
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
- throw new BuildException( msg );
+ throw new TaskException( msg );
}
}
-
/**
* Check the command line options.
1.3 +5 -6
jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java
Index: CCUpdate.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CCUpdate.java 2001/12/15 14:55:57 1.2
+++ CCUpdate.java 2001/12/16 00:37:27 1.3
@@ -6,12 +6,11 @@
* the LICENSE file.
*/
package org.apache.tools.ant.taskdefs.optional.clearcase;
-import org.apache.tools.ant.BuildException;
+
+import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;
-
-
/**
* Task to perform an Update command to ClearCase. <p>
*
@@ -321,10 +320,10 @@
* Builds a command line to execute cleartool and then calls Exec's run
* method to execute the command line.
*
- * @exception BuildException Description of Exception
+ * @exception TaskException Description of Exception
*/
public void execute()
- throws BuildException
+ throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
@@ -352,7 +351,7 @@
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
- throw new BuildException( msg );
+ throw new TaskException( msg );
}
}
1.3 +3 -4
jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/ClearCase.java
Index: ClearCase.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/ClearCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ClearCase.java 2001/12/15 14:55:57 1.2
+++ ClearCase.java 2001/12/16 00:37:27 1.3
@@ -6,14 +6,14 @@
* the LICENSE file.
*/
package org.apache.tools.ant.taskdefs.optional.clearcase;
-import org.apache.tools.ant.BuildException;
+
+import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.taskdefs.Execute;
import org.apache.tools.ant.taskdefs.LogStreamHandler;
import org.apache.tools.ant.types.Commandline;
-
/**
* A base class for creating tasks for executing commands on ClearCase. <p>
*
@@ -102,7 +102,6 @@
return toReturn;
}
-
protected int run( Commandline cmd )
{
try
@@ -116,7 +115,7 @@
}
catch( java.io.IOException e )
{
- throw new BuildException( "Error", e );
+ throw new TaskException( "Error", e );
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>