Thanks Both solutions work.
2009/4/10 Alex Boisvert <[email protected]> > Try, > > package(:jar, :file => _("target/xyz.jar")).include > "properties/xyz.properties" > > or the more readable, > > package(:jar, :file => _("target/xyz.jar")).tap do |jar| > jar.include "properties/xyz.properties" > # other includes > end > > alex > > On Fri, Apr 10, 2009 at 3:56 AM, Sakari Isoniemi > <[email protected]>wrote: > > > How to omit version number from from .jar file in packaging with other > > definitions like 'include' ? > > > > The following won't work > > > > package :jar, :file=>_('target/xyz.jar'), > > include('properties/xyz.properties') > > > > So how include must be defined when .jar filename is spesified explicitly > > ? > > >
