Getting ant to put dependent jars in ./lib

I do I get ant jar task to put the dependent jars in the directory ./lib inside the jar? Currently, ant puts those in ./.

<target name="jar" depends="compile" description="generate the distribution">
   <jar jarfile="${dist.dir}/projectx-${version}.jar" basedir="${build.dir}" />
</target>

The reason being that Amazon Hadoop EMR with MapR seems to require this.

Answers


You can use a nested zipfileset with a prefix to do this.


Need Your Help

Nikon Camera SDK non-reentrant

c++ dll thread-safety

The Nikon SDK allows for a request/response system from PC to camera through USB through the C programming language. When creating two camera objects in two seperate threads, it is not possible to ...