Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 74732 invoked from network); 19 Aug 2010 16:32:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 16:32:54 -0000 Received: (qmail 33618 invoked by uid 500); 19 Aug 2010 16:32:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 33569 invoked by uid 500); 19 Aug 2010 16:32:52 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 33561 invoked by uid 99); 19 Aug 2010 16:32:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 16:32:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jak-ant-user@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 16:32:44 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Om82R-00007G-V5 for user@ant.apache.org; Thu, 19 Aug 2010 18:32:23 +0200 Received: from mtec-hg-docking-1-dhcp-23.ethz.ch ([129.132.133.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Aug 2010 18:32:23 +0200 Received: from roederja by mtec-hg-docking-1-dhcp-23.ethz.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Aug 2010 18:32:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@ant.apache.org From: =?UTF-8?B?SmFubiBSw7ZkZXI=?= Subject: Re: Error in documentation (zipfileset, single argument resource collection) Date: Thu, 19 Aug 2010 18:32:14 +0200 Lines: 87 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: mtec-hg-docking-1-dhcp-23.ethz.ch User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: X-Virus-Checked: Checked by ClamAV on apache.org Well you can use the usual includes excludes parameters in . One problem though is, that if you include files with a common directory in their path such as org/github and org/postgresql only one of them will end up in the jar file unless you specify duplicate="preserve" in the task. Jann Am 19.08.10 17:58, schrieb Peter Reilly: > Brilliant! > > That does exactly what I want. > > Only issue is that I cannot see how to > exclude classes/resources from the jars. > > However, that does not affect my build file. > > Peter > > On Thu, Aug 19, 2010 at 4:38 PM, Jann Röder wrote: >> I discovered that one can also use >> >> Am 19.08.10 17:10, schrieb Peter Reilly: >>> Yes, tis is a known problem with the manual. >>> >>> Stefan Bodewig came up then the correct expression: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> The manual will be updated.. >>> Peter >>> >>> On Thu, Aug 19, 2010 at 3:29 PM, Jann Röder wrote: >>>> Hi, >>>> I think I might have found an error in the documentation. On the page >>>> about the jar task (http://ant.apache.org/manual/Tasks/jar.html) it says: >>>> >>>> [quote] >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> value="com.acme.checksites.Main"/> >>>> >>>> >>>> >>>> Creates an executable jar file with a main class >>>> "com.acme.checksites.Main", and embeds all the classes from all the jars >>>> in lib/main. >>>> [/quote] >>>> >>>> However if I do that, I get this error: >>>> "only single argument resource collections are supported as archives" >>>> >>>> My experiments have shown that this means that one may only use filesets >>>> that contain exactly one file. Is this a mistake in the documentation or >>>> stupidity on my part? >>>> >>>> Thanks, >>>> Jann >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>>> For additional commands, e-mail: user-help@ant.apache.org >>>> >>>> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org