Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How do I know build is successful?
How do I know build is successful? [message #52315] Wed, 28 May 2003 15:34 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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!
>>
>
>
Previous Topic:Currupt workspace.... how to restore projects?
Next Topic:Using Different Project Files
Goto Forum:
  


Current Time: Wed Apr 16 01:38:18 EDT 2025

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

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

Back to the top