just do:
<property name="prop1" value="xxx"/>
<property file="${prop1}.properties"/>
with a set of properties files ...
And with Ant 1.6 you can do also an
<import file="${prop1}-definitions.xml"/>
Jan
> -----Original Message-----
> From: Marcin Gurbisz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26, 2004 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: setting property back to calling project
>
>
> Lets consider situation below. I have to ant files:
>
> common.xml:
> <project>
> <target name="target2">
> //set some properties based on "prop1" property from target1
> </target>
> </project>
>
> module1.xml:
> <!DOCTYPE project [
> <!
> ENTITY common SYSTEM 'common.xml'>
> ]>
> <project>
> &common;
> <target name="target1">
> <property name="prop1" value="xxx"/>
> //??? <antcallext target="target2" inheritrefs="true"
> inheritall="true"/>
> //I want to use properties set by target2 form common.xml
> </target>
> </project>
>
> What is the best way to archive this goal?
> I've created own task based on antcall which set back properties from
> new project to calling project. It's correct solution?
> Maybe I should avoid such situation at all?
>
> Thank you for all your help.
> Marcin**
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>