I was wondering why you can't upgrade to ant 1.8.1? --- On Sat, 10/30/10, ritchie <ganesh.devaraj...@baml.com> wrote:
From: ritchie <ganesh.devaraj...@baml.com> Subject: Re: echo a property To: user@ant.apache.org Date: Saturday, October 30, 2010, 1:05 PM Dominique Devienne-2 wrote: > > On Thu, Oct 28, 2010 at 9:15 AM, ritchie <ganesh.devaraj...@baml.com> > wrote: >> I created a java class to read that property from the properties file >> and >> then passed it on to another java class which does the deployment. I am >> not >> sure whether this is a limitation in ant. > > You can call it a limitation of sort, sure. > > But there's an easy work-around. Instead of having a single property file > with > > foo.eg=1 > bar.eg=2 > baz.eg=3 > > have 3 property files foo.properties, bar.properties, etc.. containing > the un-suffixed eg (and co.) properties, and in the build file simply > <property file="${env}.properties" />. > > This is the "Ant way" (tm) of doing this that doesn't require jumping > thry any hoops. --DD > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > > The idea is to minimize the number of properties files also, that is why we have set the property for different environment in a single properties file. -- View this message in context: http://ant.1045680.n5.nabble.com/echo-a-property-tp3239198p3243621.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org