Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 52150 invoked from network); 21 Feb 2007 19:34:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2007 19:34:15 -0000 Received: (qmail 54804 invoked by uid 500); 21 Feb 2007 19:34:18 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 54778 invoked by uid 500); 21 Feb 2007 19:34:18 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 54764 invoked by uid 99); 21 Feb 2007 19:34:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 11:34:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of tobias.strasser@gmail.com designates 209.85.134.188 as permitted sender) Received: from [209.85.134.188] (HELO mu-out-0910.google.com) (209.85.134.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 11:34:08 -0800 Received: by mu-out-0910.google.com with SMTP id g7so1129316muf for ; Wed, 21 Feb 2007 11:33:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=am4hfvLy0rigVl6b1VBbYyyXUTTG49kPJbWeV97yn3PqhnvVfikckrzHhtX6FI3t5/ccaaoSVdodVPDBTbmMTF6ybFA6XbgNFiqqhfgTg2aK0nBqS/A//EdQM/h/ojLmW9TG6oVSL1vZyjQ2jPHqht+NQbFC5/NwzBbJpQmrZ58= Received: by 10.82.107.15 with SMTP id f15mr14258817buc.1172086426814; Wed, 21 Feb 2007 11:33:46 -0800 (PST) Received: by 10.82.136.8 with HTTP; Wed, 21 Feb 2007 11:33:46 -0800 (PST) Message-ID: <8be731880702211133k6693c0cfj3fed84d78a889c7e@mail.gmail.com> Date: Wed, 21 Feb 2007 20:33:46 +0100 From: "Tobias Bocanegra" Reply-To: tobias.bocanegra@day.com Sender: tobias.strasser@gmail.com To: dev@jackrabbit.apache.org Subject: Re: General Packaging mechanism In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8be731880702210258h599773adga7115743ad6245e0@mail.gmail.com> <45DC3A95.4010705@gmx.de> <8be731880702210512h44e06f7fi19fe950d25a06b38@mail.gmail.com> <45DC4855.3070408@gmx.de> <8be731880702210603r4f097914od0b4b4a4c34c7ff@mail.gmail.com> <45DC54F7.1020203@gmx.de> X-Google-Sender-Auth: 0c0db20bd260313e X-Virus-Checked: Checked by ClamAV on apache.org correct. i created a small test class that writes and reads from a jar file. and everything works ok. no matter whatever platform-encoding i use on my system. so, i see no problem using the zip-io from jdk1.4. regards, toby public class JarTest { public static void main(String[] args) throws Exception { System.out.println("System file.encoding: " + System.getProperty("file.encoding")); // write entries byte[] testBuffer = "Hello, world.\n".getBytes(); FileOutputStream out = new FileOutputStream("test.jar"); ZipOutputStream zout = new ZipOutputStream(out); ZipEntry e = new ZipEntry("\u03b1 - first.txt"); zout.putNextEntry(e); zout.write(testBuffer); zout.closeEntry(); e = new ZipEntry("\u03b2 - second.txt"); zout.putNextEntry(e); zout.write(testBuffer); zout.closeEntry(); e = new ZipEntry("\u263a - smile.txt"); zout.putNextEntry(e); zout.write(testBuffer); zout.closeEntry(); zout.close(); out.close(); // reopen and read entries FileInputStream in = new FileInputStream("test.jar"); ZipInputStream zin = new ZipInputStream(in); while ((e = zin.getNextEntry()) != null) { System.out.println(e.getName()); } zin.close(); in.close(); } } -- -----------------------------------------< tobias.bocanegra@day.com >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---