On 1/29/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> You could load different property files according to a base property
> <property file="${user.name}.properties"/>
>
> And with AntContrib you could copy contents
> <property name="text.en" value="Hello World"/>
> <property name="text.de" value="Hallo Welt"/>
> <property name="language" value="en"/>
> <antcontrib:propertycopy name="text" from="text.${language}"/>
> <echo>${text} = Hello World</echo>
>
> see also http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
>
>
> Jan
Thanks Jan,
But initially, I was looking for how to manipulate the string like -
pushing "." in between value of the property using ant.
Regards,
Ravi
>
> > -----Ursprüngliche Nachricht-----
> > Von: Ravi Roy [mailto:[EMAIL PROTECTED]
> > Gesendet: Dienstag, 29. Januar 2008 09:53
> > An: [email protected]
> > Betreff: How to set a new property based on value of another
> > property in Ant ?
> >
> > Hi All,
> >
> > I want to set a property based on a value of the other property in my
> > build script :
> >
> > Already defined property in a build file :
> >
> > <property foo.1="prop.1" value="xx" />
> >
> > Want to set another property based on the value of this property like.
> >
> > <property foo.2="prop2. value="x.x" />
> >
> > Which means addding "." character after first character in the value
> > of foo.1 property.
> >
> > Is it possible in ant ?
> >
> > Thanks for pointers.
> >
> > Regards,
> > Ravi.
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]