-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Dec 30, 2004, at 15:00, Randy Xu wrote:

In maven.xml I run a postgoal that runs a Java class (using the jelly ANT task extension) and I need to set its classpath to include all the dependencies that I specified in project.xml. Is there a maven variable I can reference that would give me the classpath to all the jar files I listed in dependencies instead of hardcoding?

maven.dependency.classpath

As in:

  <goal name="run" prereqs="java:compile">
    <ant:java classname="some.class.to.Run" fork="true">
      <ant:classpath>
        <ant:path refid="maven.dependency.classpath" />
        <ant:pathelement path="${maven.build.dest}" />
      </ant:classpath>
      <ant:arg value="an_arg" />
    </ant:java>
  </goal>

- --
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)

iD8DBQFB1G6MEJLQ3Hl395wRAhU/AKCEXBulAeQEGklIm2P3w2GAr9VYjACeJBng
LXZG8yko8jLyieAfQ0eS3Lo=
=uYxl
-----END PGP SIGNATURE-----


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



Reply via email to