ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nino Walker <n...@xtime.com>
Subject Runtime defined datatypes help.
Date Mon, 22 Apr 2002 16:54:03 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message