Hi,

I've been trying to use <typedef> to define type at runtime, but, it seems,
I can't declare an instance of the type. The type is registered w/ the
project, but Ant's UnknownElement barfs when it tries to handle the
<srcrule> tag.

My build file looks something like this:

<project>
...
<typedef name="srcrule" classname="...SomeSrcRuleImpl">
   <classpath ... />
</typedef>

<srcrule id="my.srcrule" aproperty="value" />
...
<target>
   <mytask>
     <outputrule refId="my.srcrule" />
   </mytask>
</target>


Is there something patently wrong with this?  It's not a classpath issue, as
the type is loaded...  

Help is greatly appreciated,

Thanks,

Nino

Reply via email to