ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: Tilde and Ant
Date Wed, 23 Apr 2008 09:28:57 GMT
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        
Author: Ant in Action 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message