ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aloizio Pereira da Silva <aloi...@dcc.ufmg.br>
Subject Re: Problem with writing a new ant task
Date Thu, 14 Aug 2003 10:55:10 GMT
> Where did you put the JAR containing the .class file?

I put the ANT_HOME/lib

When I use taskdef the new task works very well. But I defined this new
task as a standard ant task, then It is not necessary to use <taskdef>, It
is?

I copy the wrong message. The message correct is:
BUILD FAILED
> > file:M:/Aloizio/JAVADOC/NewAntTask/build.xml:19: taskdef class
> > org.apache.tools.ant.taskdefs.MessageTask cannot be found


            *****************************************************
            *         Federal University of Minas Gerais        *
            *          Department of Computer Science          *
            *         Master Degree in Computer Science         *
            *                                                   *
            *                 Aloizio Silva                     *
            *         http://www.dcc.ufmg.br/~aloizio          *
            *                                                   *
            *      Mobile Computer and Network Optimization     *
            *****************************************************                        
 

On Wed, 13 Aug 2003, Erik Hatcher wrote:

> Where did you put the JAR containing the .class file?
> 
> And the classname that the error message below was not the same as the 
> classname as the one you said you made it (org.teste??).  Are you also 
> using <taskdef>?
> 
> On Wednesday, August 13, 2003, at 04:24  PM, Aloizio Pereira da Silva 
> wrote:
> > Hi
> >
> > I wrote a new task. I put the MessageTask.class in the
> > org.apache.tools.ant.taskdefs.MessageTask and put a new line in the
> > file
> > org.apache.tools.ant.taskdefs.defaults.properties. When I run my 
> > build.xml
> > the message is showed: BUILD FAILED
> > file:M:/Aloizio/JAVADOC/NewAntTask/build.xml:19: taskdef class
> > org.teste.MessageTask cannot be found
> >
> > I want that this new task to be as a standard ant task.
> >
> > Could someone help me?
> >
> >             *****************************************************
> >             *         Federal University of Minas Gerais        *
> >             *          Department of Computer Science          *
> >             *         Master Degree in Computer Science         *
> >             *                                                   *
> >             *                 Aloizio Silva                     *
> >             *         http://www.dcc.ufmg.br/~aloizio          *
> >             *                                                   *
> >             *      Mobile Computer and Network Optimization     *
> >             *****************************************************
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


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


Mime
View raw message