When using f.e.

<property name="prod.appserver" value="foobar"/>
<property name="prod.pwd" value="topsecret"/>
<property name="prod.db.user" value="homer"/>
<property name="prod.db.pwd" value="duff_rulez"/>
<property name="test.appserver" value="foobaz"/>
<property name="test.pwd" value="secret"/>
...

you can bundle properties that belong together, many tasks
that deal with properties have a prefix attribute, f.e.

<echoproperties prefix="prod"/>

or

<propertyset id="prodproperties">
  <propertyref prefix="prod"/>
</propertyset>

or all db related stuff for production

<propertyset id="db_prod">
  <propertyref prefix="prod.db"/>
</propertyset>


Regards, Gilbert

-----Original Message-----
From: Burgess, Benjamin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2008 4:31 PM
To: Ant Users List
Subject: RE: doubt in property

The property names are not significant.

Think of location as properties stored as java.io.File objects and value
as properties stored as java.lang.String objects; locations of
files/directories vs a string of text.

Ben

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2008 10:22 AM
To: [email protected]
Subject: doubt in property

Hi All,

 

I was trying to analyze following two lines.

 

<property name="catcs_log.file"
location="${log.dir}/db_catcs.log"/>

<property name="rules"                       value="prs_db.rules"/>

 

Following are my doubts

 

1: is it necessary to write .file in the property name in the first
line??

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

Reply via email to