User: starksm 
  Date: 01/09/18 18:20:51

  Modified:    src/main/org/jboss Main.java
  Log:
  Remove the security config comment block
  
  Revision  Changes    Path
  1.49      +7 -42     jboss/src/main/org/jboss/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/Main.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- Main.java 2001/09/11 18:34:58     1.48
  +++ Main.java 2001/09/19 01:20:51     1.49
  @@ -43,7 +43,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
  - * @version $Revision: 1.48 $
  + * @version $Revision: 1.49 $
    *
    * <b>Revisions:</b>
    * <p>
  @@ -74,7 +74,7 @@
                  String libDir,
                  String spineDir)
      {
  -      Date startTime = new Date();
  +      long startTime = System.currentTimeMillis();
   
         try
         {
  @@ -239,14 +239,13 @@
         }
   
         // Done
  -      Date lapsedTime = new Date(new Date().getTime() - startTime.getTime());
  -      Calendar cal = Calendar.getInstance();
  -      cal.setTime(lapsedTime);
  -
  +      long stopTime = System.currentTimeMillis();
  +      long lapsedTime = stopTime - startTime;
  +      long minutes = lapsedTime / 60000;
  +      long seconds = (lapsedTime - 60000 * minutes) / 1000;
         System.out.println("JBoss " + version +
               " [" + version.getName() + "] Started in " +
  -            cal.get(Calendar.MINUTE) + "m:" +
  -            cal.get(Calendar.SECOND) + "s");
  +            minutes  + "m:" + seconds  + "s");
      }
   
      /**
  @@ -374,38 +373,4 @@
            }
         }
      }
  -
  -   /*
  -    * Setup security
  -    * XXX marcf: what are the reason that would prevent us from making this an MBean
  -    * Set the JAAS login config file if not already set
  -    * if( System.getProperty("java.security.auth.login.config") == null )
  -    * {
  -    * URL loginConfig = mlet.getResource("auth.conf");
  -    * if( loginConfig != null )
  -    * {
  -    * System.setProperty("java.security.auth.login.config", 
loginConfig.toExternalForm());
  -    * System.out.println("Using JAAS LoginConfig: "+loginConfig.toExternalForm());
  -    * }
  -    * else
  -    * {
  -    * System.out.println("Warning: no auth.conf found in config="+confName);
  -    * }
  -    * }
  -    *
  -    * Set security using the mlet, if a patch was passed it will look in that path 
first
  -    * URL serverPolicy = mlet.getResource("server.policy");
  -    *
  -    * if ( serverPolicy == null )
  -    * {
  -    * throw new IOException("server.policy missing");
  -    * }
  -    *
  -    * System.setProperty("java.security.policy", serverPolicy.getFile());
  -    *
  -    * Set security manager
  -    * Optional for better performance
  -    * if (System.getProperty("java.security.manager") != null)
  -    * 
System.setSecurityManager((SecurityManager)Class.forName(System.getProperty("java.security.manager")).newInstance());
  -    */
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to