ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: new feature: RecorderEntry accepts -emacs
Date Fri, 22 Mar 2002 00:57:10 GMT
----- Original Message -----
From: "stephan beal" <stephan@wanderinghorse.net>

> > Congratulations!  You've just recreated Project.toBoolean :))
>
> i KNEW this had to exist somewhere. i KNEW it. Errr... but i was lazy.

Actually Ant's introspection stuff is one of its coolest features such that
setters on a task take the datatypes they want to deal with, not just
String.

> It's set via the -emacs command line, "inherited" from Project in
> Project.addBuildListener(). Since that's practically the only way this
class
> gets instantiated, that didn't seem too terrible. RecorderEntry did not
> implement emacsMode behaviour inherently. If it is set in the task, then
that
> will override the value from Project:
> <record emacsMode="true" .../>
> will take priority (in theory... but i don't see why it won't do so). The
> function setEmacsMode( boolean ) exists from the BuildLogger interface.

in theory :) , but unless you modified this then it won't work:

    public void setEmacsMode(boolean emacsMode) {
        throw new java.lang.RuntimeException("Method setEmacsMode() not yet
implemented.");
    }

    Erik


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