> -----Original Message-----
> From: Matt Benson [mailto:gudnabr...@gmail.com]
> Sent: Tuesday, December 15, 2009 12:58 PM
> To: Ant Users List
> Subject: Re: How to copy jars of path variable to dir, excluding some
> jars?
> 
> That should work.  Have you verified that build.classpath is not
> empty?  You could run Ant in -v verbose or -d debug mode for more
> information...

Yup.  I've printed the value by doing a pathconvert on it.

If I can't get this to work, I'll just use what I got working, which is
just an "include" of "*.jar" with excludes for the things I don't want
there.  It would have been slightly cleaner to start with the
"build.classpath" list, but this will be fine.

> On Dec 15, 2009, at 2:47 PM, KARR, DAVID (ATTCINW) wrote:
> 
> > I have a path variable that I set in my build script.  I'm trying to
> > assemble a deployment unit where I have to copy all the jars
> specified
> > in that path variable into a directory, but excluding certain jars.
> >
> > I'm still trying to figure out how I copy the jars of a path var,
I'm
> > not even getting to the question of excluding some.  I thought it
> > would
> > be this:
> >
> >             <copy todir="dist/eardir/APP-INF/lib">
> >                     <path refid="build.classpath"/>
> >             </copy>
> >
> > But that didn't appear to do anything.
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> > For additional commands, e-mail: user-h...@ant.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to