ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27148] - Windows 98 compatibility
Date Mon, 23 Feb 2004 17:27:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27148

Windows 98 compatibility





------- Additional Comments From pierrick.brihaye@wanadoo.fr  2004-02-23 17:27 -------
Well... first we should have to deal with a syntax like this :

if     "%OS%" == "Windows_NT" do_something
if not "%OS%" == "Windows_NT" do_another_thing

A quick solution would be :
if not "%OS%" == "Windows_NT" set DEFAULT_ANT_HOME=..

But, if you want to get the current directory under Win 98, this batch file 
does the trick :

setpwd.bat :

@echo off
echo @prompt set PWD=$p$_ > _temp_A.bat
%comspec% /e:2048 /c _temp_A.bat > _temp_B.bat
call _temp_B.bat
del _temp_?.bat

Also remember that %0 is the current program's name, i.e.

setpwf.bat :

@echo off
lfnfor on
set PWF=%0
lfnfor off

Hope this helps,

Cheers,

p.b.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message