| 
| Project clean event? [message #335244] | Fri, 27 March 2009 11:15  |  | 
| Eclipse User  |  |  |  |  | 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 #335251 is a reply to message #335249] | Fri, 27 March 2009 14: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 14:17   |  | 
| Eclipse User  |  |  |  |  | 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 14: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 1.08095 seconds