Browse Source

Removed unused variables and cleaned up tasks a little.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270587 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
c66f11924c
8 changed files with 24 additions and 48 deletions
  1. +3
    -6
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java
  2. +3
    -6
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java
  3. +3
    -6
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java
  4. +3
    -6
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java
  5. +3
    -6
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java
  6. +3
    -6
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java
  7. +3
    -6
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java
  8. +3
    -6
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java

+ 3
- 6
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java View File

@@ -8,7 +8,6 @@
package org.apache.tools.ant.taskdefs.optional.clearcase;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;

/**
@@ -325,8 +324,6 @@ public class CCCheckin extends ClearCase
throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;

// Default the viewpath to basedir if it is not specified
if( getViewPath() == null )
@@ -342,11 +339,11 @@ public class CCCheckin extends ClearCase

checkOptions( commandLine );

result = run( commandLine );
final int result = run( commandLine );
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
throw new TaskException( msg );
final String message = "Failed executing: " + commandLine.toString();
throw new TaskException( message );
}
}



+ 3
- 6
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java View File

@@ -8,7 +8,6 @@
package org.apache.tools.ant.taskdefs.optional.clearcase;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;

/**
@@ -413,8 +412,6 @@ public class CCCheckout extends ClearCase
throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;

// Default the viewpath to basedir if it is not specified
if( getViewPath() == null )
@@ -430,11 +427,11 @@ public class CCCheckout extends ClearCase

checkOptions( commandLine );

result = run( commandLine );
final int result = run( commandLine );
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
throw new TaskException( msg );
final String message = "Failed executing: " + commandLine.toString();
throw new TaskException( message );
}
}



+ 3
- 6
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java View File

@@ -8,7 +8,6 @@
package org.apache.tools.ant.taskdefs.optional.clearcase;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;

/**
@@ -117,8 +116,6 @@ public class CCUnCheckout extends ClearCase
throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;

// Default the viewpath to basedir if it is not specified
if( getViewPath() == null )
@@ -134,11 +131,11 @@ public class CCUnCheckout extends ClearCase

checkOptions( commandLine );

result = run( commandLine );
final int result = run( commandLine );
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
throw new TaskException( msg );
final String message = "Failed executing: " + commandLine.toString();
throw new TaskException( message );
}
}



+ 3
- 6
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java View File

@@ -8,7 +8,6 @@
package org.apache.tools.ant.taskdefs.optional.clearcase;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;

/**
@@ -326,8 +325,6 @@ public class CCUpdate extends ClearCase
throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;

// Default the viewpath to basedir if it is not specified
if( getViewPath() == null )
@@ -347,11 +344,11 @@ public class CCUpdate extends ClearCase
// For debugging
System.out.println( commandLine.toString() );

result = run( commandLine );
final int result = run( commandLine );
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
throw new TaskException( msg );
final String message = "Failed executing: " + commandLine.toString();
throw new TaskException( message );
}
}



+ 3
- 6
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java View File

@@ -8,7 +8,6 @@
package org.apache.tools.ant.taskdefs.optional.clearcase;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;

/**
@@ -325,8 +324,6 @@ public class CCCheckin extends ClearCase
throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;

// Default the viewpath to basedir if it is not specified
if( getViewPath() == null )
@@ -342,11 +339,11 @@ public class CCCheckin extends ClearCase

checkOptions( commandLine );

result = run( commandLine );
final int result = run( commandLine );
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
throw new TaskException( msg );
final String message = "Failed executing: " + commandLine.toString();
throw new TaskException( message );
}
}



+ 3
- 6
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckout.java View File

@@ -8,7 +8,6 @@
package org.apache.tools.ant.taskdefs.optional.clearcase;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;

/**
@@ -413,8 +412,6 @@ public class CCCheckout extends ClearCase
throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;

// Default the viewpath to basedir if it is not specified
if( getViewPath() == null )
@@ -430,11 +427,11 @@ public class CCCheckout extends ClearCase

checkOptions( commandLine );

result = run( commandLine );
final int result = run( commandLine );
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
throw new TaskException( msg );
final String message = "Failed executing: " + commandLine.toString();
throw new TaskException( message );
}
}



+ 3
- 6
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java View File

@@ -8,7 +8,6 @@
package org.apache.tools.ant.taskdefs.optional.clearcase;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;

/**
@@ -117,8 +116,6 @@ public class CCUnCheckout extends ClearCase
throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;

// Default the viewpath to basedir if it is not specified
if( getViewPath() == null )
@@ -134,11 +131,11 @@ public class CCUnCheckout extends ClearCase

checkOptions( commandLine );

result = run( commandLine );
final int result = run( commandLine );
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
throw new TaskException( msg );
final String message = "Failed executing: " + commandLine.toString();
throw new TaskException( message );
}
}



+ 3
- 6
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/clearcase/CCUpdate.java View File

@@ -8,7 +8,6 @@
package org.apache.tools.ant.taskdefs.optional.clearcase;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Commandline;

/**
@@ -326,8 +325,6 @@ public class CCUpdate extends ClearCase
throws TaskException
{
Commandline commandLine = new Commandline();
Project aProj = getProject();
int result = 0;

// Default the viewpath to basedir if it is not specified
if( getViewPath() == null )
@@ -347,11 +344,11 @@ public class CCUpdate extends ClearCase
// For debugging
System.out.println( commandLine.toString() );

result = run( commandLine );
final int result = run( commandLine );
if( result != 0 )
{
String msg = "Failed executing: " + commandLine.toString();
throw new TaskException( msg );
final String message = "Failed executing: " + commandLine.toString();
throw new TaskException( message );
}
}



Loading…
Cancel
Save