Question about building projects [message #319922] |
Wed, 05 September 2007 16:44  |
Eclipse User |
|
|
|
Originally posted by: ku_long.hotmail.com
Hey,
In our plug-in, we use our special compiler to compile
projects not general java SDK. Each project will have
a compile command. According to the design of our compiler,
it is not efficient to execute compile commands one by
one; it is supposed to create compile commands for all
the projects which are going to be compiled and then
execute them in a batch (our compiler can optimize the
compile process). Thus, I am wondering, in eclipse, is
it possible for me to know how many projects are going
to be compiled? For example, if we chose "build all",
"build project", "build working set", different numbers
of projects will be compiled. If I can get the information
about how many or what project eclipse is going to compile,
I can try to catch the compile commands and run them in
a batch at the end.
Thanks.
Raymond
|
|
|
|
|
|
|
Re: Question about building projects [message #320104 is a reply to message #319922] |
Tue, 11 September 2007 17:36  |
Eclipse User |
|
|
|
Originally posted by: eclipseng.arthorne.com
There is some limited information available in IResourceChangeEvent
(PRE_BUILD event). The getSource() method will tell you if it's a
project build or a workspace build. However, the actual build is fairly
complicated, and the set of builders that will actually be invoked
cannot be computed in advance in the general case.
--
Raymond wrote:
> Hey,
>
> In our plug-in, we use our special compiler to compile
> projects not general java SDK. Each project will have
> a compile command. According to the design of our compiler, it is not
> efficient to execute compile commands one by one; it is supposed to
> create compile commands for all the projects which are going to be
> compiled and then execute them in a batch (our compiler can optimize the
> compile process). Thus, I am wondering, in eclipse, is it possible for
> me to know how many projects are going to be compiled? For example, if
> we chose "build all", "build project", "build working set", different
> numbers
> of projects will be compiled. If I can get the information
> about how many or what project eclipse is going to compile,
> I can try to catch the compile commands and run them in
> a batch at the end.
> Thanks.
>
> Raymond
>
|
|
|
Powered by
FUDForum. Page generated in 0.02817 seconds