ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Mawson <jeremy.maw...@qsipayments.com>
Subject Including other antfiles
Date Thu, 01 Jan 1970 00:00:00 GMT
In my original MAKE project I have the following pattern:

   INCBUILDMAKEFILES = X Y Z
   include $(INCBUILDMAKEFILES)

   TargetA: TargetX.A TargetZ.B
   
Where the dependencies of TargetA do not exist in the same make file, but
in one of the included files.

One way I might translate this to Ant is:

   <target name="TargetA">
      <ant antfile="X"
           dir=" ... "
           target="TargetX.B" />
          
      <ant antfile="Z"
           dir=" ... "
           target="TargetZ.B" />

      ...

   </target>
   
My questions:

Is this the best way?
Is this the only way?
Am I missing something obvious?
Is there some way to call an "include" to include the targets of another
ant file?

Jem

========================================= 
Jeremy Mawson
E-Commerce Consultant
QSI Payments, Inc
Phone  (07) +617 3224 9886
Fax    (07) +617 3210 2566
Email  Jeremy.Mawson@qsipayments.com
URL    http://www.qsipayments.com/ 

This message or any part of it is intended solely for the named addressee
and contains privileged and confidential information.  If you receive this
message in error please notify QSI Payments, Inc by replying to the sender
and removing the message from your computer. 


Mime
View raw message