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 16611] New: - ant is confused when os.name returns "Windows Server 2003" and tries to exec "command.com"
Date Thu, 30 Jan 2003 17:47:06 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=16611>.
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=16611

ant is confused when os.name returns "Windows Server 2003" and tries to exec "command.com"

           Summary: ant is confused when os.name returns "Windows Server
                    2003" and tries to exec "command.com"
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: jolly.chen@bea.com


For Windows JVM's that return "Windows Server 2003" as their os.name property,
ant gets confused and thinks it's an Win9x box.  Then it tries to exec
"command.com" instead of "cmd.exe", causing an error.

The following small change in org/apache/tools/ant/taskdefs/condition/Os.java
is a workaround.  A mild kludge that's good enough for this century (or until
they re-brand windows again...) =)


223c223
<                           osName.indexOf("20") >= 0 ||
---
>                           osName.indexOf("2000") >= 0 ||

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


Mime
View raw message