ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@seessle.de>
Subject Re: Different behaviour in NT and Unix
Date Thu, 21 Sep 2000 23:04:31 GMT
----- Original Message ----- 
From: "Stefan Bodewig" <bodewig@bost.de>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, September 21, 2000 3:01 PM
Subject: Re: Different behaviour in NT and Unix


> >>>>> "TJ" == Taylor, Jeremy <jtaylor@lehman.com> writes:
> 
>  TJ> The solution to my problem is simply to replace ~ with
>  TJ> home/jtaylor and I'm away!
> 
> The problem is more of a Java problem than an Ant problem:
> 
>         System.out.println(new File("~"));
>         System.out.println((new File("~")).getAbsolutePath());
> 
> will give ~ and current_working_dir/~ on Linux. 
> 
> Ant could be made smart enough to replace a leading ~ with the
> user.dir property. Could this break any non Unix environment?
> 

user.home would be better, wouldn't it? 

Nico



Mime
View raw message