Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to add a builder for javanature.
How to add a builder for javanature. [message #176254] Wed, 01 September 2004 17:30 Go to next message
Eclipse UserFriend
Originally posted by: vikram.naik.patni.com

Hello,

We need to do some post javabuild process, for that can we add a builder
to javanature ?

Please comment.

Thanks & Regards,
Vikram.
Re: How to add a builder for javanature. [message #176270 is a reply to message #176254] Wed, 01 September 2004 18:43 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
More simply you could add an external tool builder that is positioned to run
after the Java builder
Right click on your project->Builders

HTH
Darins

"Vikram Naik" <vikram.naik@patni.com> wrote in message
news:ch50tv$963$1@eclipse.org...
> Hello,
>
> We need to do some post javabuild process, for that can we add a builder
> to javanature ?
>
> Please comment.
>
> Thanks & Regards,
> Vikram.
>
Re: How to add a builder for javanature. [message #176282 is a reply to message #176270] Wed, 01 September 2004 17:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vikram.naik.patni.com

Hi Darins,

Thanks for the quick response. We are trying to make a jar after the
class files compiled.
Invoking ant process after change or build is bit too heavy.

Can you please suggest how to add another builder ( probably a plugin ) ?

Thanks,
Vikram.



Darin Swanson wrote:
> More simply you could add an external tool builder that is positioned to run
> after the Java builder
> Right click on your project->Builders
>
> HTH
> Darins
>
> "Vikram Naik" <vikram.naik@patni.com> wrote in message
> news:ch50tv$963$1@eclipse.org...
>
>>Hello,
>>
>>We need to do some post javabuild process, for that can we add a builder
>>to javanature ?
>>
>>Please comment.
>>
>>Thanks & Regards,
>>Vikram.
>>
>
>
>
Re: How to add a builder for javanature. [message #176289 is a reply to message #176282] Wed, 01 September 2004 18:57 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Please indicate why you think that adding an ant build is heavy weight?
You can scope when the build occurs, what type of build triggers it, and the
builds are pretty fast :-)
I don't see how adding a plugin is any less heavy weight.

Darins

"Vikram Naik" <vikram.naik@patni.com> wrote in message
news:41360A48.2010105@patni.com...
> Hi Darins,
>
> Thanks for the quick response. We are trying to make a jar after the
> class files compiled.
> Invoking ant process after change or build is bit too heavy.
>
> Can you please suggest how to add another builder ( probably a plugin ) ?
>
> Thanks,
> Vikram.
>
>
>
> Darin Swanson wrote:
> > More simply you could add an external tool builder that is positioned to
run
> > after the Java builder
> > Right click on your project->Builders
> >
> > HTH
> > Darins
> >
> > "Vikram Naik" <vikram.naik@patni.com> wrote in message
> > news:ch50tv$963$1@eclipse.org...
> >
> >>Hello,
> >>
> >>We need to do some post javabuild process, for that can we add a builder
> >>to javanature ?
> >>
> >>Please comment.
> >>
> >>Thanks & Regards,
> >>Vikram.
> >>
> >
> >
> >
>
Re: How to add a builder for javanature. [message #176366 is a reply to message #176289] Thu, 02 September 2004 06:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vikram.naik.patni.com

Adding an Ant build would mean, its upto the developer to customize the
project created, manually adding the builder. We want this to be
implicit, if a project of java nature is created, along with java
builder, builder supplied by us should be added.

With Ant after some 10 - 15 runs in the IDE, we always get OutOfMemory
Errors.

The builder we are planning is supposed to zip the class files &
resources in that project to be thrown at particular location.

Thanks,
Vikram.


Darin Swanson wrote:
> Please indicate why you think that adding an ant build is heavy weight?
> You can scope when the build occurs, what type of build triggers it, and the
> builds are pretty fast :-)
> I don't see how adding a plugin is any less heavy weight.
>
> Darins
>
> "Vikram Naik" <vikram.naik@patni.com> wrote in message
> news:41360A48.2010105@patni.com...
>
>>Hi Darins,
>>
>>Thanks for the quick response. We are trying to make a jar after the
>>class files compiled.
>>Invoking ant process after change or build is bit too heavy.
>>
>>Can you please suggest how to add another builder ( probably a plugin ) ?
>>
>>Thanks,
>>Vikram.
>>
>>
>>
>>Darin Swanson wrote:
>>
>>>More simply you could add an external tool builder that is positioned to
>
> run
>
>>>after the Java builder
>>>Right click on your project->Builders
>>>
>>>HTH
>>>Darins
>>>
>>>"Vikram Naik" <vikram.naik@patni.com> wrote in message
>>>news:ch50tv$963$1@eclipse.org...
>>>
>>>
>>>>Hello,
>>>>
>>>>We need to do some post javabuild process, for that can we add a builder
>>>>to javanature ?
>>>>
>>>>Please comment.
>>>>
>>>>Thanks & Regards,
>>>>Vikram.
>>>>
>>>
>>>
>>>
>
>
Re: How to add a builder for javanature. [message #176422 is a reply to message #176366] Thu, 02 September 2004 16:51 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Thanks Vikram.

Just some more notes:
The Ant builder would be an External tool builder and these builds are
shared with the project via your version control (the .project file is
modified and a .launch file is added in a special ".externalToolBuilders"
folder in the project hierarchy). All developers would get the builder for
"free"

The OOM is unfortunate. The best workarounds for these leaks is to launch
the build in a separate JRE. See the JRE tab of the Ant launch configuration
either for "normal" Ant builds or for external tool builder Ant builds.

An Ant external tool builder would handle your case nicely. We do exactly
what you are requesting this for several of the Ant integration and debug
plugins developed within Eclipse.

Good luck with whatever you decide

Darins

"Vikram Naik" <vikram.naik@patni.com> wrote in message
news:ch6f9m$ba1$1@eclipse.org...
>
> Adding an Ant build would mean, its upto the developer to customize the
> project created, manually adding the builder. We want this to be
> implicit, if a project of java nature is created, along with java
> builder, builder supplied by us should be added.
>
> With Ant after some 10 - 15 runs in the IDE, we always get OutOfMemory
> Errors.
>
> The builder we are planning is supposed to zip the class files &
> resources in that project to be thrown at particular location.
>
> Thanks,
> Vikram.
>
>
> Darin Swanson wrote:
> > Please indicate why you think that adding an ant build is heavy weight?
> > You can scope when the build occurs, what type of build triggers it, and
the
> > builds are pretty fast :-)
> > I don't see how adding a plugin is any less heavy weight.
> >
> > Darins
> >
> > "Vikram Naik" <vikram.naik@patni.com> wrote in message
> > news:41360A48.2010105@patni.com...
> >
> >>Hi Darins,
> >>
> >>Thanks for the quick response. We are trying to make a jar after the
> >>class files compiled.
> >>Invoking ant process after change or build is bit too heavy.
> >>
> >>Can you please suggest how to add another builder ( probably a plugin )
?
> >>
> >>Thanks,
> >>Vikram.
> >>
> >>
> >>
> >>Darin Swanson wrote:
> >>
> >>>More simply you could add an external tool builder that is positioned
to
> >
> > run
> >
> >>>after the Java builder
> >>>Right click on your project->Builders
> >>>
> >>>HTH
> >>>Darins
> >>>
> >>>"Vikram Naik" <vikram.naik@patni.com> wrote in message
> >>>news:ch50tv$963$1@eclipse.org...
> >>>
> >>>
> >>>>Hello,
> >>>>
> >>>>We need to do some post javabuild process, for that can we add a
builder
> >>>>to javanature ?
> >>>>
> >>>>Please comment.
> >>>>
> >>>>Thanks & Regards,
> >>>>Vikram.
> >>>>
> >>>
> >>>
> >>>
> >
> >
>
Re: How to add a builder for javanature. [message #176429 is a reply to message #176422] Thu, 02 September 2004 15:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

You are probably getting the out of memory because you are running the
ant file within the Eclipse IDE VM. there is "feature" of ant that
doesn't clean itself up between runs in the vm and stuff accumulates. If
you run it in a separate vm then it gets a fresh clean one each time.
You can select this on the configuration page for the ant builder. The
only problem is that you don't have access to eclipse specific tasks if
you need them.

--
Thanks, Rich Kulp

Re: How to add a builder for javanature. [message #176514 is a reply to message #176429] Sun, 05 September 2004 12:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vikram.naik.patni.com

Thanks everyone for your respone.

Tried to use Ant as build option, unfortunately found that when the ant
is ran in separate VM, and the output option is turned off, the console
removed from view, something goes wrong with the build.

As the project can be build quite often while code development, didnt
want to distract the developer with the output generated from the Ant
process. But seems there is some limitation over there.

So atlast reverted back to second option, used the jdt plugin's
NewJavaProjectWizard to create the java project and add custom builder
which runs silently in the background.

Thanks,
-Vikram.

Rich Kulp wrote:
> You are probably getting the out of memory because you are running the
> ant file within the Eclipse IDE VM. there is "feature" of ant that
> doesn't clean itself up between runs in the vm and stuff accumulates. If
> you run it in a separate vm then it gets a fresh clean one each time.
> You can select this on the configuration page for the ant builder. The
> only problem is that you don't have access to eclipse specific tasks if
> you need them.
>
Re: How to add a builder for javanature. [message #176752 is a reply to message #176514] Tue, 07 September 2004 03:11 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
"Vikram Naik" <vikram.naik@patni.com> wrote in message
news:chf0tt$te9$1@eclipse.org...
> Thanks everyone for your respone.
>
> Tried to use Ant as build option, unfortunately found that when the ant
> is ran in separate VM, and the output option is turned off, the console
> removed from view, something goes wrong with the build.
>
> As the project can be build quite often while code development, didnt
> want to distract the developer with the output generated from the Ant
> process. But seems there is some limitation over there.
>

Could you please take the time to detail what went wrong? I am always
interested in limitations that can be removed :-)

Darins
Previous Topic:Can Eclipse automatically remove empty packages?
Next Topic:code completion
Goto Forum:
  


Current Time: Fri Aug 16 14:27:25 GMT 2024

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

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

Back to the top