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 8380] New: - Execute.getProcEnvCommand() failed on Windows XP with jdk 1.4.0
Date Mon, 22 Apr 2002 20:58:14 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=8380>.
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=8380

Execute.getProcEnvCommand() failed on Windows XP with jdk 1.4.0

           Summary: Execute.getProcEnvCommand() failed on Windows XP with
                    jdk 1.4.0
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: javastefan@genion.de


With jdk 1.4.0 and ant 1.4.1 on Windows XP build file entry

  <property environment="env"/>

failed. Sourcecode inspection showed why: the os.name property is only 
interpreted correctly for nt and 2000, otherwise is thought of win 9x.

In sources from Oct. 11th 2001 you have to alter the Execute class like

231,232c231,232
<             if ( osname.indexOf("nt") >= 0 || osname.indexOf("2000") >= 0 || 
osname.indexOf("xp") >= 0) {
<                 // Windows 2000/NT/XP
---
>             if ( osname.indexOf("nt") >= 0 || osname.indexOf("2000") >= 0 ) {
>                 // Windows 2000/NT

This helped.

BTW: using jdk 1.3.1_03 worked on the same machine as that returns Windows 2000 
as os.name!

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


Mime
View raw message