Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 47775 invoked from network); 1 Mar 2006 13:10:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Mar 2006 13:10:23 -0000 Received: (qmail 32938 invoked by uid 500); 1 Mar 2006 13:11:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 32862 invoked by uid 500); 1 Mar 2006 13:11:04 -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 32556 invoked by uid 99); 1 Mar 2006 13:11:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 05:11:02 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 05:11:02 -0800 Received: from z011100.bk.fin.local (z011104.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id k21DAcah015045 for ; Wed, 1 Mar 2006 14:10:38 +0100 Received: from z011134.bk.fin.local ([130.11.7.134]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Wed, 1 Mar 2006 14:10:24 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: AW: How can I access the environtment variable JAVA_HOME? Date: Wed, 1 Mar 2006 14:10:27 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How can I access the environtment variable JAVA_HOME? Thread-Index: AcY9MBXAkcPlWc0SSfS+tGGyhRXiSAAAPEtQ From: To: X-OriginalArrivalTime: 01 Mar 2006 13:10:24.0101 (UTC) FILETIME=[80400950:01C63D31] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >Also all of the java system properties(the one you can get with >System.getProperties) are available in Ant: > >"file.separator" - File separator (for example, "/")=20 >"java.class.path" - Java classpath "java.class.version" - Java=20 >class version number "java.home" - Java installation directory=20 >"java.vendor" - Java vendor-specific string "java.vendor.url"=20 >- Java vendor URL "java.version" - Java version number =20 >"line.separator" - Line separator "os.arch" - Operating=20 >system architecture "os.name" - Operating system name=20 >"os.version" - Operating system version "path.separator" -=20 >Path separator (for example, ":") "user.dir" - User's current=20 >working directory "user.home" - User home directory=20 >"user.name" - User account name > >You can use them in your build script as any other property. They are listed in=20 http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getPropert ies() and directly accesible in Ant - without the need to them or having a special prefix. Just use ${line.separator} ... See also the manual=20 http://ant.apache.org/manual/using.html#properties Jan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org