|
|
|
Re: Programatically detect if project needs building [message #326237 is a reply to message #326214] |
Wed, 12 March 2008 10:36   |
Eclipse User |
|
|
|
Originally posted by: mark_melvin.amis.com
I think that is more "by design" than a bug, but have a look at the
classes BuildManager and AutoBuildJob. There is useful info in there.
I'll let people who know what they are talking about tell you if this is
by design or not. ;)
M.
On Tue, 11 Mar 2008 19:57:45 -0400, Juan Domínguez <jdomigon@gmail.com>
wrote:
> No, no. That's not what I mean.
>
> I'm exploring the steps to fix this bug:
>
> "Build Project" action always enabled
>
> Steps To Reproduce:
> 1. Disable "Build Automatically"
> 2. Modify a file
> 3. Build project.
> 4. Build project action is still enabled, although no build is needed,
> since no files were modified.
>
> If you look at this action code, it just enables when autobuilding is
> disabled and there are registered builders in any of the selected
> projects descriptions.
>
> So if autobuilding is enabled and (for example) a java project is
> selected, the "Build Project" action will be always enabled, because
> there's no way to know if any file (potentially interesting for any
> registered builder) has changed since a project (or any depending
> project) was last built.
>
> AL wrote:
>
>> Juan Domínguez wrote:
>>> ¿Is there any way to know programatically if a project needs building?
>>> (IE: has been file changes since last build).
>>>
>>> Apparently no IResource API exposes this information
>> Builder :-) There is an article on eclipse.org that tells you about
>> how to implement incremental/full builders.
|
|
|
Re: Programatically detect if project needs building [message #326245 is a reply to message #326237] |
Wed, 12 March 2008 17:37  |
Eclipse User |
|
|
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=222475
Mark Melvin wrote:
> I think that is more "by design" than a bug, but have a look at the
> classes BuildManager and AutoBuildJob. There is useful info in there.
> I'll let people who know what they are talking about tell you if this is
> by design or not. ;)
>
> M.
>
> On Tue, 11 Mar 2008 19:57:45 -0400, Juan Domínguez <jdomigon@gmail.com>
> wrote:
>
>> No, no. That's not what I mean.
>>
>> I'm exploring the steps to fix this bug:
>>
>> "Build Project" action always enabled
>>
>> Steps To Reproduce:
>> 1. Disable "Build Automatically"
>> 2. Modify a file
>> 3. Build project.
>> 4. Build project action is still enabled, although no build is needed,
>> since no files were modified.
>>
>> If you look at this action code, it just enables when autobuilding is
>> disabled and there are registered builders in any of the selected
>> projects descriptions.
>>
>> So if autobuilding is enabled and (for example) a java project is
>> selected, the "Build Project" action will be always enabled, because
>> there's no way to know if any file (potentially interesting for any
>> registered builder) has changed since a project (or any depending
>> project) was last built.
>>
>> AL wrote:
>>
>>> Juan Domínguez wrote:
>>>> ¿Is there any way to know programatically if a project needs
>>>> building? (IE: has been file changes since last build).
>>>>
>>>> Apparently no IResource API exposes this information
>>> Builder :-) There is an article on eclipse.org that tells you about
>>> how to implement incremental/full builders.
|
|
|
Powered by
FUDForum. Page generated in 0.02953 seconds