geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: incubator-geronimo/modules/system/src/java/org/apache/geronimo/system/main ToolsJarHack.java
Date Thu, 09 Sep 2004 03:15:04 GMT
dain        2004/09/08 20:15:04

  Modified:    modules/system/src/java/org/apache/geronimo/system/main
                        ToolsJarHack.java
  Log:
  The class is sun.tools.javac.Main not sun/tools/javac/Main
  
  Revision  Changes    Path
  1.2       +2 -4      incubator-geronimo/modules/system/src/java/org/apache/geronimo/system/main/ToolsJarHack.java
  
  Index: ToolsJarHack.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/system/src/java/org/apache/geronimo/system/main/ToolsJarHack.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ToolsJarHack.java	9 Sep 2004 02:27:31 -0000	1.1
  +++ ToolsJarHack.java	9 Sep 2004 03:15:04 -0000	1.2
  @@ -48,7 +48,7 @@
           ClassLoader myClassLoader = ToolsJarHack.class.getClassLoader();
           Class compilerClass = null;
           try {
  -            compilerClass = myClassLoader.loadClass("sun/tools/javac/Main");
  +            compilerClass = myClassLoader.loadClass("sun.tools.javac.Main");
           } catch (ClassNotFoundException ignored) {
           }
           if (compilerClass != null) {
  @@ -76,13 +76,11 @@
       private static File findToolsJarFile() {
           String javaHome = System.getProperty("java.home");
           if (javaHome == null) {
  -            log.warn("Could not all find java compiler: java.home system property is null");
               return null;
           }
   
           File javaHomeDir = new File(javaHome);
           if (!javaHomeDir.isDirectory()) {
  -            log.warn("Could not all find java compiler: java.home system property does
not refer to a directory: java.home=" + javaHome);
               return null;
           }
   
  
  
  

Mime
View raw message