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

Stepping into .Net framework4.6 source VS 2013

c# debugging visual-studio-2013 pdb-files .net-4.6

I am trying to step into the .Net source code. I have followed the instruction here, the "Microsoft symbol server" is unchecked and I have specified the symbol cache directory. In the module window...

filter string from live (updating) log file using windows powershell

windows powershell logging filter monitor

I have a computer that is logging events from a device on a serial port. Putty is logging them to a file.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.