Hi Matthew,
Thanks, your post was one of the first things I found from Google, I guess the google bait worked :-)
I have tried both cases, mixed and all lower, does not seem to make a difference. (BTW, which version of Maven were/are you using?) I was also seeing the complete failure with no diagnostics. That's when I went searching and found your blog entry on the subject. After putting in the loaderref I started getting the classcast exceptions.
If you are using straight ant and don't use loaderref you get the classcast exception.
I also tried several different incantations of the project.xml dependencies having a classloader specified (even though that is supposed to be deprecated) and it did not help.
I'm sort of lost as to what to do next here.
Thanks for posting though!
TTFN,
-bd-
On Sep 11, 2004, at 2:04 AM, J. Matthew Pryor wrote:
I had a similar problem :
http://www.dynamic-control.net/2004/07/maven-and-cpptasks-google- bait.html
And I am not sure if loaderRef is case sensitive. I had success with loaderref
Matthew
-----Original Message----- From: Bill Dudney [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 5:20 AM To: [EMAIL PROTECTED] Subject: typedef & taskdef & classcast exception
Hello,
I am trying to define both a custom task and a custom type in a maven plugin.jelly file.
I have tried many different combinations of {type/task}def but have not been able to get around the ClassCastException problem.
first try;
<ant:typedef resource="types.properties" classpathref="custom.classpath"/> <ant:taskdef resource="tasks.properties" classpathref="custom.classpath"/>
second try
<ant:typedef resource="types.properties" classpathref="custom.classpath" loaderRef="foo"/> <ant:taskdef resource="tasks.properties" classpathref="custom.classpath" loaderRef="foo"/>
I also tried defining each task and type separately but same result.
Any pointers would be greatly appreciated.
TTFN,
-bd-
--------------------------------------------------------------------- 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]
