Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 64970 invoked from network); 15 Nov 2004 14:22:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Nov 2004 14:22:15 -0000 Received: (qmail 90590 invoked by uid 500); 15 Nov 2004 14:22:08 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 90548 invoked by uid 500); 15 Nov 2004 14:22:08 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 90532 invoked by uid 99); 15 Nov 2004 14:22:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [216.35.73.164] (HELO ext-nj2gw-2.online-age.net) (216.35.73.164) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 15 Nov 2004 06:22:05 -0800 Received: from int-nj2gw-5.online-age.net (int-nj2gw-5 [3.159.236.69]) by ext-nj2gw-2.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id iAFELxl0021624 for ; Mon, 15 Nov 2004 09:21:59 -0500 (EST) Received: from casjcx01nege.ne.ge.com (localhost [127.0.0.1]) by int-nj2gw-5.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id iAFELvCO004867 for ; Mon, 15 Nov 2004 09:21:58 -0500 (EST) Received: by casjcx01nege.ne.ge.com with Internet Mail Service (5.5.2657.72) id ; Mon, 15 Nov 2004 06:20:50 -0800 Message-ID: From: "Conelly, Luis (GE Energy, Non GE, GENE)" To: Ant Users List Subject: RE: Escapign backslash in java.home Date: Mon, 15 Nov 2004 06:24:07 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N why don't you use forward-slashes instead backslashes? It is the same for Java and it fits on Win & *nix systems; of course, it won't work the same on any OS, since in Win you have this horrible drives concept (C: D: etc) i.e (for Win) java.home=C:/j2se1.4.2/bin (for *nix) java.home=/usr/local/java/1.4.2/bin bottom line, you have to write properties for both OSes and pick them on the fly by using something like [1] task. This kind of operation has been discused in this list several times [2] Hope this helps Regards Luis [1] http://ant.apache.org/manual/CoreTasks/condition.html [2] http://marc.theaimsgroup.com/?l=ant-user&m=109760252905015&w=2 http://marc.theaimsgroup.com/?l=ant-user&m=107631038006160&w=2 -----Original Message----- From: Thomas Saxtoft [mailto:TS@sondagsavisen.dk] Sent: Monday, November 15, 2004 7:41 AM To: user@ant.apache.org Subject: Escapign backslash in java.home On a Windows XP I have to write the java.home property to a file, but doing that the '\' disappears. I suspect that it needs to be escaped like '\\', but the value of java.home is the one that contains the backslash. How do I write it to the file? The next thing is, how do I make it general so that it also works on a Linux machine? Thanks in advance, Thomas --------------------------------------------------------------------- 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