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 23915] New: - Script task cannot cope with undefined task/type elements in buildfile
Date Sat, 18 Oct 2003 19:50:34 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=23915>.
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=23915

Script task cannot cope with undefined task/type elements in buildfile

           Summary: Script task cannot cope with undefined task/type
                    elements in buildfile
           Product: Ant
           Version: 1.6Beta
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: j_a_fernandez@yahoo.com


In my build file I have several tasks/types whose <taskdef>/<typedef> are 
inside a target.
When I execute an unrelated target that contains a <script> task,
I get the infamous:
===========================================================
BUILD FAILED
E:\projects\ant1_6-branch-20031018\pita\newbuild.xml:1881: Could not create 
task or type of type: prefcatalog.

Ant could not find the task or a class this task relies upon.
...
===========================================================
This hapens while trying to run the <script> task, and the error being
reported correspond to a completely unrelated target and task that has no 
reason to be evaluated (except for having an id).

If I comment the <script> task, the build succeeds with no problems.

I think the problem is when trying to make the ID available to the script.
This does not occurs in 1.5.3 but it does in 1.6b2.
Also extrange is the fact that the ID used is "catalog.app" which should
not be added to the script because it is not a valid java identifier.

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


Mime
View raw message