Browse Source

Move getAntHomeDirectory to the Execute class.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270301 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
39db94a5e8
1 changed files with 0 additions and 17 deletions
  1. +0
    -17
      proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/launchers/ExecUtil.java

+ 0
- 17
proposal/myrmidon/src/java/org/apache/myrmidon/framework/exec/launchers/ExecUtil.java View File

@@ -82,21 +82,4 @@ class ExecUtil
{
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 );
}
}

Loading…
Cancel
Save