From: <otm...@us...> - 2008-12-13 14:28:08
|
Revision: 5754 http://jython.svn.sourceforge.net/jython/?rev=5754&view=rev Author: otmarhumbel Date: 2008-12-13 14:27:58 +0000 (Sat, 13 Dec 2008) Log Message: ----------- fixed verbosity Modified Paths: -------------- trunk/installer/src/java/org/python/util/install/Installation.java Modified: trunk/installer/src/java/org/python/util/install/Installation.java =================================================================== --- trunk/installer/src/java/org/python/util/install/Installation.java 2008-12-13 14:27:18 UTC (rev 5753) +++ trunk/installer/src/java/org/python/util/install/Installation.java 2008-12-13 14:27:58 UTC (rev 5754) @@ -50,6 +50,10 @@ protected static boolean isVerbose() { return _verbose; } + + protected static void setVerbose(boolean verbose) { + _verbose = verbose; + } protected static boolean isAutotesting() { return _isAutotesting; @@ -321,8 +325,9 @@ */ private static void internalMain(String[] args, Autotest autotest, Tunnel tunnel) { try { - boolean earlyVerbose = InstallerCommandLine.hasVerboseOptionInArgs(args); - if (earlyVerbose) { + setVerbose(InstallerCommandLine.hasVerboseOptionInArgs(args)); + boolean verbose = isVerbose(); + if (verbose) { dumpSystemProperties(); ConsoleInstaller.message("reading jar info"); } @@ -332,9 +337,8 @@ commandLine.printHelp(); System.exit(1); } else { - _verbose = commandLine.hasVerboseOption(); if (commandLine.hasAutotestOption()) { - if (isVerbose()) { + if (verbose) { ConsoleInstaller.message("running autotests"); } _isAutotesting = true; @@ -345,7 +349,7 @@ System.exit(0); } if (!useGui(commandLine)) { - if (isVerbose()) { + if (verbose) { ConsoleInstaller.message("using the console installer"); } ConsoleInstaller consoleInstaller = new ConsoleInstaller(commandLine, jarInfo); @@ -355,7 +359,7 @@ System.exit(0); } } else { - if (isVerbose()) { + if (verbose) { ConsoleInstaller.message("using the gui installer"); } new FrameInstaller(commandLine, jarInfo, autotest); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |