ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@mad.scientist.com>
Subject Re: Different behaviour in NT and Unix
Date Fri, 22 Sep 2000 06:42:06 GMT
At 03:01  21/9/00 +0200, you wrote:
>>>>>> "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?

It *could* but I haven't seen any windows programs other than a really old
revision control system that is not used anymore who actually use /~/ as
the name of directory - so unless it brakes some of the odder unixes or
macs I say go for it.

Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Mime
View raw message