Is the resource in / of the plugin or /plugin-resources? The latter is where you
pointed.

I would simplify this to:
<ant:taskdef name="mystyle" classname="org.apache.tools.ant.taskdefs.XSLTProcess">
  <ant:classpath>
    <ant:pathelement path="${plugin.resources}"/>
    <ant:path refid="maven.dependency.classpath"/>
  </ant:classpath>
</ant:taskdef>

Is everything working except the picking up of the resource from this point?
I've had style be stubborn before regardless of this.

- Brett

Quoting Arnaud Heritier <[EMAIL PROTECTED]>:

> I tried to do it but without success.
> 
> I created a path where I added the ${plugin.resources} and I used it in the
> style task as a reference but it doesn't work.
> 
> I also tried to create a new task with the customized path:
> 
> <ant:path id="plugin">
>   <ant:pathelement location="${plugin.resources}"/>
> </ant:path>
> <maven:addPath id="maven.dependency.classpath" refid="plugin"/>
> <ant:taskdef name="mystyle"
> classname="org.apache.tools.ant.taskdefs.XSLTProcess">
>       <ant:classpath>
>         <ant:path refid="maven.dependency.classpath"/>
>       </ant:classpath>
> </ant:taskdef>
> 
> I don't know if it can be a problem with maven classloaders or there's a bug
> in the ant style task or in xalan.
> 
> For the moment I abandon.
> 
> Thanks for your idea Brett.
> 
> Cheers,
> 
> Arnaud.
> 
> 
> > -----Message d'origine-----
> > De : Brett Porter [mailto:[EMAIL PROTECTED]
> > Envoy� : lundi 14 juin 2004 14:17
> > � : Maven Users List
> > Objet : Re: How to add a resource in a plugin classloader
> > 
> > I think you need to pass the classpath/classpathref element to the style
> > task. Build the classpath using standard <ant:path /> tags.
> > 
> > - Brett
> > 
> > Arnaud HERITIER wrote:
> > 
> > >Hello,
> > >
> > >
> > >
> > >I have a little problem.
> > >
> > >I want to use the ant style task to transform some xml files.
> > >
> > >My xslt file uses a resource bundle to create some labels.
> > >
> > >
> > >
> > >My resource bundle is stored in a properties file.
> > >
> > >
> > >
> > >I tried to add this file in plugin's root directory but the bundle isn't
> > >found.
> > >
> > >
> > >
> > >How can I add something in the classloader used by ant tasks ???
> > >
> > >
> > >
> > ><maven:addPath id="something" ./> ????
> > >
> > >
> > >
> > >
> > >
> > >Arnaud
> > >
> > >
> > >
> > >
> > >
> > >
> > 
> > 
> > ---------------------------------------------------------------------
> > 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]

Reply via email to