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

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
zuhaider
Posts: 2
Joined: 30 Oct 2020, 06:47

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

Post 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.

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

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

Post 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

zuhaider
Posts: 2
Joined: 30 Oct 2020, 06:47

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

Post 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!

Post Reply