Thank you very much Shawn! :) It's working now. Much appreciated.
A side question though: The custom Ant task that I am calling references some configuration files within its .jar as: URL configFileUrl = this.getClass().getClassLoader().getResource(configFileName); However, when I ran the task from Maven, it's saying that it cannot find the configuration file (FileNotFoundException: The specified path is invalid). Is this the proper way to try to load a configuration file in an Ant task? Thank you very much again. --- "Dahlen Jr, Shawn M" <[EMAIL PROTECTED]> wrote: > Add the classpathref attribute to the taskdef tag > using > maven.dependency.classpath value. > > <ant:taskdef > classpathref="maven.dependency.classpath" ... > > Shawn Dahlen > > -----Original Message----- > From: Konrad [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 07, 2003 3:21 PM > To: maven > Subject: ClassNotFoundException - using custom Ant > task from Maven? > > > Hello. > > I'm trying to run a custom Ant ask from > Maven1.0-beta10 and I keep getting a > ClassNotFoundException. Here is my maven.xml and > project.xml: > > maven.xml > --------- > <project xmlns:ant="jelly:ant"> > > <goal name="convert"> > > <ant:taskdef > name="convert" > classname="convert.Convert"/> > > <ant:convert destDir="${basedir}/src/webapp"> > <fileset dir="${basedir}/src/html"> > <include name="**/*.htm*"/> > </fileset> > </ant:convert> > </goal> > </project> > > > project.xml > ----------- > <project> > ... > <dependencies> > > <dependency> > <id>convert</id> > <version>1.0</version> > </dependency> > > </dependencies> > ... > </project> > > > > When I moved the convert-1.0.jar to MAVEN_HOME/lib > and > include a reference to it in > MAVEN_HOME/bin/forehead.conf, then it runs... :| > > Do I need to create a new plugin for my Ant task? > > Any advice would be greatly appreciated. > > Thank you. > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product > search > http://shopping.yahoo.com > > --------------------------------------------------------------------- > 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] > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
