avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/launcher Main.java
Date Sat, 17 Nov 2001 07:31:14 GMT
donaldp     01/11/16 23:31:14

  Modified:    src/java/org/apache/avalon/phoenix/launcher Main.java
  Log:
  Restyled.
  
  Revision  Changes    Path
  1.2       +11 -9     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/launcher/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/launcher/Main.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Main.java	2001/07/17 03:32:17	1.1
  +++ Main.java	2001/11/17 07:31:14	1.2
  @@ -25,9 +25,9 @@
    */
   public final class Main
   {
  -    private final static String  MAIN_CLASS  = "org.apache.avalon.phoenix.frontends.CLIMain";
  -    private final static String  MAIN_JAR    = "phoenix-engine.jar";
  -    private final static String  LOADER_JAR  = "phoenix-loader.jar";
  +    private final static String MAIN_CLASS = "org.apache.avalon.phoenix.frontends.CLIMain";
  +    private final static String MAIN_JAR = "phoenix-engine.jar";
  +    private final static String LOADER_JAR = "phoenix-loader.jar";
   
       public final static void main( final String args[] )
           throws Exception
  @@ -40,18 +40,18 @@
               //Create engine ClassLoader
               final File mainJar = findEngineJar();
               final URL archive = mainJar.toURL();
  -            final URLClassLoader classLoader = new URLClassLoader( new URL[] { archive
} );
  +            final URLClassLoader classLoader = new URLClassLoader( new URL[]{ archive }
);
   
               //Setup context classloader
               Thread.currentThread().setContextClassLoader( classLoader );
   
               //Create main launcher
               final Class clazz = classLoader.loadClass( MAIN_CLASS );
  -            final Method method = clazz.getMethod( "main", new Class[] { args.getClass()
} );
  +            final Method method = clazz.getMethod( "main", new Class[]{ args.getClass()
} );
               final Object instance = clazz.newInstance();
   
               //kick the tires and light the fires....
  -            method.invoke( instance, new Object[] { args } );
  +            method.invoke( instance, new Object[]{ args } );
           }
           catch( final Exception e )
           {
  @@ -68,7 +68,7 @@
       private final static File findEngineJar()
           throws Exception
       {
  -        String phoenixHome =  System.getProperty( "phoenix.home", null );
  +        String phoenixHome = System.getProperty( "phoenix.home", null );
           File loaderDir = null;
   
           if( null != phoenixHome )
  @@ -103,7 +103,7 @@
   
               if( element.endsWith( LOADER_JAR ) )
               {
  -                File file = (new File( element )).getCanonicalFile();
  +                File file = ( new File( element ) ).getCanonicalFile();
                   file = file.getParentFile();
                   return file;
               }
  @@ -126,6 +126,8 @@
               return permissions;
           }
   
  -        public void refresh() {}
  +        public void refresh()
  +        {
  +        }
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message