ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject [NEW TASK PROPOSAL] onceonly
Date Fri, 30 Apr 2004 09:19:09 GMT
For my site antlib, I am currently using a task <onceonly>
which may be usefull to have as a std ant task (or ant-contrib task).
The idea is that the task will only be run  once, even if
called multiple times (via ant, antcall, subant - indirectly
via import).

For example:

<project default="caller">
  <onceonly>
     <echo>Initializing Project</echo>
     <!-- some complicated list of initializing tasks -->
  </onceonly>

  <target name="caller">
      <echo>In call</echo>
      <antcall target="callee"/>
 </target>

 <target name="callee">
    <echo>In callee</echo>
  </target>

<project>


Peter


Mime
View raw message