How do I know build is successful? [message #52315] |
Wed, 28 May 2003 15:34  |
Eclipse User |
|
|
|
Originally posted by: wgyun.hotmail.com
Hi there,
I have to use IProject.build function, is there a way that I know whether
the build is successful or not, since my next action after the build is try
to package the class files depends on build result, but unfortunately, I
haven't found out a way to detect that. Can anyone shed some light on this?
Much thanks!
|
|
|
Re: How do I know build is successful? [message #54177 is a reply to message #52315] |
Thu, 29 May 2003 12:19   |
Eclipse User |
|
|
|
A bit of a guess, but may help: I'd look for IMarkers on your resources that
are of the appropriate type (you say "class files" so I assume you are building
a java/plugin project). The type would be IMarker.PROBLEM, and you can find
them on a given IResource using the instance method findMarkers(String type,
boolean includeSubtypes, int depth); probably you'll want to use an
IResourceVisitor implementation to look for them.
HTH,
Paul K
Cindy Wen wrote:
> Hi there,
> I have to use IProject.build function, is there a way that I know whether
> the build is successful or not, since my next action after the build is try
> to package the class files depends on build result, but unfortunately, I
> haven't found out a way to detect that. Can anyone shed some light on this?
> Much thanks!
|
|
|
Re: How do I know build is successful? [message #54345 is a reply to message #54177] |
Thu, 29 May 2003 12:41   |
Eclipse User |
|
|
|
Originally posted by: wgyun.hotmail.com
Actually I have the same idea with you but just wondering there might be an
easier way, seems I can't be lazy :-)
Thanks!
"Paul T. Keyser" <rolarenfan@earthlink.net> wrote in message
news:3ED63303.B28E39FE@earthlink.net...
> A bit of a guess, but may help: I'd look for IMarkers on your resources
that
> are of the appropriate type (you say "class files" so I assume you are
building
> a java/plugin project). The type would be IMarker.PROBLEM, and you can
find
> them on a given IResource using the instance method findMarkers(String
type,
> boolean includeSubtypes, int depth); probably you'll want to use an
> IResourceVisitor implementation to look for them.
>
> HTH,
> Paul K
>
> Cindy Wen wrote:
>
> > Hi there,
> > I have to use IProject.build function, is there a way that I know
whether
> > the build is successful or not, since my next action after the build is
try
> > to package the class files depends on build result, but unfortunately, I
> > haven't found out a way to detect that. Can anyone shed some light on
this?
> > Much thanks!
>
|
|
|
Re: How do I know build is successful? [message #56632 is a reply to message #54345] |
Fri, 30 May 2003 15:57  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
The java builder produces markers of type:
IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER
So, you can find them like this:
project.findMarkers(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARK ER, true,
IResource.DEPTH_INFINITE);
--
Cindy Wen wrote:
> Actually I have the same idea with you but just wondering there might be an
> easier way, seems I can't be lazy :-)
> Thanks!
>
> "Paul T. Keyser" <rolarenfan@earthlink.net> wrote in message
> news:3ED63303.B28E39FE@earthlink.net...
>
>>A bit of a guess, but may help: I'd look for IMarkers on your resources
>
> that
>
>>are of the appropriate type (you say "class files" so I assume you are
>
> building
>
>>a java/plugin project). The type would be IMarker.PROBLEM, and you can
>
> find
>
>>them on a given IResource using the instance method findMarkers(String
>
> type,
>
>>boolean includeSubtypes, int depth); probably you'll want to use an
>>IResourceVisitor implementation to look for them.
>>
>>HTH,
>>Paul K
>>
>>Cindy Wen wrote:
>>
>>
>>>Hi there,
>>>I have to use IProject.build function, is there a way that I know
>>
> whether
>
>>>the build is successful or not, since my next action after the build is
>>
> try
>
>>>to package the class files depends on build result, but unfortunately, I
>>>haven't found out a way to detect that. Can anyone shed some light on
>>
> this?
>
>>>Much thanks!
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04703 seconds