Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 89111 invoked from network); 25 Apr 2008 03:07:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2008 03:07:19 -0000 Received: (qmail 73563 invoked by uid 500); 25 Apr 2008 03:07:17 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 73521 invoked by uid 500); 25 Apr 2008 03:07:17 -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 73510 invoked by uid 99); 25 Apr 2008 03:07:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2008 20:07:17 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 03:06:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JpEGp-0003AE-J5 for user@ant.apache.org; Thu, 24 Apr 2008 20:06:43 -0700 Message-ID: <16884116.post@talk.nabble.com> Date: Thu, 24 Apr 2008 20:06:43 -0700 (PDT) From: testn To: user@ant.apache.org Subject: Re: Tilde and Ant In-Reply-To: <480F0159.50904@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: test1@doramail.com References: <16829044.post@talk.nabble.com> <480F0159.50904@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the reply. How do you explain why it does work on other machines as well as other users? Steve Loughran wrote: > > testn wrote: >> My ant script uses tilde "~" in the path. It seems to work fine with my >> colleagues but it failed to work in my unix machine. When I copy files to >> ~/deploy, instead of creating a directory called deploy in my home >> directory, it actually creates "~/deploy" in my current directory >> instead. I >> know I should use "${user.home}", but does anyone have any idea why it >> happened? > > yes. ~ is interpreted by the shell, and Ant has no shell. You cant use > ~/something in Java code or even C/C++ apps. > > -- > Steve Loughran http://www.1060.org/blogxter/publish/5 > Author: Ant in Action http://antbook.org/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > -- View this message in context: http://www.nabble.com/Tilde-and-Ant-tp16829044p16884116.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org