Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 50357 invoked from network); 20 May 2009 14:53:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 May 2009 14:53:25 -0000 Received: (qmail 96942 invoked by uid 500); 20 May 2009 14:53:38 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 96903 invoked by uid 500); 20 May 2009 14:53:38 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 96892 invoked by uid 99); 20 May 2009 14:53:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 May 2009 14:53:38 +0000 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: domain of oliver.deakin@googlemail.com designates 209.85.219.158 as permitted sender) Received: from [209.85.219.158] (HELO mail-ew0-f158.google.com) (209.85.219.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 May 2009 14:53:26 +0000 Received: by ewy2 with SMTP id 2so550368ewy.36 for ; Wed, 20 May 2009 07:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=mTp8JIBMJhOuy/T22X0wxfdlO+7IgaI8EXhh7BuZuEQ=; b=WVCgVc5Vgwi3J6/IVKk2geW/kbF6L0aZn8ekJumZpTVn/PXT+EqhxaCvvlK0cI1o3j vxKZ98u9ri2QYtUoIsU96mn6sw7jdsR9bz5vDdgEcmhNebY3rrosI5t7c3Zx0jIceyFw VakRtAThgpMqaoQzJR9/22sOwvrzmd8RtvYbQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=YEK3EBXI7heQe4QI2v2wfecgU5a5ncCqtp6yrYGBtcZ+wEvZEZt3ERAkKLEbIRFfTf 3OlBb6TcmipcUCOR8btZ8De4YTWHvUXPSsV6ZZvIrcaMMUlYVEcH8hV+oZcDplraecaJ yZBzMjc8VmQ5X2BUQXn/YWmMe6+ZYhKB5NHKY= Received: by 10.210.79.3 with SMTP id c3mr1842197ebb.41.1242831184484; Wed, 20 May 2009 07:53:04 -0700 (PDT) Received: from ?9.20.183.159? (blueice4n2.uk.ibm.com [195.212.29.92]) by mx.google.com with ESMTPS id 28sm2393257eye.16.2009.05.20.07.53.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 20 May 2009 07:53:03 -0700 (PDT) Message-ID: <4A141951.2030302@googlemail.com> Date: Wed, 20 May 2009 15:53:05 +0100 From: Oliver Deakin User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: [classlib][build] Need depends.properties to be in ASCII on non-ASCII platforms Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have an issue building on z/OS - a fresh checkout from svn gives us depends.properties in the default platform encoding (EBCDIC). However, when we come to load these properties in depends-common.xml, using the loadproperties Ant task, they are assumed to be in ASCII encoding. The "encoding" property of the Ant task does not actually work correctly (I think this is a bug in Ant which I intend to raise) so it is no help. I was wondering if anybody has any ideas about the best way to tackle this problem? Really I'd like to tag the file in some way so that it is checked out of Subversion in the correct encoding immediately, but there does not seem to be a way to do this. I have come up with a few options: 1) Mark the file binary in svn - not a good solution, means losing revision history, not getting proper diffs etc. 2) Use the Ant copy task with it's outputencoding property set to ISO-8859-1 to copy the file to another location, and then use that copy to load the properties from. Delete the file after it has been used (patch would be like [1]). Unfortunately this means that when we run the fetch-depends target we see a lot of copy/delete output (setting verbose="false" for these tasks does not seem to hide the output completely). 3) Same as (2), but don't delete the file afterwards. There would only be one initial copy, then no further copies unless the file is modified. However, this does mean that these is an extra file left in the make directory, which I don't like the idea of. I'd choose to go with (2), but thought I'd see if anyone has any other ideas before I commit the change. Regards, Oliver [1] Index: depends-common.xml =================================================================== --- depends-common.xml (revision 775934) +++ depends-common.xml (working copy) @@ -25,7 +25,8 @@ where possible. - + + @@ -34,7 +35,8 @@ - + + -- Oliver Deakin Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU