Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: taskdef question - only usable at project level?

Peter Reilly

2008-03-11

Replies: Find Java Web Hosting

Author LoginPost Reply
Most likely the typedef has been called from an <ant> or an <antcall>.

peter


On Tue, Mar 11, 2008 at 5:01 PM, Matt Benson <gudnabrsam@(protected):
>
> --- "Scot P. Floess" <floess@(protected):
>
> > I'd like to call <taskdef> either in a <target> or a
> > <macrodef>.
> > However, when doing so it seems as if the call is
> > ignored or forgotten
> > afterward:
>
> That shouldn't be the case. If you can create a small
> and reproducible example, pop it into Bugzilla.
>
> Regards,
> Matt
>
>
>
> >
> > Either:
> >
> > <target name = "ensure-installed">
> >         <taskdef resource =
> > "net/sf/antcontrib/antlib.xml" uri =
> > "http://ant-contrib.sourceforge.net" description =
> > "Needed to use
> > ant-contrib.">
> >           <classpath>
> >              <pathelement location =
> >
> "/local/sfloess/test/lib/ant-contrib/ant-contrib-1.0b3.jar"/>
> >           </classpath>
> >         </taskdef>
> > </target>
> >
> > Or
> >
> > <macrodef name = "ensure-installed">
> >   <sequential>
> >         <taskdef resource =
> > "net/sf/antcontrib/antlib.xml" uri =
> > "http://ant-contrib.sourceforge.net" description =
> > "Needed to use
> > ant-contrib.">
> >           <classpath>
> >              <pathelement location =
> >
> "/local/sfloess/test/lib/ant-contrib/ant-contrib-1.0b3.jar"/>
> >           </classpath>
> >         </taskdef>
> >   </sequential>
> > </macrodef>
> >
> > I am running JDK 1.6 and ant 1.7.1
> >
> > I didn't readily see anything stating this can't be
> > done... Of course,
> > I didn't spend too much time investigating...
> >
> > --
> > Scot P. Floess
> > 27 Lake Royale
> > Louisburg, NC 27549
> >
> > 252-478-8087 (Home)
> > 919-754-4592 (Work)
> >
> > Chief Architect JPlate
> > http://sourceforge.net/projects/jplate
> > Chief Architect JavaPIM
> > http://sourceforge.net/projects/javapim
> >
> > Architect Keros
> > http://sourceforge.net/projects/keros
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@(protected)
> > For additional commands, e-mail:
> > user-help@(protected)
> >
> >
>
>
>
>
>     ____________________________________________________________________________________
> Never miss a thing. Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.