I am currently working on Graal and using NetBeans. In Graal one can use any IDE, just call:
$ mx.sh ideinit
and you should be able to open all the projects in any IDE. That allows people to compare:
One thing where NetBeans lacks behind Eclipse is compile on save feature.
After a bit of analysis it turned out that the missing piece is ability to invoke a custom trigger when Java file is saved and its .class file is generated. Such hook would allow us to register code to JAR the classes into appropriate location, etc.
One possible way to realize this is a property in project.properties
which would invoke
ant -f build.xml nameoftarget
on the main build script.
Fixed jet-main a99b75ac5d61
I've added support in MX to generate $cos.update:
That isn't however enough. NetBeans needs to really get convinced to enable CoS. Currently that could be:
Created attachment 160026 [details]
Replacing .netbeans* files with a query like approach
I am not really satisfied with https://github.com/jtulach/mx/commit/f1c260d40485d8010b0833909bd84e0b42c6d20b
I believe this patch better suites the over NetBeans project philosophy: ask a query and give the projects an ultimate control over the final decision.
I believe that existence of $cos.update property is a great indicator of the user will to really enable CoS.
With the attached patch, it is enough to use just https://github.com/jtulach/mx/commit/e26f91d6a6070820c56fd764bd2aa36ca0112224 and get reasonable CoS behavior for all mx based projects.
Tomáši, I know you were working on "ResourceSet" that could be used from the Ant task to copy the class files/resource files. Can you update this issue with information about such enhancement? Thanks.
Created attachment 161629 [details]
Created attachment 161664 [details]
Patch with FileBuiltQuery.
Fixed jet-main 4c7e68ea7d33
I wrote some documentation at http://wiki.netbeans.org/FaqCompileOnSave#Custom_Actions_on_Compile_on_Save
Thanks a lot Jardo!
BTW: Any idea about the unexpected changes?
Integrated into 'main-silver', will be available in build *201608270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Zezula <email@example.com>
Log: #252595:Missing "onsave" project hook for J2SE Ant build.xml