Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D38D010CBD for ; Wed, 12 Jun 2013 00:56:13 +0000 (UTC) Received: (qmail 73120 invoked by uid 500); 12 Jun 2013 00:56:13 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 73092 invoked by uid 500); 12 Jun 2013 00:56:12 -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 73084 invoked by uid 99); 12 Jun 2013 00:56:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 00:56:12 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [207.210.242.58] (HELO crossriverrail.org) (207.210.242.58) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 00:56:08 +0000 Received: from lydia.local (60-241-98-20.static.tpgi.com.au [60.241.98.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: pbw) by crossriverrail.org (Postfix) with ESMTPSA id 497E720231 for ; Wed, 12 Jun 2013 10:55:23 +1000 (EST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Malformed \uxxxx encoding in propertyfile task - \u in propertyfile From: Peter West In-Reply-To: Date: Wed, 12 Jun 2013 10:55:21 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: "Ant Users List" X-Mailer: Apple Mail (2.1508) X-Virus-Checked: Checked by ClamAV on apache.org Hello Michael, As far as I know, you can't edit arbitrary files with the propertyfile = task. The files have to be valid Java property files. For the = restrictions on property files, see java.util.Properties load(Reader = reader) at http://docs.oracle.com/javase/7/docs/api/ Peter West "And all ate and were satisfied." On 11/06/2013, at 11:30 PM, Michael Niemand = wrote: > Dear Ant-users, >=20 > I get the error below with an Ant skript I wrote. >=20 > I already did some googling and found out, that the problem lies with > strings containing \u, which happens under Windows because of the = directory > separator. I changed all those to / but the error remains. >=20 > There are definitely no remaining \u strings in my script. >=20 > java.lang.IllegalArgumentException: Malformed \uxxxx encoding. >=20 > The error occurs when executing the propertyfile task, so I examined = the > file I want to change. This on the other hand contains multiple \u = strings. > The file has no relation to ant though, it's a borland project file = (xml) > which contains one line like [someParameter]=3D[someValue]. >=20 > I just want to increase [someValue] by 1. >=20 > So my question is: >=20 > Can the property file I want to change cause the error mentioned >=20 > and if the answer is "yes", >=20 > What can I do, *other than* doing it with a regex task (like finding = the > line, propertyregex-ing the value, math+1 the value and = regex-replacing the > value) >=20 > Unfortunately I have no influence on the property file, other than the > mentioned value. >=20 >=20 > regards, >=20 > Michael --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org