Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Scope of PRE_BUILD Event
Scope of PRE_BUILD Event [message #692367] Mon, 04 July 2011 10:02 Go to next message
stasik0 is currently offline stasik0Friend
Messages: 2
Registered: July 2011
Junior Member
Since the switch to Indigo I can not find out which projects are build, from PRE_BUILD event.

The source of the event is IWORKSPACE. The delta seems to be empty.

try{
event.getDelta().accept(new IResourceDeltaVisitor(){
	public boolean visit(IResourceDelta delta) throws CoreException {
		System.out.println(delta.getResource().getProject().getName());
		return true;
		}
	});
	}catch(CoreException e){
		e.printStackTrace();
	}


The visit function is never getting called.

What am i doing wrong?
Re: Scope of PRE_BUILD Event [message #692675 is a reply to message #692367] Tue, 05 July 2011 01:48 Go to previous messageGo to next message
Jay Arthanareeswaran is currently offline Jay ArthanareeswaranFriend
Messages: 128
Registered: July 2009
Senior Member
Seems to be working alright to me. What kind of resource change are you working with here?
Re: Scope of PRE_BUILD Event [message #692745 is a reply to message #692675] Tue, 05 July 2011 07:07 Go to previous messageGo to next message
stasik0 is currently offline stasik0Friend
Messages: 2
Registered: July 2011
Junior Member
I am trying to capture a PRE_BUILD event of the workspace and find out which projects are being compiled. Since I have saved them before compiling it is clear that delta is empty. Hmm... but where is the information about the currently built projects?
Re: Scope of PRE_BUILD Event [message #693373 is a reply to message #692745] Wed, 06 July 2011 10:54 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
The delta should have the changes that occurred after the previous POST_BUILD. BTW, you could also look at CompilationParticipant to get a callback when a project gets built.
Previous Topic:Why is eclipse complaining about my html?
Next Topic:Eclipse Plug-In Dependencies Vanished
Goto Forum:
  


Current Time: Fri Mar 29 10:36:53 GMT 2024

Powered by FUDForum. Page generated in 0.03406 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top