From users-return-3699-apmail-buildr-users-archive=buildr.apache.org@buildr.apache.org Mon Apr 15 10:50:03 2013 Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B36DAFF3B for ; Mon, 15 Apr 2013 10:50:03 +0000 (UTC) Received: (qmail 27297 invoked by uid 500); 15 Apr 2013 10:50:03 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 27206 invoked by uid 500); 15 Apr 2013 10:50:03 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 27183 invoked by uid 99); 15 Apr 2013 10:50:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 10:50:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hoogland@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-ob0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 10:49:58 +0000 Received: by mail-ob0-f173.google.com with SMTP id wn14so3924233obc.4 for ; Mon, 15 Apr 2013 03:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Vr9sklRGazz6WSh5ibXamHycmsRrwLQBdUOkOVGW79Q=; b=EU+atc8xf6Grp6v8gDRXX2MVnz92XUWU6TqSBsv3w/U66Hsylo0kzZ/9wf85Y4r1yK ZAAMvQ1m11E2/9qJyt+uF8kdt123JOPvF/K/rwfokDCIVUYhI6LbgZM3BZmOKQWatIky 3HUs5sNGVwOz7j030OzgiEf92sj5Q6OMxsI6D86ZAd5IWKRdq9jYQECsya1OK5OCSXpE 3VOqjMN/kEhAi61O0CX67h3pk9fbjk1Mc64yq7dIM1IP/d04+w/d34VvRRVGIxmx6RVH H5ish61BDIi+eVmIMyote1RHOo+OKtXd+KLomi3YTnRZkQg66GPknIywglf3/mTt3c21 mLnQ== MIME-Version: 1.0 X-Received: by 10.182.64.74 with SMTP id m10mr3244543obs.61.1366022977846; Mon, 15 Apr 2013 03:49:37 -0700 (PDT) Received: by 10.182.104.106 with HTTP; Mon, 15 Apr 2013 03:49:37 -0700 (PDT) Received: by 10.182.104.106 with HTTP; Mon, 15 Apr 2013 03:49:37 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Apr 2013 18:49:37 +0800 Message-ID: Subject: Re: stand-alone jar From: Jason Hoogland To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=14dae93b5e365989db04da640295 X-Virus-Checked: Checked by ClamAV on apache.org --14dae93b5e365989db04da640295 Content-Type: text/plain; charset=ISO-8859-1 Sorry, and any ideas on dealing with manifest.mf overwrite? On Apr 15, 2013 6:27 PM, "Peter Donald" wrote: > On Mon, Apr 15, 2013 at 6:41 PM, Jason Hoogland > wrote: > > > Peter, > > > > Going back to your original suggestion (the second option) e.g. > > https://github.com/realityforge/spydle/blob/master/buildfile#L19, how > > would > > you merge the contents of a local jar file? > > > > Add a line such as > > jar.merge('../some/local/library.jar') > > > > > > hoogs > > > > > > On Sun, Apr 14, 2013 at 9:58 AM, Peter Donald > >wrote: > > > > > On Sun, Apr 14, 2013 at 12:19 AM, Jason Hoogland > > > wrote: > > > > > > > I'm trying to do what my old ant build.xml does, namely: > > > > 1. compile my src code into classes > > > > 2. packages them into a jar > > > > 3. adds the dependency jars to this jar > > > > 4. includes "Main-Class" and "Class-Path" attributes to > > > > META-INF/MANIFEST.MF, the latter properly formatted, e.g.: > > > > > > > > > > I am not sure I exactly follow. Do you want to include the jars as > nested > > > jars or just include the files form the jar in the final jar? > > > > > > I usually attempt the second option and use code that looks similar to > > > > > > https://github.com/realityforge/spydle/blob/master/buildfile#L19 > > > > > > to achieve this goal. > > > > > > HTH (And sorry if I am missing what you are trying to do), > > > > > > Peter Donald > > > > > > > > > -- > Cheers, > > Peter Donald > --14dae93b5e365989db04da640295--