ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject [myrmidon] Depends as a task
Date Fri, 24 May 2002 06:33:49 GMT
Hi,

I finally got around to making it possible to evaluate dependencies inside a 
target. So now all the following are equivelent

  <target name="x" depends="a,b,c">
  </target>
  
  <target name="x" depends="a">
    <depends target="b"/>
    <depends target="c"/>
  </target>
  
  <target name="x">
    <depends target="a"/>
    <depends target="b"/>
    <depends target="c"/>
  </target>
  
The advantage of this is that it allows you to declare dependencies in between 
other tasks like
  <target name="x">
    <log message="Before depends evaluated!"/>
    <depends target="c"/>
    <log message="After depends evaluated!"/>
  </target>

-- 
Cheers,

Peter Donald


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


Mime
View raw message