NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Capturing Build Events via Plugin

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers
View previous topic :: View next topic  
Author Message
kevin.haghighat



Joined: 08 May 2012
Posts: 2
Location: Canada

PostPosted: Tue May 08, 2012 6:15 am    Post subject: Capturing Build Events via Plugin Reply with quote

Hi All,

I'm new to NetBeans but been Java coding for many years.

I need to create a plugin that accesses compile/build time events. Here's a list of what I want to be able to grab:
- compile fail/pass
- compile error/warning message
- redundant compile (I've got the sudo-code if no straight forward way exists)
- source code size and/or content

I've gone through some of the tutorials and know how to make menus and action buttons but not sure how to get the events I need to get from the IDE.

Any and all help is greatly appreciated.

Kevin.
Back to top
akochnev



Joined: 29 Sep 2010
Posts: 62

PostPosted: Tue May 08, 2012 10:08 pm    Post subject: Re: Capturing Build Events via Plugin Reply with quote

Kevin,
Back to top
emi



Joined: 14 Aug 2009
Posts: 151

PostPosted: Wed May 09, 2012 6:25 am    Post subject: Re: Capturing Build Events via Plugin Reply with quote

I've tried something similar with nbnotify.com but there was no public API for what I wanted. There is a lot of reflection there.

AntLogger might help (I didn't know about it) but I guess it won't work with Maven-based projects?


--emi

On Wed, May 9, 2012 at 1:08 AM, Alex Kotchnev <address-removed ([email]address-removed[/email])> wrote:
Quote:
Kevin,
Back to top
Jesse Glick
Posted via mailing list.





PostPosted: Wed May 09, 2012 9:20 pm    Post subject: Re: Capturing Build Events via Plugin Reply with quote

On 05/09/2012 02:24 AM, Emilian Bold wrote:
Quote:
AntLogger might help (I didn't know about it) but I guess it won't work
with Maven-based projects?

Correct. There is a similar SPI for Maven builds (OutputProcessorFactory) but it is only exposed to friend modules currently.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo