|
Re: Project clean event? [message #335248 is a reply to message #335244] |
Fri, 27 March 2009 16:21 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Hi,
There is a clean event in the resources listener.
Paul Fullbright wrote:
> Is there a way to capture when a project clean occurs *other* than
> adding a builder? We don't "build" anything, but we do want to know
> when it occurs, especially a clean.
>
> A resource listener isn't quite enough, because if no resource changes,
> then there is no post build event.
>
--
Thanks,
Rich Kulp
|
|
|
|
Re: Project clean event? [message #335251 is a reply to message #335249] |
Fri, 27 March 2009 18:02 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Then capture pre_build instead of post_build.
Paul Fullbright wrote:
> You mean the getBuildKind() query? If so, I do know about that, but the
> problem is that the POST_BUILD event will not be broadcast if there are
> no resource changes (if there is no resource delta). So this method of
> capturing that a clean has happened is not reliable. I would like to
> know *every* time a clean has been invoked, whether or not resources are
> changed as a result.
>
> Rich Kulp wrote:
>
>> Hi,
>
>> There is a clean event in the resources listener.
>
>> Paul Fullbright wrote:
>>> Is there a way to capture when a project clean occurs *other* than
>>> adding a builder? We don't "build" anything, but we do want to know
>>> when it occurs, especially a clean.
>>>
>>> A resource listener isn't quite enough, because if no resource
>>> changes, then there is no post build event.
>>>
>
>
>
--
Thanks,
Rich Kulp
|
|
|
Re: Project clean event? [message #335252 is a reply to message #335251] |
Fri, 27 March 2009 18:17 |
Paul Fullbright Messages: 201 Registered: July 2009 |
Senior Member |
|
|
I didn't mention pre_build because we're more interested in doing
something after the build has been launched, but it does suffer from the
same problem as post_build. If there are no resource changes since the
last build, there is no event.
Rich Kulp wrote:
> Then capture pre_build instead of post_build.
> Paul Fullbright wrote:
>> You mean the getBuildKind() query? If so, I do know about that, but the
>> problem is that the POST_BUILD event will not be broadcast if there are
>> no resource changes (if there is no resource delta). So this method of
>> capturing that a clean has happened is not reliable. I would like to
>> know *every* time a clean has been invoked, whether or not resources are
>> changed as a result.
>>
>> Rich Kulp wrote:
>>
>>> Hi,
>>
>>> There is a clean event in the resources listener.
>>
>>> Paul Fullbright wrote:
>>>> Is there a way to capture when a project clean occurs *other* than
>>>> adding a builder? We don't "build" anything, but we do want to know
>>>> when it occurs, especially a clean.
>>>>
>>>> A resource listener isn't quite enough, because if no resource
>>>> changes, then there is no post build event.
>>>>
>>
>>
>>
|
|
|
Re: Project clean event? [message #335253 is a reply to message #335252] |
Fri, 27 March 2009 18:51 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
I don't think that's true, or something has changed. I was the one that
requested the Clean notification to be put in several years ago. It's
purpose was to let me know a clean was requested so that I could delete
some files in metadata area. I received notifications no matter whether
any files had changed or been deleted or not.
Paul Fullbright wrote:
> I didn't mention pre_build because we're more interested in doing
> something after the build has been launched, but it does suffer from the
> same problem as post_build. If there are no resource changes since the
> last build, there is no event.
>
> Rich Kulp wrote:
>
>> Then capture pre_build instead of post_build.
>
>> Paul Fullbright wrote:
>>> You mean the getBuildKind() query? If so, I do know about that, but
>>> the problem is that the POST_BUILD event will not be broadcast if
>>> there are no resource changes (if there is no resource delta). So
>>> this method of capturing that a clean has happened is not reliable.
>>> I would like to know *every* time a clean has been invoked, whether
>>> or not resources are changed as a result.
>>>
>>> Rich Kulp wrote:
>>>
>>>> Hi,
>>>
>>>> There is a clean event in the resources listener.
>>>
>>>> Paul Fullbright wrote:
>>>>> Is there a way to capture when a project clean occurs *other* than
>>>>> adding a builder? We don't "build" anything, but we do want to
>>>>> know when it occurs, especially a clean.
>>>>>
>>>>> A resource listener isn't quite enough, because if no resource
>>>>> changes, then there is no post build event.
>>>>>
>>>
>>>
>>>
>
>
>
--
Thanks,
Rich Kulp
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03713 seconds