ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec Execute.java
Date Sun, 06 Jan 2002 01:51:46 GMT
donaldp     02/01/05 17:51:46

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec
                        Execute.java
  Log:
  Remove unused method
  
  Revision  Changes    Path
  1.25      +0 -35     jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/Execute.java
  
  Index: Execute.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/Execute.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- Execute.java	5 Jan 2002 03:24:09 -0000	1.24
  +++ Execute.java	6 Jan 2002 01:51:46 -0000	1.25
  @@ -11,13 +11,10 @@
   import java.io.IOException;
   import java.io.OutputStream;
   import java.util.Properties;
  -import org.apache.avalon.framework.logger.Logger;
   import org.apache.myrmidon.api.TaskException;
   import org.apache.myrmidon.framework.exec.ExecException;
   import org.apache.myrmidon.framework.exec.ExecMetaData;
   import org.apache.myrmidon.framework.exec.impl.DefaultExecManager;
  -import org.apache.tools.ant.Task;
  -import org.apache.tools.ant.types.Commandline;
   
   /**
    * Runs an external program.
  @@ -50,38 +47,6 @@
           }
   
           return new File( antHome );
  -    }
  -
  -    /**
  -     * A utility method that runs an external command. Writes the output and
  -     * error streams of the command to the project log.
  -     *
  -     * @param task The task that the command is part of. Used for logging
  -     * @param cmdline The command to execute.
  -     * @throws TaskException if the command does not return 0.
  -     */
  -    public static void runCommand( final Task task, final String[] cmdline )
  -        throws TaskException
  -    {
  -        try
  -        {
  -            final Logger logger = task.hackGetLogger();
  -            logger.debug( Commandline.toString( cmdline ) );
  -            final Execute exe = new Execute();
  -            exe.setOutput( new LogOutputStream( logger, false ) );
  -            exe.setError( new LogOutputStream( logger, true ) );
  -
  -            exe.setCommandline( cmdline );
  -            int retval = exe.execute();
  -            if( retval != 0 )
  -            {
  -                throw new TaskException( cmdline[ 0 ] + " failed with return code " + retval
);
  -            }
  -        }
  -        catch( final IOException ioe )
  -        {
  -            throw new TaskException( "Could not launch " + cmdline[ 0 ] + ": " + ioe );
  -        }
       }
   
       /**
  
  
  

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


Mime
View raw message