Page 1 of 1

[SOLVED] How to disable -verbose option when launching app via openwebstart

Posted: 30 Oct 2020, 07:04
by zuhaider
Hi

can anyone help in supressing the -verbose argument used by default in ows during app launch as per
code looks its added by default

https://github.com/karakun/OpenWebStart ... ncher.java

Code: Select all

  private static ArrayList<String> getVerboseArgs(String[] args) {
        // TODO: this makes sure any app launched with OWS is running in verbose/logging mode. Remove this once OWS is stable
        final ArrayList<String> result = new ArrayList<>(Arrays.asList(args));
        if (!result.contains(CommandLineOptions.VERBOSE.getOption())) {
            result.add(0, CommandLineOptions.VERBOSE.getOption());
        }
        return result;

Application is launched by command line

C:\Program Files\OpenWebStart>javaws.exe http://localhost:8080/app.jnlpx?application

Log for our application launch
[xxx][ITW-CORE][2020-10-30 10:12:52.573 IST][INFO ][net.sourceforge.jnlp.util.logging.filelogs.WriterBasedFileLog][Output controller consumer daemon#10657440] writer-based impl.
[ITW-CORE][2020-10-30 10:12:52.214 IST][INFO ][com.openwebstart.launcher.OpenWebStartLauncher] OWS main args [-verbose, http://localhost:8080/app.jnlpx?application].
[ITW-CORE][2020-10-30 10:12:52.356 IST][INFO ][com.openwebstart.launcher.PhaseTwoWebStartLauncher] Starting OpenWebStart 1.2.1
Thanks for the help in advance.

Re: How to disable -verbose option when launching app via openwebstart

Posted: 30 Oct 2020, 09:34
by Stephan Classen
Yes we plan to remove this with the upcoming release 1.3.0
We initially enforced verbose mode to reduce friction when people create bug reports.
Now that OWS has reached a very stable state we do no longer have the need to enforce the verbose mode

Re: How to disable -verbose option when launching app via openwebstart

Posted: 30 Oct 2020, 13:11
by zuhaider
Stephan Classen wrote: 30 Oct 2020, 09:34 Yes we plan to remove this with the upcoming release 1.3.0
We initially enforced verbose mode to reduce friction when people create bug reports.
Now that OWS has reached a very stable state we do no longer have the need to enforce the verbose mode
Thanks for the quick response!