The task gets instantiated using a no-argument constructor, at parser time. This means even tasks that are never executed get instantiated. Above is from
ant manual.
I tried a sample based on the above explanation.
For each taskdef , I have a System.out.println in its constructor. The problem that I am facing is that the constructor for the task
<PrintHello3/> is not getting called(I thought this should have been called at parser time,even though its target is never executed).
It seems that
This means even tasks that are never executed get instantiated does not hold true in the above case.
What may be the problem, am I interpreting the statement incorrectly?
Regards,
Joshua