Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How to check - Project has been modified.
How to check - Project has been modified. [message #229758] Fri, 30 January 2009 01:51 Go to next message
Eclipse UserFriend
How to check ,programmatically, whether a project has been modified for eg
a new source file has been added to the project.is there any way using
IProject.I dont want to use some resource change listener.


Padam
Re: How to check - Project has been modified. [message #229869 is a reply to message #229758] Mon, 02 February 2009 05:00 Go to previous messageGo to next message
Eclipse UserFriend
padamev297 wrote:
> How to check ,programmatically, whether a project has been modified for
> eg a new source file has been added to the project.is there any way
> using IProject.I dont want to use some resource change listener.

Why don't you want to use a resource change listener? The alternative
would be to poll the project periodically and look for differences,
though this will likely be much worse in terms of performance, and
you'll end up polling when there have been no changes at all...

Cheers,

James

>
>
> Padam
>
Re: How to check - Project has been modified. [message #230278 is a reply to message #229869] Tue, 10 February 2009 07:59 Go to previous message
Eclipse UserFriend
i am using a PRE_BUILD listener also.I have 6 build configuration for the
project.So each time whenever there is a PRE_BUILD event i am generating a
makefile.I know that creating a makefile each time is not a good
option.Thats
why i am looking for an API or some thing that can tell me , weather the
makefile for the active configuration is up to date or not.
Can't i do it like this, if the timestamp(modification) of makefile is
more than any other file,I can skip generating it again.

I am not sure how I can handle the same thing using listener for
POST_CHANGE or somehting, as i want to update the makefile only when the
project is built.

Any clue on how to check if a particular file, here makefile has timestamp
greater than any other files in the project.


Thanks
Padam
Previous Topic:Unsatisfied dependincies with CDT 200901300802 (RC1) build.
Next Topic:Breakpoint problems
Goto Forum:
  


Current Time: Wed Jun 04 08:42:22 EDT 2025

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

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

Back to the top