ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <>
Subject RE: Using wildcards in the classpath
Date Tue, 03 Oct 2000 01:02:26 GMT


Patterns in the classpath attribute don't get expanded.  You should use a
nested file set instead:

<javac srcdir="..." destdir="...">
		<fileset dir="${libdir}"/>

This'll pull everything under ${libdir} into the classpath.  You might want
to qualify this with an includes or excludes attribute on the <fileset>
element if there's non-jar/zip files in there.

You'll need to be using ant 1.2 to do this.  Grab one of the nightly builds
if you're using something older


> -----Original Message-----
> From: johnc [mailto:johnc]On Behalf Of John Cleary
> Sent: Tuesday, 3 October 2000 9:31 AM
> To:
> Subject: Using wildcards in the classpath
> Hi people,
> I'm writing my first build script and I'm starting to get frustrated
> (mainly because of my own stupidity).
> Is this a valid build.xml snippet?
> <javac srcdir="${srcDir}" destdir="${buildDir}" target="1.2"
> classpath="${libDir}/**">
> It doesn't seem to expand out the classpath...
> Any ideas?
> John.

Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.

View raw message