Bug 441467 - [IDE] Compile current unit
Summary: [IDE] Compile current unit
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2014-08-10 13:51 EDT by Tushar Kapila CLA
Modified: 2019-11-27 07:48 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tushar Kapila CLA 2014-08-10 13:51:59 EDT
Love a menu option to compile just the current unit (Java class in my case).

Why : boring to make multiple working sets, I just want to compile the current file so jrebel can detect and push it in to my tomcat running from command prompt


Would be coller to choose a bunch of classes and compile but just one at a time is fine too.

Why not use build project : tried but it does not work. might be something to do with hybiris/ custom ant.

Why not use build ayutomatically : yes this works for small projects. We have 15 modules of hybris and 5 of our own. Not sure how many java and xmls. Does not work even with 16GB RAM and an okay 4 core.

Workaround : If i add a useless main method with just a :

    System.out.println("For quick compile only");

Then choose Run AS, Java application, IDE compiles it!

Rather have a menu as I edit 5-6 new classes every week.
Comment 1 Sarika Sinha CLA 2014-08-10 22:53:31 EDT
By setting the Preferences as "Build Automatic" or clicking on Build, the files will be compiled. Does it not serve your purpose ? Any specific reason ?
Comment 2 Michael Rennie CLA 2014-08-11 10:19:21 EDT
Platform IDE currently provides the Build All, etc commands, so it would make sense for them to also provide a Build Selected (which it sounds like is being asked for here)
Comment 3 Lars Vogel CLA 2019-11-27 07:48:20 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.