Alex Boisvert <[email protected]> writes:
> On Fri, Oct 15, 2010 at 11:01 AM, Chris Dean <[email protected]> wrote:
>> I'd like to make up a distribution tar file that includes my projects
>> jar file, configuration files, and a shell scripts.  
>
> Here's a rough example,

Works great, thanks!

Here's my code for those interested.

  package(:tgz, :id => "#{name}-dist").path("#{name}-#{project.version}").tap 
do |distro|
    distro.include ["README"]
    distro.include _("doc")
    distro.include _("bin")
    distro.path("config").include _("src/main/config"), :as => "."

    # libraries
    distro.path("lib").include artifacts(compile.dependencies)
    distro.path("lib").include package(:jar)
  end

Cheers,
Chris Dean

Reply via email to