You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/12/21 14:12:03 UTC
cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec CommandLauncher.java
donaldp 01/12/21 05:12:03
Added: proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec
CommandLauncher.java
Log:
Add an interface for all CommandLaunchers to implement
Revision Changes Path
1.1 jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/CommandLauncher.java
Index: CommandLauncher.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.myrmidon.framework.exec;
import java.io.IOException;
import org.apache.myrmidon.api.TaskException;
/**
* This is the interface implemented by objects which are capable of
* lauching a native command. Each different implementation is likely
* to have a different strategy or be restricted to specific platform.
*
* <p>It is expected that the user will get a reference to the
* <code>CommandLauncher</code> most appropriate for their environment.</p>
*
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2001/12/21 13:12:03 $
*/
public interface CommandLauncher
{
/**
* Execute the specified native command.
*
* @param metaData the native command to execute
* @return the Process launched by the CommandLauncher
* @exception IOException is thrown when the native code can not
* launch the application for some reason. Usually due
* to the command not being fully specified and not in
* the PATH env var.
* @exception TaskException if the command launcher detects that
* it can not execute the native command for some reason.
*/
Process exec( ExecMetaData metaData )
throws IOException, TaskException;
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>