Can one set the console patterns for linking ? [message #2549] |
Wed, 23 April 2003 16:22 |
Eclipse User |
|
|
|
Originally posted by: kenneth.chenis.componentree.com.remove
Hi,
Relatively new to eclipse, but I must say thus far I have been enjoying the
experience. (Netbeans/Forte convert) - I am working with a large J2EE
project using the JBOSS IDE plugin - We have log4j configured to send status
messages out to the console in format class(filename:linenum) - when ANT
compile fails, or when a stack trace occur - this format (or similar)
creates a hyperlink to the source file/line number - Is there a place this
regex can be set so that the console logging the log4j output can have
hotlinks for the log messages, or does it need to be addressed in the JBOSS
launcher plugin?
Thanks !
Ken Chenis
www.sematree.com
|
|
|
|
Re: Can one set the console patterns for linking ? [message #2610 is a reply to message #2581] |
Wed, 23 April 2003 16:42 |
Eclipse User |
|
|
|
Originally posted by: kenneth.chenis.componentree.com.remove
Thank You.
Ken
"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:b86emv$di1$1@rogue.oti.com...
> You cannot set the regex.
>
> From previous posts on this subject:
> --------------------------------
> In 2.1 the doc for this extension point is found at:
> "Platform Plugin Developer Guide" / "Reference" / "Extension Points
> Reference" / Debug / org.eclipse.debug.ui.consoleLineTrackers
>
> Darins
>
> "Rob Nikander" <nikaREMOVEnder@nc.rr.coOOOm> wrote in message
> news:b7s0r5$plv$1@rogue.oti.com...
> > Thanks,
> > For future reference, is there a way I could have found this information
> in
> > the Eclipse Help docs? I am looking at "Platform Plugin Developer
Guide"
> /
> > "Reference" / "Extension Points Reference" and the extension point you
> > mentioned is not there. ? Are there more extension point listed
> elsewhere?
> > Does one need to look at the source code to find some of them?
> >
> > Rob
> >
> >
> > > You will need to extend the org.eclipse.debug.ui.consoleLineTrackers
> > > extension point in your own plugin.
> > >
> > > The org.eclipse.ui.externaltools plugin provides two examples: the
> > > javacLineTracker and the taskLineTracker.
> > > You will ant to register your consoleLineTracker for the name of your
> > > external program (see ProgramLaunchDelegate if interested).
> > > So for example:
> > > <consoleLineTracker
> > >
> > > id = "robs.cool.nant.errorLineTracker"
> > >
> > > class = "org.rob.nant.ErrorLineTracker"
> > >
> > > processType = "NAnt">
> > >
> > > </consoleLineTracker>
> > >
> > > This assumes that the name of the external tool you run is called
NAnt.
> > >
>
> "Ken Chenis" <kenneth.chenis@componentree.com.remove> wrote in message
> news:b86e0c$ct7$1@rogue.oti.com...
> > Hi,
> >
> > Relatively new to eclipse, but I must say thus far I have been enjoying
> the
> > experience. (Netbeans/Forte convert) - I am working with a large J2EE
> > project using the JBOSS IDE plugin - We have log4j configured to send
> status
> > messages out to the console in format class(filename:linenum) - when
ANT
> > compile fails, or when a stack trace occur - this format (or similar)
> > creates a hyperlink to the source file/line number - Is there a place
this
> > regex can be set so that the console logging the log4j output can have
> > hotlinks for the log messages, or does it need to be addressed in the
> JBOSS
> > launcher plugin?
> >
> > Thanks !
> >
> > Ken Chenis
> > www.sematree.com
> >
> >
>
>
|
|
|
Re: Can one set the console patterns for linking ? [message #4704 is a reply to message #2549] |
Thu, 24 April 2003 18:11 |
Eclipse User |
|
|
|
Originally posted by: matt_conway.i2.com
Ken Chenis wrote:
> creates a hyperlink to the source file/line number - Is there a place this
> regex can be set so that the console logging the log4j output can have
> hotlinks for the log messages, or does it need to be addressed in the JBOSS
> launcher plugin?
I wrote a plugin that does this:
http://sf.net/projects/sunshade - the errorlink plguin
It lets you setup regexps to match against in console lines - the
regexps can be defined by the user in the
Window->Preferences->Workbench->External Tools->Error Link
Its major drawback is that you'll have to edit the plugin.xml to include
the process "type" for processes that you want to define regexp
hyperlinks for. For example, for an external process defined for
make.exe, you'd have to add an entry like:
<consoleLineTracker
class="net.sourceforge.sunshade.errorlink.RegexpLineTracker "
processType="make"
id="regexpLineTracker">
</consoleLineTracker>
Does anyone know of a way I can do this programatically?
Matt
|
|
|
Powered by
FUDForum. Page generated in 0.04007 seconds