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/java/org/apache/aut/nativelib/impl/launchers CommandLauncher.java DefaultCommandLauncher.java MacCommandLauncher.java ScriptCommandLauncher.java WinNTCommandLauncher.java
Date Sat, 02 Feb 2002 05:10:37 GMT
donaldp     02/02/01 21:10:37

  Modified:    proposal/myrmidon/src/java/org/apache/aut/nativelib/impl
                        DefaultExecManager.java
               proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers
                        DefaultCommandLauncher.java MacCommandLauncher.java
                        ScriptCommandLauncher.java
                        WinNTCommandLauncher.java
  Added:       proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers
                        CommandLauncher.java
  Removed:     proposal/myrmidon/src/java/org/apache/aut/nativelib/impl
                        CommandLauncher.java
  Log:
  Move CommandLauncher into Launchers package to remove circular dependency between impl and
impl.launchers packages.
  
  Detected by JDepend
  
  Revision  Changes    Path
  1.6       +2 -1      jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/DefaultExecManager.java
  
  Index: DefaultExecManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/DefaultExecManager.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DefaultExecManager.java	26 Jan 2002 04:52:38 -0000	1.5
  +++ DefaultExecManager.java	2 Feb 2002 05:10:36 -0000	1.6
  @@ -21,6 +21,7 @@
   import org.apache.aut.nativelib.impl.launchers.MacCommandLauncher;
   import org.apache.aut.nativelib.impl.launchers.ScriptCommandLauncher;
   import org.apache.aut.nativelib.impl.launchers.WinNTCommandLauncher;
  +import org.apache.aut.nativelib.impl.launchers.CommandLauncher;
   import org.apache.avalon.excalibur.io.FileUtil;
   import org.apache.avalon.excalibur.io.IOUtil;
   
  @@ -30,7 +31,7 @@
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @author <a href="mailto:thomas.haas@softwired-inc.com">Thomas Haas</a>
  - * @version $Revision: 1.5 $ $Date: 2002/01/26 04:52:38 $
  + * @version $Revision: 1.6 $ $Date: 2002/02/02 05:10:36 $
    * @see ExecManager
    * @see ExecMetaData
    */
  
  
  
  1.2       +1 -2      jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers/DefaultCommandLauncher.java
  
  Index: DefaultCommandLauncher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers/DefaultCommandLauncher.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultCommandLauncher.java	21 Jan 2002 11:44:24 -0000	1.1
  +++ DefaultCommandLauncher.java	2 Feb 2002 05:10:36 -0000	1.2
  @@ -14,7 +14,6 @@
   
   import org.apache.avalon.excalibur.i18n.ResourceManager;
   import org.apache.avalon.excalibur.i18n.Resources;
  -import org.apache.aut.nativelib.impl.CommandLauncher;
   
   import org.apache.aut.nativelib.ExecException;
   import org.apache.aut.nativelib.ExecMetaData;
  @@ -26,7 +25,7 @@
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @author <a href="mailto:thomas.haas@softwired-inc.com">Thomas Haas</a>
  - * @version $Revision: 1.1 $ $Date: 2002/01/21 11:44:24 $
  + * @version $Revision: 1.2 $ $Date: 2002/02/02 05:10:36 $
    */
   public class DefaultCommandLauncher
       implements CommandLauncher
  
  
  
  1.2       +1 -2      jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers/MacCommandLauncher.java
  
  Index: MacCommandLauncher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers/MacCommandLauncher.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MacCommandLauncher.java	21 Jan 2002 11:44:24 -0000	1.1
  +++ MacCommandLauncher.java	2 Feb 2002 05:10:36 -0000	1.2
  @@ -9,7 +9,6 @@
   
   import java.io.File;
   import java.io.IOException;
  -import org.apache.aut.nativelib.impl.CommandLauncher;
   import org.apache.aut.nativelib.ExecException;
   import org.apache.aut.nativelib.ExecMetaData;
   
  @@ -22,7 +21,7 @@
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @author <a href="mailto:thomas.haas@softwired-inc.com">Thomas Haas</a>
  - * @version $Revision: 1.1 $ $Date: 2002/01/21 11:44:24 $
  + * @version $Revision: 1.2 $ $Date: 2002/02/02 05:10:36 $
    */
   public class MacCommandLauncher
       implements CommandLauncher
  
  
  
  1.2       +1 -2      jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers/ScriptCommandLauncher.java
  
  Index: ScriptCommandLauncher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers/ScriptCommandLauncher.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ScriptCommandLauncher.java	21 Jan 2002 11:44:24 -0000	1.1
  +++ ScriptCommandLauncher.java	2 Feb 2002 05:10:36 -0000	1.2
  @@ -8,7 +8,6 @@
   package org.apache.aut.nativelib.impl.launchers;
   
   import java.io.IOException;
  -import org.apache.aut.nativelib.impl.CommandLauncher;
   import org.apache.aut.nativelib.ExecException;
   import org.apache.aut.nativelib.ExecMetaData;
   
  @@ -20,7 +19,7 @@
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @author <a href="mailto:thomas.haas@softwired-inc.com">Thomas Haas</a>
  - * @version $Revision: 1.1 $ $Date: 2002/01/21 11:44:24 $
  + * @version $Revision: 1.2 $ $Date: 2002/02/02 05:10:36 $
    */
   public class ScriptCommandLauncher
       implements CommandLauncher
  
  
  
  1.2       +1 -2      jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers/WinNTCommandLauncher.java
  
  Index: WinNTCommandLauncher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers/WinNTCommandLauncher.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WinNTCommandLauncher.java	21 Jan 2002 11:44:24 -0000	1.1
  +++ WinNTCommandLauncher.java	2 Feb 2002 05:10:36 -0000	1.2
  @@ -8,7 +8,6 @@
   package org.apache.aut.nativelib.impl.launchers;
   
   import java.io.IOException;
  -import org.apache.aut.nativelib.impl.CommandLauncher;
   import org.apache.aut.nativelib.ExecException;
   import org.apache.aut.nativelib.ExecMetaData;
   
  @@ -18,7 +17,7 @@
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @author <a href="mailto:thomas.haas@softwired-inc.com">Thomas Haas</a>
  - * @version $Revision: 1.1 $ $Date: 2002/01/21 11:44:24 $
  + * @version $Revision: 1.2 $ $Date: 2002/02/02 05:10:36 $
    */
   public class WinNTCommandLauncher
       implements CommandLauncher
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/nativelib/impl/launchers/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.aut.nativelib.impl.launchers;
  
  import java.io.IOException;
  import org.apache.aut.nativelib.ExecMetaData;
  import org.apache.aut.nativelib.ExecException;
  
  /**
   * 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: 2002/02/02 05:10:36 $
   */
  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 ExecException if the command launcher detects that
       *            it can not execute the native command for some reason.
       */
      Process exec( ExecMetaData metaData )
          throws IOException, ExecException;
  }
  
  
  

--
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