problem with ant task

2005-01-29 Thread babloosony
Hi All, I am trying to run JiBX Binding Compiler using below ANT script ---

Classfileset Confusion

2005-01-29 Thread Rhino
Hi everyone, I've been struggling with classfileset quite a bit in the last couple of days and I'm afraid I'm just as confused now as I when I started out. Maybe it's time to take a step back and ask a conceptual question or two. Given a single root class, named mydomain.foo.Foo.class, which resi

Simple problem with ANT

2005-01-29 Thread Alvaro Andrés Montañez
Hello, I´m new with this, and i hope you can help me with this too simple problem.. I have this fille: The problem it´s that just create the folder "a", Thanks a lot. AM. - To unsubscribe, e-

Re: Simple problem with ANT

2005-01-29 Thread Alexey N. Solofnenko
You have two targets with the same name. This is the problem. - Alexey. Alvaro Andrés Montañez wrote: Hello, I´m new with this, and i hope you can help me with this too simple problem.. I have this fille: The problem it´s that just create the folder "a", Thanks a lot. A

Ant: Redirect output to both screen and log file

2005-01-29 Thread Douglas Kramer
When I use and specify output, all the output is redirected from the display to the log file. I want to be able to also view the output as it runs. Is there any way to send both standard out and standard error simultaneously to both a log file and the display? I'm basically looking for the equ

RE: Simple problem with ANT

2005-01-29 Thread Conelly, Luis (GE Energy, Non GE, GENE)
Just a thought, but I believe you shouldn´t name both targets as "tar1"; try to name the second target as "tar2" and then invoke it from ant as usual $ ant tar2 Should work. HTH luis -Original Message- From: Alvaro Andrés Montañez [mailto:[EMAIL PROTECTED] Sent: Saturday, January 29, 2

Re: Simple problem with ANT

2005-01-29 Thread Alvaro Andrés Montañez
I have to do this: But it´s rare, i don´t undestand, why doesn´t work like this: Thanks to all! On Sat, 29 Jan 2005 08:56:09 -0800, Conelly, Luis (GE Energy, Non GE, GENE) <[EMAIL PROTECTED]> wrote: > Just a thought, but I believe you shouldn´t name both target

RE: Simple problem with ANT

2005-01-29 Thread Conelly, Luis (GE Energy, Non GE, GENE)
Looking at your buildfile, the thing is you have to call tar2 instead of tar1 I have tried this sligthly modified version of your script and works like a charm: - - As you can see, the only difference is the default target inv

Re: Ant: Redirect output to both screen and log file

2005-01-29 Thread sourdak-ant
You use records for that. You surround any task with your recorder and get a copy of screen output to a (specified) file. Example: This is cool --- Douglas Kramer <[EMAIL PROTECTED]> a écrit : > When I use and specify ou

Ant: file exists

2005-01-29 Thread Douglas Kramer
Is there a way to test whether a file exists? I googled ant.apache.org for "file exists", looked at conditional, etc to no avail. -Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ant: file exists

2005-01-29 Thread Erik Hatcher
On Jan 29, 2005, at 3:40 PM, Douglas Kramer wrote: Is there a way to test whether a file exists? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

manipulating property strings

2005-01-29 Thread michael sorens
Is there a way to manipulate the contents of a multi-line property string as if it were a file? Right now I collect stderr of an exec to a temp-file (error="filename") then read the temp-file and manipulate via filterchain, storing into a property, as in: ...

Re: Ant: file exists

2005-01-29 Thread Douglas Kramer
Thanks. Okay, great so far... but I also need to excute a statement if the property is true, something like this: if [ -f filename ]; then echo "File exists"; fi -Doug Erik Hatcher wrote: On Jan 29, 2005, at 3:40 PM, Douglas Kramer wrote: Is there a way to test whether a file exists? ---

Re: Ant: file exists

2005-01-29 Thread Douglas Kramer
For the curious, this is it. When calling the run task, a symlink is created if it does not exist. Douglas Kramer wrote: Thanks. Okay, great so far... but I also need to excute a statement if the property is

Ant: create file if none exists

2005-01-29 Thread Douglas Kramer
Okay, try again. Need to create a file (actually a symlink) if none exists. Is there a way to set a property true if a resource does *not* exist? DETAIL The dosomething task will do something only if the file exists. I tried usi

Re: Ant: create file if none exists

2005-01-29 Thread Douglas Kramer
Found "unless" attribute of target. This simpler version works if ${MYFILE} resource is a file or directory, but fails if a symlink (which is what I devised this for). Am bummed out. -Doug Douglas Kramer wrote: Okay, try again. Need to create a file (actually a symli

Re: Ant: create file if none exists

2005-01-29 Thread Ninju Bohra
You can also look at the task (part of the ant-contrib project in SourceForge) which along with the standard condition tasks will allow you to do the following --- Douglas Kramer <[EMAIL PROTECTED]> wrote: > Found "