ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: Call another build.xml from within a build.xml
Date Tue, 08 Jun 2004 14:08:07 GMT
Jan.Materne@rzf.fin-nrw.de wrote:

>Mmh - not a really 'call'. The imported things are part of your own :-)
>  
>
Yes, I was being a little cheeky...
It is the way I use ant's build.xml. I have a install.xml, that
imports build.xml, and adds an default "install" target that depends
on "main", and copies in the ant*.jar files into ANT_HOME/lib.
So in this case the "install.xml" is "calling" "build.xml".

Peter

>...
>
>But if you use <subant> you may benefit from <import>:
>
>src
>  |  master.xml : compile does a <subant target="compile"> ...
>  |  common.xml : defines targets as usual
>  |
>  +-- module1
>  |     build.xml : only does a <import file="../common.xml"/>
>  +-- moduleN
>        build.xml : only does a <import file="../common.xml"/>
>
>Works nicely :)
>
>
>Jan
>
>
>
>  
>
>>-----Original Message-----
>>From: Peter Reilly [mailto:peter.reilly@corvil.com]
>>Sent: Tuesday, June 08, 2004 3:56 PM
>>To: Ant Users List
>>Subject: Re: Call another build.xml from within a build.xml
>>
>>
>>Jan.Materne@rzf.fin-nrw.de wrote:
>>
>>    
>>
>>><ant>
>>><subant>
>>> 
>>>
>>>      
>>>
>>and <import>
>>Peter
>>
>>    
>>
>>>Jan
>>>
>>> 
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: Mikael Petterson (KI/EAB) 
>>>>        
>>>>
>[mailto:mikael.petterson@ericsson.com]
>  
>
>>>Sent: Tuesday, June 08, 2004 3:34 PM
>>>To: 'user@ant.apache.org'
>>>Subject: Call another build.xml from within a build.xml
>>>
>>>
>>>Hi,
>>>
>>>How can I call another build.xml from my build.xml?
>>>
>>>BR
>>>
>>>//Mikael
>>>
>>>---------------------------------------------------------------------
>>>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
>
>  
>


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


Mime
View raw message