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 11250] New: - ant fails on w2k machines
Date Mon, 29 Jul 2002 12:40:23 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=11250>.
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=11250

ant fails on w2k machines

           Summary: ant fails on w2k machines
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Wrapper scripts
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: miha@softhome.net


I have ant installation on w2k machine and JAVA_HOME and ANT_HOME set correctly.

===> SYNOPSIS: Running anyant command (even with no parameters) fails with 
message:

...
BUILD FAILD.
Target 'build.xml' does not exist in the project
...

===> After adding "@echo on" in %ANT_HOME%\bin\ant.bat I got following debug 
strings:


D:\DEVELO~1\song\dev\song>if not "" == "" goto runAntWithJikes

D:\DEVELO~1\song\dev\song>"d:\tng\jdk13103\bin\java" -classpath "d:\tng\jdk13103
\lib\tools.jar;D:\development\song\dev\song\resources\ant\lib\xml-apis.jar;D:\de
velopment\song\dev\song\resources\ant\lib\xercesImpl.jar;D:\development\song\dev
\song\resources\ant\lib\xalan-2.0.1.jar;D:\development\song\dev\song\resources\a
nt\lib\schema.jar;D:\development\song\dev\song\resources\ant\lib\optional.jar;D:
\development\song\dev\song\resources\ant\lib\netcomponents.jar;D:\development\so
ng\dev\song\resources\ant\lib\mail.jar;D:\development\song\dev\song\resources\an
t\lib\kiwi.jar;D:\development\song\dev\song\resources\ant\lib\junit.jar;D:\devel
opment\song\dev\song\resources\ant\lib\js.jar;D:\development\song\dev\song\resou
rces\ant\lib\jaxp.jar;D:\development\song\dev\song\resources\ant\lib\jalopy-ant-
bundle-0.5.1.jar;D:\development\song\dev\song\resources\ant\lib\jakarta-oro-2.0.
6.jar;D:\development\song\dev\song\resources\ant\lib\crimson.jar;D:\development\
song\dev\song\resources\ant\lib\catalina-ant.jar;D:\development\song\dev\song\re
sources\ant\lib\bsf.jar;D:\development\song\dev\song\resources\ant\lib\ant.jar;D
:\development\song\dev\song\resources\ant\lib\activation.jar;" -Dant.home="D:\de
velopment\song\dev\song\resources\ant"  org.apache.tools.ant.Main  *
Buildfile: build.xml

BUILD FAILED
Target `build.xml' does not exist in this project.

===> put attention on last "*" char.
===> and if you take a look into ant.bat - the following code is not always 
working on w2k:

rem On NT/2K grab all arguments at once
set ANT_CMD_LINE_ARGS=%*
goto doneStart

===> The "%*" is not resolved to command line target name passed from dos shell.
So, after changing the ant.bat line from:
if not "%OS%"=="Windows_NT" goto win9xStart
:winNTStart

to:

if  "%OS%"=="Windows_NT" goto win9xStart
:winNTStart

it started to work.

regards

Mike

--
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