ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: Task.getOwningTarget()
Date Wed, 10 Nov 2004 11:52:08 GMT
Peter Reilly wrote:

> Good catch,
> the javadoc is out of date.

However, there are cases that null can be returned:
    <script language="beanshell">
      hello = project.createTask("echo");
      System.out.println("hello's owner is " + hello.getOwningTarget());
    </script>

Peter

> Peter
> Darin Swanson wrote:
>
>> Tasks that are top level tasks (in the "implicit" target) are 
>> returning the implicit target for Task.getOwningTarget()
>>
>> This appears to clash with the javadoc for set/getOwningTarget.
>>
>> Can the owning target be null or the implicit target or is the 
>> javadoc out of date (null cannot be returned)?
>>
>> Thanks
>> Darins
>>  
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message