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 06:02 Go to next message
stasik0 is currently offline stasik0
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] Mon, 04 July 2011 21:48 Go to previous messageGo to next message
Jayaprakash Arthanareeswaran is currently offline Jayaprakash Arthanareeswaran
Messages: 7
Registered: July 2009
Junior 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 03:07 Go to previous messageGo to next message
stasik0 is currently offline stasik0
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 06:54 Go to previous message
Satyam Kandula is currently offline Satyam Kandula
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: Tue Jul 29 09:01:20 EDT 2014

Powered by FUDForum. Page generated in 0.02604 seconds