Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [SOLVED] Project build path questions
icon14.gif  [SOLVED] Project build path questions [message #665844] Sun, 17 April 2011 00:28 Go to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi,

In my plug-in I want to do the following programmatically:

1- Get the build path information for a project (i.e., which jars are added, etc.)
2- Get notified whenever this build path is changed for a particular project.

Are these possible? If so, could you point me the APIs I should look for?

Another related question: is the build-path stored in a file inside the project? If so, where it is located and what it is called?

Thanks in advance,

Best regards,

[Updated on: Tue, 19 April 2011 03:19]

Report message to a moderator

Re: Project build path questions [message #665910 is a reply to message #665844] Mon, 18 April 2011 06:41 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
.classpath in the project folder has the buildpath. IJavaProject#getResolvedClasspath() could be used for getting the build path and JavaCore#addElementChangedListener() can be used to get change notifications.
Re: Project build path questions [message #666085 is a reply to message #665910] Tue, 19 April 2011 03:18 Go to previous message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi Satyam,

Thanks a lot for the fast and accurate reply. Worked like a charm!
Previous Topic:VE is Helios 3.6
Next Topic:How to create a project in another Workspace programatically?
Goto Forum:
  


Current Time: Tue Mar 19 06:07:53 GMT 2024

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

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

Back to the top