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=21883>.
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=21883

Using -listener or -logger option causes basedir to become wrong

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |



------- Additional Comments From [EMAIL PROTECTED]  2003-07-28 06:56 -------
I have tracked down the bug to the following statement in my BuildListener:

package com.edb.listener;

import org.apache.tools.ant.BuildEvent;
import org.apache.tools.ant.BuildListener;

public class IsThisABug implements BuildListener
{
    public void buildFinished(BuildEvent arg0)
    {
    }

    public void buildStarted(BuildEvent arg0)
    {
        // This statement seems to prevent Ant from changing basedir
        String directoryName = arg0.getProject().getBaseDir().getName();
    }

    public void messageLogged(BuildEvent arg0)
    {
    }

    public void targetFinished(BuildEvent event)
    {
    }

    public void targetStarted(BuildEvent arg0)
    {
    }

    public void taskFinished(BuildEvent arg0)
    {
    }

    public void taskStarted(BuildEvent arg0)
    {
    }

}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to