Re: [EXEC] Suggestion for CommandLine

2008-07-18 Thread Siegfried Goeschl
Hi Peter, actually no need for the syntactic sugar - see the test below /** * A little example how to add two command line arguments * in one line, e.g. to make commenting out some options * less error prone. */ public void testAddTwoArguments() { CommandLine userAddCL1 = new CommandLine("us

Re: [EXEC] Suggestion for CommandLine

2008-07-18 Thread Siegfried Goeschl
Adding a bunch of arguments is already there ... Cheers, Siegfried Goeschl sebb wrote: On 18/07/2008, Siegfried Goeschl <[EMAIL PROTECTED]> wrote: Hi Peter, that 's a good idea - I will do that. Regarding varargs - they are not suppported with JDK 1.3/1.4 as far as I know But o

Re: [EXEC] Suggestion for CommandLine

2008-07-18 Thread sebb
On 18/07/2008, Siegfried Goeschl <[EMAIL PROTECTED]> wrote: > Hi Peter, > > that 's a good idea - I will do that. > > Regarding varargs - they are not suppported with JDK 1.3/1.4 as far as I > know > But one could add a String array... > Cheers, > > Siegfried Goeschl > > > Peter Henderson wr

Re: [EXEC] Suggestion for CommandLine

2008-07-18 Thread Siegfried Goeschl
Hi Peter, that 's a good idea - I will do that. Regarding varargs - they are not suppported with JDK 1.3/1.4 as far as I know Cheers, Siegfried Goeschl Peter Henderson wrote: Hi I hope this is the correct place for suggestions to Commons Exec. CommandLine Many command line arguments co

[EXEC] Suggestion for CommandLine

2008-07-18 Thread Peter Henderson
Hi I hope this is the correct place for suggestions to Commons Exec. CommandLine Many command line arguments come in pairs, at the moment I have to call addArgument() twice for each component in the paired argument, which is slightly messy + could lead to problems if one of the pair is commen