Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#252 -- and spaces in arguments

v3.5.7
closed-fixed
None
5
2013-04-05
2010-12-15
Tobias Tobiasen
No

Hi,

I am using the -- argument when starting the wrapper. If I start the program with
wrapper my.cnf -- "a b"
Then my main method will be called with two arguments "a" and "b"

If I start the program with
wrapper my.cnf wrapper.app.parameter.2="a add"
Then my main method will be called with 1 argument "a b".

I want the behavior where "a b" is passed as a single argument when using the -- argument. Is that possible?

I am using standard edition 32bit 3.5.6 on Windows 7.

Discussion

  • Tobias,

    you are right, it should actually work like this.

    I assume the quotes got stripped somewhere when the wrapper is creating the java command line. In Unix it's a command array so, there it's working.

    a work around for windows would be to escape the quotes manually, i.e. bin\wrapper ..\conf\wrapper.conf -- \"a b\". however the backside of this would be, that it won't work on unix.

    cheers,
    christian

     
  • Do you have plans on fixing this?

     
  • Sorry for not making it clear.

    I was preparing the 3.5.7 release yesterday, when I got your mail.
    I'm right now working on fixing this, so it will be in 3.5.7.

    cheers,

     
  • Tobias,

    we released yesterday version 3.5.7 which also contains the fix for the problem you posted here.

    I would appreciate if you could give it a try and confirm it was resolved.

    Cheers,
    christian

     
    • status: open --> closed-fixed
    • assigned_to: Christian Mueller
    • milestone: --> v3.5.7