Propagating the command-line logLevel to JUnit's logger in headless mode.
In doing so, changed visibility of the Options class from default to protected.

Patch by: amitmanjhi



git-svn-id: https://google-web-toolkit.googlecode.com/svn/branches/farewellSwt@6198 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/oophm/overlay/com/google/gwt/dev/GWTShell.java b/dev/oophm/overlay/com/google/gwt/dev/GWTShell.java
index b5c34f3..b59368f 100644
--- a/dev/oophm/overlay/com/google/gwt/dev/GWTShell.java
+++ b/dev/oophm/overlay/com/google/gwt/dev/GWTShell.java
@@ -91,7 +91,7 @@
   /**
    * Concrete class to implement all shell options.
    */
-  static class ShellOptionsImpl extends OophmHostedModeBaseOptionsImpl
+  protected static class ShellOptionsImpl extends OophmHostedModeBaseOptionsImpl
       implements HostedModeBaseOptions, WorkDirs, LegacyCompilerOptions,
       OptionPortHosted {
     private int localWorkers;
diff --git a/user/src/com/google/gwt/junit/JUnitShell.java b/user/src/com/google/gwt/junit/JUnitShell.java
index 43e8779..919c01f 100644
--- a/user/src/com/google/gwt/junit/JUnitShell.java
+++ b/user/src/com/google/gwt/junit/JUnitShell.java
@@ -556,8 +556,7 @@
   protected void initializeLogger() {
     if (isHeadless()) {
       consoleLogger = new PrintWriterTreeLogger();
-      // previously, in legacy hosted mode, the call was:
-      // consoleLogger.setMaxDetail(getCompilerOptions().getLogLevel());
+      consoleLogger.setMaxDetail(options.getLogLevel());
     } else {
       super.initializeLogger();
     }