Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-24 Thread Jean-Noël Rivasseau
I finally found the answer to this; Ant properties set via -D are not the same as Java properties set via -D when loading Java. When I set the Java property and not the Ant property, it works. Thanks. On Fri, Jul 24, 2009 at 5:06 AM, Jean-Noël Rivasseau wrote: > Thanks for this answer.

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Jean-Noël Rivasseau
de a custom task. > > Use these within you Ant tasks: > this.getOwningTarget().getProject().getProperty("user.home"); > this.getOwningTarget().getProject().getProperties(); > > Cheers > Avlesh > > On Thu, Jul 23, 2009 at 11:55 PM, Jean-Noël Rivasseau >

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Jean-Noël Rivasseau
gt;>> Buildfile: build.xml >>>>[echo] /home/sfloess >>>> >>>> However, if I do this: >>>> >>>> ant -Duser.home="bar" >>>> >>>> I get: >>>> >>>> Buildfile: build.xml >>

How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Jean-Noël Rivasseau
Hello, I am launching Ant with a modified user.home property. This property is apparently not passed down to one of my tasks, defined in a taskdef. Why? Does Ant fork a new VM for executing such tasks? In any case, how can I pass this property to the task being executed, it's essential for me. I

Re: Probable bug found: scp task does not handle correctly directories containing subdirectories

2007-05-01 Thread Jean-Noël Rivasseau
iginal message without making a copy. Thank you. - Original Message - From: "Jean-Noël Rivasseau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 01, 2007 9:52 AM Subject: Probable bug found: scp task does not handle correctly directories containing sub

scp task does not correctly handle directories

2007-04-30 Thread Jean-Noël Rivasseau
Hi I am using Ant 1.6.5 and Ant 1.7 on Gentoo Linux amd64, and the same behavior appears. When using the scp task, I cannot copy a directory that contains subdirectories. When copying a directory that has no subdirectories, things work fine, but any directory with subdirs in it will cause the sc