ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Meakin" <geo...@isocra.com>
Subject RE: Cross Project Dependencies
Date Fri, 16 Aug 2002 16:25:46 GMT
I dont quite understand your first email, but it sounds to me like
<targets> are the way to go forward, since they were designed for
this very purpose.

If you dont want to have 20 targets because you dont want to 
rewrite <compile> tasks each time, why not shift those to
a parametisable target, and call them with different information
from each of your 20 targets. This sounds like the most sensible
way of doing it to me. 

Otherwise is there any chance you could elaborate on your
original problem?

E.g.

<target name="a" depends="b,c">
  <antcall target="compile-me">
    <param name="from" value="a"/>
  </antcall>
</target>

<target name="b" depends="e">
  <antcall target="compile-me">
    <param name="from" value="b"/>
  </antcall>
</target>

<target name="compile-me">
  <echo message="compiling ${from}"/>
  <javac ...
  etc..
  </javac>
</target>

Cheers
-Geoff


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



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


Mime
View raw message