geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/cli Main.java
Date Wed, 27 Aug 2003 10:38:38 GMT
jdillon     2003/08/27 03:38:38

  Modified:    modules/twiddle/src/java/org/apache/geronimo/twiddle/cli
                        Main.java
  Log:
   o Update the use the cached log impl by default in its new location
  
  Revision  Changes    Path
  1.11      +16 -2     incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/cli/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/cli/Main.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Main.java	25 Aug 2003 16:07:45 -0000	1.10
  +++ Main.java	27 Aug 2003 10:38:38 -0000	1.11
  @@ -92,7 +92,9 @@
       static {
           // Add our default Commons Logger that support the trace level
           if (System.getProperty(LogFactoryImpl.LOG_PROPERTY) == null) {
  -            System.setProperty(LogFactoryImpl.LOG_PROPERTY, "org.apache.geronimo.core.log.CachingLog4jLog");
  +            System.setProperty(
  +                LogFactoryImpl.LOG_PROPERTY,
  +                "org.apache.geronimo.common.log.log4j.CachingLog4jLog");
           }
       }
       
  @@ -120,6 +122,14 @@
                                          .withDescription("Display this help message")
                                          .create('h'));
                                          
  +        options.addOption(OptionBuilder.withLongOpt("debug")
  +                                       .withDescription("Enable debug output")
  +                                       .create('d'));
  +                                       
  +        options.addOption(OptionBuilder.withLongOpt("trace")
  +                                       .withDescription("Enable trace output")
  +                                       .create('T'));
  +                                       
           options.addOption(OptionBuilder.withLongOpt("define")
                                          .withDescription("Define a system property")
                                          .hasArg()
  @@ -174,6 +184,10 @@
           if (line.hasOption('f')) {
               filename = line.getOptionValue('f');
           }
  +        
  +        //
  +        // TODO handle --trace and --debug flags
  +        //
           
           return line.getArgs();
       }
  
  
  

Mime
View raw message