On Fri, 2002-08-30 at 09:41, Downey, Kyle wrote:
> >> 2) Is the only way to add libraries to the build CLASSPATH to add a
> >> dependency?
> >
> >Can you explain what you're trying to do? The dependencies listed in the
> >project.xml file are available as ${maven.dependendency.classpath} which
> >is a path references. Look at the java:jar goal to see how it is used.
> >
> 
> I have a fairly complex set of build.xml files with sub-projects, etc. that
> I'm trying to avoid replacing entirely. The source package includes multiple
> directories with libraries that I'd like to be part of that
> ${maven.dependency.classpath}. If I have to put them in the repository and
> define dependencies, I will, but I was looking for a way to use the existing
> paths first.

Here's a little snippet from the antlr plugin:

You can create any path you like with ant semantics and then use the
Maven addPath tag to append that path to an existing path:

<project xmlns:maven="jelly:org.apache.maven.jelly.tags.project.MavenTagLibrary">

     <path id="maven.antlr.compile.src.set"
          location="${maven.build.dir}/antlr"/>

    <maven:addPath id="maven.compile.src.set"
                   refid="maven.antlr.compile.src.set"/>

</project>

${maven.dependency.classpath} is simply a path so the above method will
work.

> --kd
> 
> 
> ==============================================================================
> This e-mail is intended only for the use of the addressees.  Any copying, 
>forwarding, printing or other use of this e-mail by persons other than the addressees 
>is not authorized.  This e-mail may contain information that is privileged, 
>confidential and exempt from disclosure.  If you are not the intended recipient, 
>please notify us immediately by return e-mail (including the original message in your 
>reply) and then delete and discard all copies of the e-mail.  Thank you.
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to