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 8681] New: - getDescription of a Task return null in taskStarted(BuildEvent event)
Date Tue, 30 Apr 2002 21:04:03 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=8681>.
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=8681

getDescription of a Task return null in taskStarted(BuildEvent event)

           Summary: getDescription of a Task return null in
                    taskStarted(BuildEvent event)
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: tzimber@e2e.ch


The getDescription() method of a Task return always null in the
taskStarted method of the BuildListener interface even when the
description attribute is set.
A simple solution may be to change the order of the method calls in
the preform method so that project.fireTaskStarted() will be called after
maybeConfigure():

public final void perform() {
   try {
       maybeConfigure();
       project.fireTaskStarted(this);
       execute();
       project.fireTaskFinished(this, null);
   }
...
}

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