Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 18582 invoked from network); 22 Oct 2008 07:52:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2008 07:52:23 -0000 Received: (qmail 49224 invoked by uid 500); 22 Oct 2008 07:52:22 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 49182 invoked by uid 500); 22 Oct 2008 07:52:22 -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 49171 invoked by uid 99); 22 Oct 2008 07:52:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 00:52:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.24.128.233] (HELO smtp.talktalk.net) (62.24.128.233) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 07:51:12 +0000 X-Path: TTSMTP X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoABAMB4/khUDSwY/2dsb2JhbAAIxh2DUA Received: from host-84-13-44-24.opaltelecom.net.44.13.84.in-addr.arpa (HELO [192.168.1.65]) ([84.13.44.24]) by smtp.talktalk.net with ESMTP; 22 Oct 2008 08:50:46 +0100 Message-ID: <48FEDB7A.8090308@talktalk.net> Date: Wed, 22 Oct 2008 08:51:22 +0100 From: Mark Salter User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Ant Users List Subject: Re: Help with war file References: <48F9081F.4070601@schillbaer.de> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Rez wrote: > I'm not sure if it's possible any other way to pack a folder and all > of its subfolders and files into a war file, preserving their path > and folder structure, other than using the "prefix" attribute of the > zipfileset task. I would like my war file (testproject.war) to have > folderx & all its files at its root, so currently I'm using > > Can you use the war task instead:- http://ant.apache.org/manual/CoreTasks/war.html > > But it's creating a problem when the files are deployed under jboss > and my url looks like something like this: > > http://localhost:8080/testproject/folderx/folderx/images/test.gif > > As you can see it's repeating the folder name twice. The zip examples clearly show that the zip structures have the prefix added followed by the source dir, why don't you just drop the prefix in this instance? -- Mark --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org