ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Runtime defined datatypes help.
Date Mon, 22 Apr 2002 23:46:24 GMT

----- Original Message -----
From: "Nino Walker" <nino@xtime.com>
To: <ant-user@jakarta.apache.org>
Sent: Monday, April 22, 2002 9:54 AM
Subject: Runtime defined datatypes help.


> 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...

try using it inside a target, rather than outside...I think you need to be
running ant1.5 to use a new datatype outside a target


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


Mime
View raw message