ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
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">
     <echo>Initializing Project</echo>
     <!-- some complicated list of initializing tasks -->

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

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



View raw message