You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by chuanjiang lo <lo...@gmail.com> on 2006/05/05 17:16:19 UTC
Check null attributes in custom task
Hi all,
I have written an ant custom task..
something like..
<MyCustomTask>
<NestedTask value="">
<NestedNestedTask value=""/>
.....
</NestedTask>
</MyCustomTask>
What is the usual practice for checking if NestedTask and NestedNestedTask
value is not null.
Do i do it in the execute method of MyCustomTask and loop through the
vectorsand get the NestedTask object out and check the value?
Or is there a faster way to implement this?
Appreciate any inputs