protegeproject / protege

Protege Desktop
http://protege.stanford.edu
Other
970 stars 229 forks source link

Protege.exe does not pass arguments to the 'main' method #1162

Closed jmkeil closed 9 months ago

jmkeil commented 10 months ago

This issue has similar symptoms as #547, but it has another root cause.

Opening an ontology file with Protege.exe by associating the file type with Protege.exe or with the "Open with …" dialog does not work. Using run.but instead is a workaround, but with some disadvantages (additional console window, no icon associated, ambiguous name in "open with …" dialog). As i understood, the problem is, that Protege.exe does not pass the arguments to the main method. According to the documentation of the maven plugin generating the EXE file, it is a known limitation of the plugin:

Missing features:

  • […]
  • Command line arguments cannot be passed to the executable.
  • […]

Solving this problem would therefore require to switch the maven plugin (if there is a sufficient alternative).

gouttegd commented 10 months ago

According to the documentation of the maven plugin generating the EXE file, it is a known limitation of the plugin:

You’re looking at an old version of Protégé, we are no longer using this plugin to generate the Windows launcher. We use a custom launcher instead.

The good news is that this launcher does allow us to pass command line arguments to the main method – it’s merely an oversight that we did not do so. I’ll fix that shortly.

gouttegd commented 10 months ago

The launcher has been updated to pass command line arguments. The issue will be fixed in the next Protégé release.

jmkeil commented 10 months ago

Thanks for fixing. Looking forward for the next release.