RE: Newbie question: importing properties from XML file via command line

2009-09-11 Thread Scott Stark
> Any particular reason you're not using a plain old properties file? Also I've noticed you can't "inherit" properties in a properties file. For example, this doesn't work: projectRoot=C:\\working documentSource=${projectRoot}\\documents And you can't even use ${file.separator}... Scott

RE: Newbie question: importing properties from XML file via command line

2009-09-11 Thread Scott Stark
"Thomas Boyles" wrote: > Any particular reason you're not using a plain old properties file? Well I wanted to make it editable by an XML editor, as well as put comments and such in there to make it more readable. Just wondering if there's a way to import an XML file at the command line, since it

RE: Newbie question: importing properties from XML file via command line

2009-09-11 Thread Thomas Boyles
Any particular reason you're not using a plain old properties file? -Original Message- From: Scott Stark [mailto:sst...@us.ibm.com] Sent: Friday, September 11, 2009 11:36 AM To: Ant Users List Subject: Newbie question: importing properties from XML file via command line Hi, this is prob

Newbie question: importing properties from XML file via command line

2009-09-11 Thread Scott Stark
Hi, this is probably a dumb question but I couldn't find the answer in the online doc. I want to import a set of properties from an XML file when I run an Ant build from the command line. I can do that with the -propertyfile param if the file has name=value pairs in it. Any way to do this with an

Re: Does mail task work on Eclipse on Mac OSX 10.6?

2009-09-11 Thread Chris Kimball
Other scripts of mine use the jarbundler-1.9 package and run correctly with this jar placed as a Global entry in the Preferences -> ant -> Runtime environment. Thus, Eclipse 3.5 seems to handle add-on jars correctly on MacOSX 10.6. mail.jar from javamail-1.4.2 occupies the same position as ja

Re: Does mail task work on Eclipse on Mac OSX 10.6?

2009-09-11 Thread Damjan Perenic
On Fri, Sep 11, 2009 at 8:06 PM, Rebhan, Gilbert wrote: > > -Original Message- > From: Damjan Perenic [mailto:bage...@gmail.com] > Sent: Friday, September 11, 2009 2:00 PM > To: Ant Users List > Subject: Re: Does mail task work on Eclipse on Mac OSX 10.6? > > /* > I haven't tried Mac OS X

Re: Set value if directory exists

2009-09-11 Thread Gilbert Rebhan
Mikael Petterson schrieb: > Hi, > > How can I set the value of out.dir to /local/tmp/ if it exists. > Currently the second option when /tmp exists set the value out.dir to > /tmp/myuser > > I know that /local/tmp exists. > > //mike > >file="/local/tmp" /> >type="dir" f

RE: Does mail task work on Eclipse on Mac OSX 10.6?

2009-09-11 Thread Rebhan, Gilbert
-Original Message- From: Damjan Perenic [mailto:bage...@gmail.com] Sent: Friday, September 11, 2009 2:00 PM To: Ant Users List Subject: Re: Does mail task work on Eclipse on Mac OSX 10.6? /* I haven't tried Mac OS X 10.6 yet, but this is an issue also under Leopard. Built-in ant does no

Re: Does mail task work on Eclipse on Mac OSX 10.6?

2009-09-11 Thread Damjan Perenic
On Fri, Sep 11, 2009 at 9:30 AM, Chris Kimball wrote: > > > At this point, I've done the following: > > 1. Installed Eclipse 3.5.  It does have ant 1.7.1, an improvement. > > 2. Inserted the jars activation.jar (jaf-1.0.2) mail, smtp, and pop > (javamail-1.42.) as Global Entries under the Preferen

RE: Set value if directory exists

2009-09-11 Thread Rebhan, Gilbert
P.S. no = would set ${out.dir} = true but you want /local/tmp therefore the use of the value attribute should work maybe you don't have the appropriate rights on /local/tmp ? Or the other task is called earlier and the out.dir property once set to /tmp/${user.name} is immutable Regards,

RE: Set value if directory exists

2009-09-11 Thread Rebhan, Gilbert
-Original Message- From: Mikael Petterson [mailto:mikael.petter...@ericsson.com] Sent: Friday, September 11, 2009 1:22 PM To: user@ant.apache.org Subject: Set value if directory exists /* Hi, How can I set the value of out.dir to /local/tmp/ if it exists. Currently the second option w

Set value if directory exists

2009-09-11 Thread Mikael Petterson
Hi, How can I set the value of out.dir to /local/tmp/ if it exists. Currently the second option when /tmp exists set the value out.dir to /tmp/myuser I know that /local/tmp exists. //mike Mikael Petterson Software Designer Ericsson AB, Stockholm, Sweden Visitin