Re: How to hide output of an

2005-04-15 Thread Matt Benson
In Ant 1.6.3 (final, not beta) or CVS HEAD you can conditionally define a redirector, giving it an id: for no file, for a file. and use it with your : -Matt --- Ninju Bohra <[EMAIL PROTECTED]> wrote: > Can you give a further detail on how to use the > solution (having never used > s >

Re: How to hide output of an -- what about

2005-04-15 Thread Matt Benson
--- Ninju Bohra <[EMAIL PROTECTED]> wrote: > While waiting for a fix (which will > neccesiate a move to 1.6.3) I wonder if I can use > to solve my problem (though maybe not as > elegently). Elegant enough. > > Define a presetdef for each for the standard > (console output) invocation. Inside

Re: How to hide output of an -- what about

2005-04-15 Thread Ninju Bohra
While waiting for a fix (which will neccesiate a move to 1.6.3) I wonder if I can use to solve my problem (though maybe not as elegently). Define a presetdef for each for the standard (console output) invocation. Inside the main script use a simple check on the presence of an ${output.file} p

Re: How to hide output of an -- DON'T use spawn=true

2005-04-15 Thread Matt Benson
--- Ninju Bohra <[EMAIL PROTECTED]> wrote: > Oops, > > Look like the "spawn" attribute route won't work :-) > > With "spawn=true" the task does NOT "block" > and > wait for the executable to finish. I need to have > the > script proceed only after the execuatable is > finished, > so we down to

Re: How to hide output of an -- DON'T use spawn=true

2005-04-15 Thread Ninju Bohra
Oops, Look like the "spawn" attribute route won't work :-) With "spawn=true" the task does NOT "block" and wait for the executable to finish. I need to have the script proceed only after the execuatable is finished, so we down to the and/or moving to 1.6.3 --- Ninju Bohra <[EMAIL PROTECTED]>

Re: How to hide output of an

2005-04-15 Thread Ninju Bohra
Can you give a further detail on how to use the solution (having never used s before)? I am using ANT 1.6.2 (can't use 1.6.3beta1 :-() Taking Ivan Ivanov's advice I would like to have the output from the either come to the screen (when run by user) or go to file (when invoked by CC) based upon

Re: How to hide output of an

2005-04-15 Thread Matt Benson
I guess spawn could work. A couple more options: You want to have a single task declaration that uses options. Meaning you can't just declare file without using it all the time. So you have two choices, still using I/O redirection. With Ant 1.6.3 you will have the alwayslog attribute on a redir

Re: How to hide output of an

2005-04-15 Thread Ninju Bohra
I thought about using the output attribute, but what value would I use for when they DO want the output to come to the console? I don't want to have the task duplicated (differing only in one have the output="NUL" and the other not using the output attribute) and then a set of conditions controll

Re: How to hide output of an

2005-04-15 Thread Ivan Ivanov
I would suggest you save the output to an external log file and if CruiseControl permits it attach the log file to its email. Thus it will not mess up the email but you will also be able to inspect it if something go wrong. Regards Ivan --- Ninju Bohra <[EMAIL PROTECTED]> wrote: > Hello all, >

Re: How to hide output of an

2005-04-15 Thread Matt Benson
--- Matt Benson <[EMAIL PROTECTED]> wrote: > If you are using a recent version of Ant, you could > redirect to your null device (a file). Actually this should work even with not-so-recent Ant versions. -Matt __ Do you Yahoo!? Make Yahoo! your h

Re: How to hide output of an

2005-04-15 Thread Matt Benson
If you are using a recent version of Ant, you could redirect to your null device (a file). Since you're on Windows (I assume from the backslashed paths), the file will be NUL . You could do some conditional stuff based on OS to choose NUL or /dev/null as your null device and be cross-platform, bu

How to hide output of an

2005-04-15 Thread Ninju Bohra
Hello all, On my Windows Box, I have a series of calls to do a set of Orcale database operations, one of the calls look like: Now everyt

Re: os independent paths

2005-04-15 Thread rakesh mailgroups
Hi, that definately works on windows. can't get to a UNIX environment just yet but will get back if theres a problem. Thanks!!! On 4/15/05, Peter Reilly <[EMAIL PROTECTED]> wrote: > Just use the location attribute of property: > > > > Peter > > rakesh mailgroups wrote: > > >Hi, > > > >found

AW: os independent paths

2005-04-15 Thread Jan . Materne
Then Ant uses the _current_ OS... Jan > -Ursprüngliche Nachricht- > Von: Peter Reilly [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 15. April 2005 14:56 > An: Ant Users List > Betreff: Re: os independent paths > > Just use the location attribute of property: > > > > Peter > > rak

Re: os independent paths

2005-04-15 Thread Peter Reilly
Just use the location attribute of property: Peter rakesh mailgroups wrote: Hi, found the ant website a bit cryptic when i looked up pathconvert. I hope someone can help me. I would like to be able to take one of my properties such as ${build.dir}, (defined as build.dir=war/WEB-INF) and and then

AW: os independent paths

2005-04-15 Thread Jan . Materne
Ant can work (internally) with your ${build.dir}. When you want to write the content in a platformspecific format to a file you have to specify which format to use. From where Ant should know that? Jan > -Ursprüngliche Nachricht- > Von: rakesh mailgroups [mailto:[EMAIL PROTECTED] > Gesend

os independent paths

2005-04-15 Thread rakesh mailgroups
Hi, found the ant website a bit cryptic when i looked up pathconvert. I hope someone can help me. I would like to be able to take one of my properties such as ${build.dir}, (defined as build.dir=war/WEB-INF) and and then convert that into a os-dependent path to use in my config files. So, for w