ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <dan...@germane-software.com>
Subject Re: setting property back to calling project
Date Thu, 26 Feb 2004 16:07:47 GMT
Also look at AntFetch and AntCallBack in ant-contrib 
(http://ant-contrib.sourceforge.net). These are modifications of <ant> 
and <antcall> that return properties.

Dale


Jan.Materne@rzf.fin-nrw.de wrote:
> Maybe these will be on interest
>   
> Need help for ["AntCall" cannot return properties]
> http://marc.theaimsgroup.com/?l=ant-user&m=106755464315178&w=2
>   
> How to return values from targets?
> http://marc.theaimsgroup.com/?l=ant-user&m=105834290311380&w=2
> 
> 
> 
> Jan
> 
> 
> 
> 
>>-----Original Message-----
>>From: Marcin Gurbisz [mailto:Marcin.Gurbisz@pentacomp.com.pl]
>>Sent: Thursday, February 26, 2004 1:27 PM
>>To: Ant Users List
>>Subject: Re: setting property back to calling project
>>
>>
>>My target2 have some logic. For example make conditional settings.
>>
>>Jan.Materne@rzf.fin-nrw.de wrote:
>>
>>
>>>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:Marcin.Gurbisz@pentacomp.com.pl]
>>>>Sent: Thursday, February 26, 2004 12:57 PM
>>>>To: user@ant.apache.org
>>>>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: user-unsubscribe@ant.apache.org
>>>>For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>>   
>>>>
>>>
>>> 
>>>
>>
>>-- 
>>___________________________________
>>Marcin Gurbisz
>>Programista
>>PentaComp Systemy Informatyczne Sp. z o.o.
>>tel. (22) 639 32 32 do 35, fax (22) 639 32 31
>>tel.kom. 0 606 818 300
>>*www.pentacomp.pl* <http://www.pentacomp.pl/> 
> 
> <http://www.pentacomp.pl/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message