ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58914] New: Enhance target with a new runOnce="true/[false]" attribute
Date Fri, 22 Jan 2016 18:02:44 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58914

            Bug ID: 58914
           Summary: Enhance target with a new runOnce="true/[false]"
                    attribute
           Product: Ant
           Version: 1.9.6
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
          Assignee: notifications@ant.apache.org
          Reporter: robert.flaherty@oracle.com

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>

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

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

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

https://bz.apache.org/bugzilla/show_bug.cgi?id=58886

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

Mime
View raw message