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

Empty arguments on the command-line under windows

2005-08-31 Thread Martin Senger
My task is (shortened): Before invoking it I set an empty value to ${registry.cache.dir} unless it is already set: If the value is indeed empty, I would expect that my java class gets three command-line arguments like this: -cacheDir "" -s And, indeed, it does - but onl

Re: remoteant causing build failure

2005-08-31 Thread Ninju Bohra
This is a "generic" error message that indicates something went wrong on the server side (I believe) You may want to start the server Ant process with verbose (-v) or debug (-d) and re-run the client request and hopefully you will see some diagonstic output. Sorry I can't be any more helpful, Ni

Re: can ant solve this rather complex challenge

2005-08-31 Thread MCG QA
Did you get a response to your problem?? --- Scott Bell <[EMAIL PROTECTED]> wrote: > > > Problem statement: > > I have a number of simple tcl scripts, and they take > a set number of params > as input (argv). Usually 1-10 params. They can all > run standalone, but have > dependencies. ANT

RE: Multiple invocations

2005-08-31 Thread Anderson, Rob (Global Trade)
Brian, There is a bug for the output issue also... http://issues.apache.org/bugzilla/show_bug.cgi?id=36302 I have not yet made the change that Atsuhiko Yamanaka suggested. If you have, and it works, please create a patch and attach it to the bug mentioned above. Also vote for it please. Thanks

RE: how to detect relative or absolute path value

2005-08-31 Thread Matt Benson
Please explain exactly what you are trying to do in terms of Ant XML; i.e. provide an example. -Matt --- [EMAIL PROTECTED] wrote: > Well, I've tried location but even if the input > property is an absolute > path like /usr/tmp, Ant will append basedir and > create a property > /my/basedir/usr/tm

Re: Error executing RSH from ANT script

2005-08-31 Thread Antoine Levy-Lambert
Hello Michael, not exactly sure why there is this handle problem. you might want to try - supposing you are working with ant 1.6 and that there is a ssh daemon on the host where you want to execute something remotely - the sshexec task. Otherwise, there are a and a task in ant. Cheers, Antoi

Re: question

2005-08-31 Thread Mark Lybarger
junit.jar needs to be in ant/lib or ~/.ant/lib (iirc), or in the system CLASSPATH env var. alternatively, you can repackage the ant junit supplied task to be in a different namespace/package than the ant supplied one. (for example, external.org.apache...). this will let you package the junit.ja

RE: Multiple invocations

2005-08-31 Thread Dick, Brian E.
I cast my vote. Also, in order to get the sshexec output correct, I made the change to TeeOutputStream that Atsuhiko Yamanaka suggested. Did you make that change to your code, too? Has a bug been created for this change? Now, if the ant developers would just add redirector support to the sshexec

[Solved] was = with for loop ?

2005-08-31 Thread Rebhan, Gilbert
Hi, i've found a working solution with antcontrib i'm using now instead of = and that works :-) Gilbert -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 11:26 AM To: user@ant.apache.o

with for loop ?

2005-08-31 Thread Rebhan, Gilbert
Hi, i want to run an antcontrib for loop only, if a property has been set. So i wrote = but that didn't work. How to check if a property has been set in conjunction with a foor loop ? Regards, Gilbert ---