ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 58914] New: Enhance target with a new runOnce="true/[false]" attribute
Date Fri, 22 Jan 2016 18:02:44 GMT

            Bug ID: 58914
           Summary: Enhance target with a new runOnce="true/[false]"
           Product: Ant
           Version: 1.9.6
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core

Multiple calls to a target will be reduced when called via the "depends" tree
resolution, but if a target is called with antcall/runtarget, a target will be
rerun.  By creating a property and checking for it with "unless" I worked
around this, but having an internal method to control it might be useful.

<project name="test" default="task2">
    <target name="init" unless="stop">
        <echo message="init" />
        <property name="stop" value="now" />

    <target name="task1" depends="init">
        <echo message="task1" />

    <target name="task2" depends="init">
        <echo message="task2" />
        <antcall target="task1" />

This bug may be looking for similar functionality, but may also involve an
actual bug.

You are receiving this mail because:
You are the assignee for the bug.

View raw message