ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: How to set system properties (-D) from a ant task
Date Fri, 10 Oct 2003 18:55:12 GMT
I don't know if I understand what you want to do.  You
want your Task to set a Project property?  A System
property?  As I understand it, the -D stuff is passed
to the JVM to be used as a system property, then Ant
copies all system properties into the project.

-Matt

--- Ralph Jocham <rjocham72@yahoo.com> wrote:
> Hi,
> I am facing the following problem. My program uses
> log4j and when the program is launched using a .sh
> or
> .bat file I pass in the log4j config file with 
> 
> -Dlog4j.configuration=jcsc.log4j
> 
> which works fine. However, my application
> (http://jcsc.sourceforge.net) also provides a Ant
> task. How can I pass in a -D property from my ant
> task. I do not want to create a new attribute for my
> JCSC task. The Ant documentation didn't help.
> 
> Any help or advise is appreciated.
> 
> Thanks,
> Ralph
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message