ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/launch Locator.java
Date Fri, 05 Aug 2005 20:54:13 GMT
mbenson     2005/08/05 13:54:13

  Modified:    src/main/org/apache/tools/ant/launch Locator.java
  Log:
  check for File.separator + jre when searching for tools.jar
  PR: 36043
  
  Revision  Changes    Path
  1.18      +1 -1      ant/src/main/org/apache/tools/ant/launch/Locator.java
  
  Index: Locator.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/launch/Locator.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Locator.java	19 Apr 2005 20:57:24 -0000	1.17
  +++ Locator.java	5 Aug 2005 20:54:13 -0000	1.18
  @@ -189,7 +189,7 @@
           // couldn't find compiler - try to find tools.jar
           // based on java.home setting
           String javaHome = System.getProperty("java.home");
  -        if (javaHome.toLowerCase(Locale.US).endsWith("jre")) {
  +        if (javaHome.toLowerCase(Locale.US).endsWith(File.separator + "jre")) {
               javaHome = javaHome.substring(0, javaHome.length() - 4);
           }
           File toolsJar = new File(javaHome + "/lib/tools.jar");
  
  
  

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


Mime
View raw message