Chris wrote:
Wayne Fay wrote:
I'd like to copy all of the jar files that my app depends on to a particular
directory.

Any specific reason you're not just doing this with the dependency plugin? http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html

Wayne

Yes, several. There are a great many things that Maven can't handle that Ant does very nicely. It's all part of a larger build process for creating the final release that involves several steps that are beyond the capabilities of the assembly plugin. So yes, there is a use case for getting filesets of dependencies in Ant.

I don't mean to dis Maven -- it's a great tool -- but it has limitations.

For the curious, I figured it out. Pass in the classpath, instead of a fileset. The <copy> task in Ant 1.7 will accept a path as well as a fileset.

<copy flatten="true" toDir="${release_dir}/lib" verbose="true" >
  <path>
    <pathelement path="${compile_classpath}"/>
  </path>
</copy>


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

Reply via email to