ant -propertyfile <name>   load all properties from file with -D properties
taking precedence#example test.properties file
phone="978-400-7544"
age=53
firstname="Martin"
in build.xml reference with file= from <property><project
default="test-propertyfile"> <target name="test-propertyfile">
<property file="test.properties"/>      <echo>${firstname}</echo>
<echo>${phone}</echo>      <echo>${age}</echo>
</target></project>HTHMartin
----- Original Message -----
From: "Z W" <[EMAIL PROTECTED]>
To: "Ant Users List" <user@ant.apache.org>
Sent: Friday, March 14, 2008 11:23 PM
Subject: Re: Picking up files from 2 separate directories with Ant ?


> Chun
> To open 2 existing files to read their values.
>
> On Fri, Mar 14, 2008 at 6:38 PM, Chun Ji <[EMAIL PROTECTED]> wrote:
>
> >
> > What exactly you want to do ? Create 2 new files or open some existing
> > files to do some extra things ?
> >
> >
> > -c
> >
> > -----Original Message-----
> > From: Z W [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 14, 2008 11:39 AM
> > To: Ant Users List
> > Subject: Picking up files from 2 separate directories with Ant ?
> >
> >
> > Hi
> >
> > Could someone show us how one could open 2 files, each in a different
> > directory.
> > I like to be able to access the latest 2 subdirectories in a Windows
> > network folder.
> > Eg
> > x.txt in \\filer\a\032120081135 <file://filer/a/032120081135>   <-----
> > created on 03/21/2008 at 11:35
> > y.txt in \\filer\a\032020081100 <file://filer/a/032020081100>   <-----
> > created on 03/20/2008 at 11:00
> >
> > Is there an ant task that would be suitable for this ?
> > If this isn's possible, could cygwin do the job ? How would one do that
?
> >
> > Ultimately I like to read a few values from each of the files.
> > Each file has the structure
> > 3
> > 4
> >
> > Thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to