Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Simple ANT Question

Simple ANT Question
Thread Tools
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Mar 28, 2003, 05:30 PM
 
I have one main ANT script and I need it to call other ANT scripts that are located in different directories. Can anyone indicate what is the ANT task that allows for running other ANT scripts?

I don't want to use a unix shell script as the master, since would like to keep everything in ANT for portability purposes.

Thanks!
(Last edited by DaGuy; Mar 29, 2003 at 12:15 AM. )
     
Junior Member
Join Date: Mar 2001
Status: Offline
Reply With Quote
Mar 28, 2003, 10:29 PM
 
You can use antcall to build additional targets from within a master ant file. Just be sure to define the additional targets appropriately. Is this what you were asking? Anyway, this is what I've used in the past in order to process external ant xml files. I was using Ant 1.4.1. Ant 1.5.x may have a better mechanism. It's been a little while since I've used Ant.
(Last edited by mmj_ngen; Mar 28, 2003 at 10:46 PM. )
     
DaGuy  (op)
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Mar 29, 2003, 12:27 AM
 
Thanks. Your tip led me to look in some other places and eventually found what I was looking for. The task is actually called "ant". Below is an example.

<ant antfile="subproject/subbuild.xml" dir="subproject" target="compile"/>
     
Junior Member
Join Date: Mar 2001
Status: Offline
Reply With Quote
Mar 29, 2003, 11:41 AM
 
That's good to know for the next time I use Ant. We had a a large trail of targets calling subtargets using antcall. What you found is a little more straight forward.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:17 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2