Issue1712

classification
Title: jython.bat vs jython - difference in argument handling
Type: behaviour Severity: normal
Components: Versions: Jython 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, rspielmann
Priority: normal Keywords:

Created on 2011-02-26.22:30:14 by rspielmann, last changed 2013-02-25.18:30:37 by fwierzbicki.

Messages
msg6410 (view) Author: Robert Spielmann (rspielmann) Date: 2011-02-26.22:30:13
Hi there,

I discussed http://code.google.com/p/robotframework/issues/detail?id=786 with Pekka recently, and it turns out the problem is with the Jython launcher scripts.

On Windows, arguments passed to jython.bat are parsed and split into several categories like JVM options etc. Afterwards, only those arguments that were not put into a certain context are passed to the desired Python script.

On Linux, the Jython launcher script also performs this kind of argument parsing, but when launching the JVM, it passes ALL arguments to the Python script as "$@".

This leads to cases where the Python script being executed complains about an unknown option or argument, like in the case of the Robot Framework, where "-J" options are not recognized by the framework, thus leading to an error message if the framework is started with Jython on linux. On Windows, however, it's possible to use -J options and they never reach the Python script.

It would be nice to have this inconsistency fixed, in order to have identical behaviour in both environments.
History
Date User Action Args
2013-02-25 18:30:37fwierzbickisetpriority: normal
nosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.1
2011-02-26 22:30:14rspielmanncreate