Thanks. The problem was the ant.jar was not updated. Now It is working.
***************************************************** * 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 Thu, 14 Aug 2003 [EMAIL PROTECTED] wrote: > There are several "defaults.properties". > Have you modified the right one? > %ant_home%\src\main\org\apache\tools\ant\taskdefs\defaults.properties > > > Jan > > > -----Original Message----- > > From: Aloizio Pereira da Silva [mailto:[EMAIL PROTECTED] > > Sent: Thursday, August 14, 2003 12:55 PM > > To: Ant Users List > > Subject: Re: Problem with writing a new ant task > > > > > > > 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: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]