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 3987] New: - Using <project... /> leads to bad error message
Date Fri, 05 Oct 2001 11:41:10 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=3987>.
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=3987

Using <project... /> leads to bad error message

           Summary: Using <project... /> leads to bad error message
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: h.wessels@t-systems.de


Hi,
I cut & paste an ant example build.xml (Listing 4) from an article at
http://www-106.ibm.com/developerworks/library/j-ant/index.html
That example (ea few dozen lines long) had a typo in the first line:
<project name="Sample.Project" default="runtests" basedir="."/>  <- note the
slash
This leads to a error message unusable at least for beginner :
[...]
Setting project property: user.home -> /home/wessels
Setting ro project property: ant.file ->
/home/wessels/develop/java/sample/build.xml
parsing buildfile /home/wessels/develop/java/sample/build.xml with URI =
file:/home/wessels/develop/java/sample/build.xml
Setting ro project property: ant.project.name -> Sample.Project
Setting project property: basedir -> /home/wessels/develop/java/sample
Project base dir set to: /home/wessels/develop/java/sample
 
BUILD FAILED
 
/home/wessels/develop/java/sample/build.xml:2: com.sun.xml.parser/P-001 3c
 
Total time: 1 second

It took me three hours to hunt this problem down, because I didn't saw the
slash, and could find nothing about this error message... It should say at least
"no targets found" or something like this.
Thanks,
Holger (h.wessels@t-systems.de)

Mime
View raw message