When using ANT together with MacOS X it's project builder you loose the
nice click-on-an error output; as the latter gets confused by the [javac]
prefix; and seems to want ^(\s*)path:#

So I am now piping the output from ant through a small perl script
to make things work (see attached). This is kind of a compromize between
the '-emacs' mode and something which looks nice. Perhaps something for a
future release...

Dw
#!/usr/local/bin/perl
#
# May 2001 [EMAIL PROTECTED] - remove any
# [foo] lines from the output; keeping
# spacing more or less there.
#
$|=1;
while(<STDIN>) {
        if (s/^(\s+)\[(\w+)\]//) {
                if ($2 ne $last) {
                        print "$1\[$2\]";
                        $s = ' ' x length($2);
                } else {
                        print "$1 $s ";
                };
                $last = $2;
        };
        print;
};
#!/bin/sh
. ~/.tomcatrc

java org.apache.tools.ant.Main $* 

Reply via email to