geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: rev 45995 - geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main
Date Mon, 13 Sep 2004 18:02:39 GMT
Author: dain
Date: Mon Sep 13 11:02:39 2004
New Revision: 45995

Modified:
   geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ToolsJarHack.java
Log:
http://nagoya.apache.org/jira/browse/GERONIMO-294

The log message was causing a null pointer exception.



Modified: geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ToolsJarHack.java
==============================================================================
--- geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ToolsJarHack.java
(original)
+++ geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ToolsJarHack.java
Mon Sep 13 11:02:39 2004
@@ -29,7 +29,7 @@
 import sun.misc.URLClassPath;
 
 /**
- * @version $Revision: 1.2 $ $Date: 2004/09/09 03:15:04 $
+ * @version $Revision: 1.2 $ $Date$
  */
 public class ToolsJarHack {
     private static boolean installed = false;
@@ -94,8 +94,8 @@
             return toolsJarFile;
         }
 
-        log.warn("Could not all find java compiler: tools.jar file not found at " + toolsJarFile.getAbsolutePath()
+
-                " or " + toolsJarFile.getParentFile().getAbsolutePath());
+        log.warn("Could not all find java compiler: lib" + File.separator + "tools.jar file
not found in " +
+                javaHomeDir.getAbsolutePath() + " or " + javaHomeDir.getParentFile().getAbsolutePath());
         return null;
     }
 
@@ -103,11 +103,9 @@
         File toolsJarFile;
         toolsJarFile = new File(javaHomeDir, "lib" + File.separator + "tools.jar");
         if (!toolsJarFile.exists()) {
-            log.warn("Could not all find java compiler: tools.jar file not found at " + toolsJarFile.getAbsolutePath());
             return null;
         }
         if (!toolsJarFile.isFile()) {
-            log.warn("Could not all find java compiler: tools.jar file not a regular file:
" + toolsJarFile.getAbsolutePath());
             return null;
         }
         return toolsJarFile;

Mime
View raw message