This allows Script tasks to work in most cases- and any other task that requires Task in the tree. It is the current behavior - but I think it is not the best solution. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273618 13f79535-47bb-0310-9956-ffa450edef68master