DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40643>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40643

           Summary: Allow dependency injection on child tasks
           Product: Ant
           Version: 1.7.0Beta2
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


Add the following method to the Task class, with no-op default behavior:

    /**
     *  Allows parent tasks to inject dependencies into their children.
     *  This method is typically called by the parent in <code>addTask()
     *  </code>. Children may accept or reject the dependency, and do
     *  not have to notify the parent.
     *
     *  @param  parent  Identifies the parent task.
     *  @param  data    Arbitrary dependency data. The child must know
     *                  how to process this data. May be <code>null</code>.
     */
    public void injectDependency(Task parent, Object data)

The implementation on UnknownElement would queue all (parent,data) tuples, then
play those back to the actual child in configure()

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to