You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dave Ford <df...@smart-soft.com> on 2003/07/14 17:55:54 UTC

Can't load ResourceStream from AntTask

I'm writing a plug-in for the kodo jdo product. It uses the Kodo Enhancer
which is an Ant task. The enhancer, in turn, attempts to load a file
(kodo.properties) as a resource from <classpath>/kodo.properties. I keep
getting a Can't load ResourceStream error, which, I believe in a Kodo error
message not a maven error message. But, nonetheless, I can't figure out why
it can't find the kodo.properties, located at:
C:\daven\target\classes\kodo.properties. Here is my plug-in:

<project xmlns:j="jelly:core" xmlns:a="jelly:ant">
    <goal name="kodo">
        <a:taskdef
            name="enhance"

classname="com.solarmetric.modules.integration.ant.JDOEnhancerTask"
            classpathref="maven.dependency.classpath"/>
        <echo>${maven.build.dest}</echo>
        <echo>${maven.dependency.classpath}</echo>
        <a:enhance>
            <a:fileset dir=".">
                <a:include name="**/*.jdo"/>
            </a:fileset>
            <a:classpath>
                <a:path refid="maven.dependency.classpath"/>
                <a:pathelement path="${maven.build.dest}"/>
            </a:classpath>
        </a:enhance>
        <a:echo>It worked!</a:echo>
    </goal>
</project>

When I comment out the enhance element, it works fine. Otherwise, it
complains that it can't find kodo.properties. I'm thinking it might be a
classloader issue? Any suggestions?

Thanks

Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org