donaldp     01/12/22 04:36:45

  Modified:    
proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/launchers
                        ExecUtil.java
  Log:
  Move getAntHomeDirectory to the Execute class.
  
  Revision  Changes    Path
  1.2       +1 -18     
jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/launchers/ExecUtil.java
  
  Index: ExecUtil.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/launchers/ExecUtil.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExecUtil.java     2001/12/21 13:16:39     1.1
  +++ ExecUtil.java     2001/12/22 12:36:45     1.2
  @@ -15,7 +15,7 @@
    * A set of utility functions useful when writing CommandLaunchers.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
  - * @version $Revision: 1.1 $ $Date: 2001/12/21 13:16:39 $
  + * @version $Revision: 1.2 $ $Date: 2001/12/22 12:36:45 $
    */
   class ExecUtil
   {
  @@ -81,22 +81,5 @@
       protected static File getCwd()
       {
           return c_cwd;
  -    }
  -
  -    /**
  -     * Retrieve the directory in which Myrmidon is installed.
  -     * This is used to determine the locaiton of scripts in various 
launchers.
  -     */
  -    protected static File getAntHomeDirectory()
  -    {
  -        final String antHome = System.getProperty( "ant.home" );
  -        if( null == antHome )
  -        {
  -            final String message =
  -                "Cannot locate antRun script: Property 'ant.home' not 
specified";
  -            throw new IllegalStateException( message );
  -        }
  -
  -        return new File( antHome );
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to