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 31389] New: - incorrect error text with invalid "javac" task after a "presetdef"
Date Thu, 23 Sep 2004 16:44:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31389>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31389

incorrect error text with invalid "javac" task after a "presetdef"

           Summary: incorrect error text with invalid "javac" task after a
                    "presetdef"
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: tszeredi@vipmail.hu


See below for the build.xml that was used and the faulty error message.

Reproduction:

1. I made a preset definition containing a javac task
2. I made a normal target (not using the preset definition) containing a javac
task with an illegal tag name
3. When running ant, the error message says that the error is in the preset
definition instead of the javac task.  (The line number in the message is good.)


build.xml:
-------------------------------------------------
<project default="target">
    <presetdef name="mytask">
       <javac srcdir="whatever"/>
    </presetdef>

    <target name="target">
        <javac srcdir="whatever" invalidtag="whatever"/>
    </target>
</project>
-------------------------------------------------


ant output:
-------------------------------------------------
Buildfile: build.xml

target:

BUILD FAILED
/tmp/build.xml:7: The <mytask> type doesn't support the "invalidtag" attribute.

Total time: 1 second
-------------------------------------------------

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


Mime
View raw message