Re: Empty arguments on the command-line under windows

2005-09-04 Thread Steve Loughran
Martin Senger wrote: IMHO you are being "helped" by the windows command processor. I think it treats whitespace as meaningless. Exactly. That's my current understanding of what is happenning. And because this is an OS-dependent feature, I think (IMHO) that Ant when it calls Runtime.exec to

Re: Empty arguments on the command-line under windows

2005-09-04 Thread Steve Loughran
Martin Senger wrote: Hi, If you run ANT in verbose mode (-v) what does it output as the string that is generated...? This is how it look underw windows: [testing] Executing 'C:\Program Files\Java\jre1.5.0_04\bin\java.exe' with arguments: [testing] '-classpath' [testing] 'C:\Document

RE: Empty arguments on the command-line under windows

2005-09-01 Thread Martin Senger
> IMHO you are being "helped" by the windows command processor. I think it > treats whitespace as meaningless. > Exactly. That's my current understanding of what is happenning. And because this is an OS-dependent feature, I think (IMHO) that Ant when it calls Runtime.exec to call an external pro

RE: Empty arguments on the command-line under windows

2005-09-01 Thread Bill Rich
lto:[EMAIL PROTECTED] Sent: Thursday, September 01, 2005 1:37 AM To: Ant Users List Subject: Re: Empty arguments on the command-line under windows Hi, > > If you run ANT in verbose mode (-v) what does it output as the string > that is generated...? > This is how it look und

Re: Empty arguments on the command-line under windows

2005-09-01 Thread Martin Senger
Hi, > > If you run ANT in verbose mode (-v) what does it > output as the string that is generated...? > This is how it look underw windows: [testing] Executing 'C:\Program Files\Java\jre1.5.0_04\bin\java.exe' with arguments: [testing] '-classpath' [testing] 'C:\Documents and settings\mart

Re: Empty arguments on the command-line under windows

2005-09-01 Thread Antoine Levy-Lambert
Hello Martin, you can, using the condition task, set registry.cache.dir to "" only when running under windows. Hopes this helps, Antoine > --- Ursprüngliche Nachricht --- > Von: Martin Senger <[EMAIL PROTECTED]> > An: Ant Users List > Betreff: Re: Empty argumen

Re: Empty arguments on the command-line under windows

2005-09-01 Thread Martin Senger
> This (condition task invocation) rewrites more simply : > > > because ant only assigns a value to unexisting properties. > You are, of course, completely right (thanks also to Ninju Bohra who pointed to this, as well). I know that but sometimes I forget. Thanks... > To solve your Windows pr

Re: Empty arguments on the command-line under windows

2005-08-31 Thread Ninju Bohra
If you run ANT in verbose mode (-v) what does it output as the string that is generated...? On a side note, properties are immutable in ANT and so you can shorten (actually eliminate) the check on the registry.cache.dir and just make it: because if registry.cache.dir is already set to any v

Re: Empty arguments on the command-line under windows

2005-08-31 Thread Antoine Levy-Lambert
Hello Martin, Martin Senger wrote: >My task is (shortened): > > classpathref="moses.build.classpath" fork="true" failonerror="true"> > > > > > >Before invoking it I set an empty value to ${registry.cache.dir} unless it >is already set: > > > > > > > This (condition task invocatio