ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: doubt in property
Date Wed, 04 Jun 2008 14:43:28 GMT
 
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:BBurgess@tiaa-cref.org] 
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: Irfan.Sayed@t-systems.com [mailto:Irfan.Sayed@t-systems.com] 
Sent: Wednesday, June 04, 2008 10:22 AM
To: user@ant.apache.org
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message