This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes property file: value of one property needs to be dependant on the value of another property. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "property file: value of one property needs to be dependant on the value of another property." Watch "property file: value of one property needs to be dependant on the value of another property." New topic
Author

property file: value of one property needs to be dependant on the value of another property.

peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 314
I have a property file used by my ant process.
It needs concatenated to the beginning or end of another property.


The simplest example is shell scripting:
unitTestPath=/home/me/xxx/lib
PATH=${unitTestPath}:$PATH

can properties do something like this? I am not finding it in the anything on the web


CIAO Peter M. Cooke
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

Yes they can, and I think you are pretty close on the syntax as well.
peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 314
Yep the syntax worked.

in the property file
prop1=foo
prop2=bar
prop3=baz
prop4=${prop1},${prop2},${prop4}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: property file: value of one property needs to be dependant on the value of another property.
 
Similar Threads
How to implement workflow in Struts
Read contextPath during initialization
storing file path in weblogic 8.1
how to pass bundle full path to ResourceBundle ?
Writting to a local file