From 5f3618a03d98590cb325f1f2689d227a75e9b504 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Wed, 8 Mar 2006 12:45:05 +0000 Subject: [PATCH] commentary on bindToOwner git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@384203 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/Task.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/org/apache/tools/ant/Task.java b/src/main/org/apache/tools/ant/Task.java index b6c4500ff..cfa15e365 100644 --- a/src/main/org/apache/tools/ant/Task.java +++ b/src/main/org/apache/tools/ant/Task.java @@ -484,7 +484,13 @@ public abstract class Task extends ProjectComponent { * Bind a task to another; use this when configuring a newly created * task to do work on behalf of another. * Project, OwningTarget, TaskName, Location and Description are all copied + * + * Important: this method does not call {@link Task#init()}. + * If you are creating a task to delegate work to, call {@link Task#init()} + * to initialize it. + * * @param owner owning target + * @since Ant1.7 */ public final void bindToOwner(Task owner) { setProject(owner.getProject());