-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mar 9, 2005, at 09:41, Martin Heitz wrote:
Here is a short example which copies dependencies to a certain path. You
need to modify it for your purpose.
It works, as soon as the dependency is located in the local repository. <j:forEach var="a" items="${pom.getArtifacts()}"> <ant:copy file='${a.getPath()}' todir='${maven.dist.bin.assembly.dir}/lib' /> </j:forEach>
That copies *all* dependencies, right? Not just the specific one I'm looking for?
Hmm. Actually, I can probably use this, based on the assumption (or is it always a fact?) that there will be only one dependent jar whose name matches the pattern "${artifactId}-*.jar" (or some version of that). Ant's unjar task lets you specify the jar by fileset, which lets you use patterns....
Let me run with this and see what happens. I'll post back with the results.
Best regards from (today grey) Black Forrest,
And mine from overcast and slightly chilly Kansas. :-)
- -- Craig S. Cottingham [EMAIL PROTECTED] OpenPGP key available from: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7977F79C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCLxy8EJLQ3Hl395wRAvDQAJ0eLOHHY9Jx7eJdQOGYzM651GKGvQCgsElq CIAQnSECdXwiiect4T23a+U= =3fQD -----END PGP SIGNATURE-----
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
