Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 94874 invoked from network); 11 May 2009 05:13:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 May 2009 05:13:28 -0000 Received: (qmail 28721 invoked by uid 500); 11 May 2009 05:13:26 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 28217 invoked by uid 500); 11 May 2009 05:13:26 -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 27966 invoked by uid 99); 11 May 2009 05:13:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2009 05:13:25 +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: 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; Mon, 11 May 2009 05:13:16 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id n4B5CrNn024321 for ; Mon, 11 May 2009 07:12:54 +0200 Received: from z011101.bk.fin.local ([130.11.7.101]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Mon, 11 May 2009 07:12:53 +0200 Received: from z011021.bk.fin.local ([130.11.7.21]) by z011101.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Mon, 11 May 2009 07:12:53 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: AW: Unix Home set in Build.xml Date: Mon, 11 May 2009 07:12:53 +0200 Message-ID: <9EE86F1965E19E499C80DE52AC807B5502A47EEA@z011021.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Unix Home set in Build.xml Thread-Index: AcnQmSyTmLgNn+onSyyP9kmECaUclgBXSWVw References: From: To: X-OriginalArrivalTime: 11 May 2009 05:12:53.0960 (UTC) FILETIME=[2381B480:01C9D1F7] X-Virus-Checked: Checked by ClamAV on apache.org >I want to set one properties HOMEDIR in build.xml which will=20 >be set through user logged in the current system.. > >How to read Unix home directory and put that value in build.xml You could access all Java system properties directly via ${name}, e.g. ${user.name}, ${user.dir}, ${user.home}, ... You could read environment properties and use them ${env.ENVIRONMENT_VARIABLE} e.g. ${env.USERPROFILE}, ${env.USERNAME}, ${env.PATH} You could pass properties during Ants start ant -Dname=3Dvalue -Danothername=3Danothervalue Also you Ant could ask for input ${foo} Jan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org