This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Missing "onsave" project hook for J2SE Ant build.xml | ||
---|---|---|---|
Product: | java | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jlahoda |
Priority: | P3 | ||
Version: | 8.0.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 269161 | ||
Bug Blocks: | |||
Attachments: |
Replacing .netbeans* files with a query like approach
Proposed patch Proposed patch |
Description
Jaroslav Tulach
2015-05-26 14:25:54 UTC
Ping? Fixed jet-main a99b75ac5d61 I've added support in MX to generate $cos.update: https://github.com/jtulach/mx/commit/e26f91d6a6070820c56fd764bd2aa36ca0112224 That isn't however enough. NetBeans needs to really get convinced to enable CoS. Currently that could be: https://github.com/jtulach/mx/commit/f1c260d40485d8010b0833909bd84e0b42c6d20b 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]
Proposed patch
Created attachment 161664 [details]
Proposed patch
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) Changeset: http://hg.netbeans.org/main-silver/rev/4c7e68ea7d33 User: Tomas Zezula <tzezula@netbeans.org> Log: #252595:Missing "onsave" project hook for J2SE Ant build.xml |