Message6410

Author rspielmann
Recipients rspielmann
Date 2011-02-26.22:30:13
SpamBayes Score 9.33233e-07
Marked as misclassified No
Message-id <1298759414.03.0.125414406229.issue1712@psf.upfronthosting.co.za>
In-reply-to
Content
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
2011-02-26 22:30:14rspielmannsetrecipients: + rspielmann
2011-02-26 22:30:14rspielmannsetmessageid: <1298759414.03.0.125414406229.issue1712@psf.upfronthosting.co.za>
2011-02-26 22:30:14rspielmannlinkissue1712 messages
2011-02-26 22:30:13rspielmanncreate