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.

Bug 167170

Summary: COS does not propagate non-class events
Product: java Reporter: Petr Hejl <phejl>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: blocker CC: bht, pjiricka, vstejskal
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 145666    

Description Petr Hejl 2009-06-16 16:17:06 UTC
Changes in non-java files such as property files are not handled by compile on save infrastructure. No events are fired
so Java EE project/infrastructure can't notify server plugin to reload the application.
Comment 1 Vitezslav Stejskal 2009-09-16 09:39:33 UTC
Petr, could you please be more specific? What are you listening on? What events are you expecting to arrive? Could you
describe a simple test scenario? Thanks a lot
Comment 2 Petr Hejl 2009-09-16 15:06:02 UTC
We are listening via BuildArtifactMapper.addArtifactsUpdatedListener. However only events for updated sources are
delivered. Users expect even changes in property files or other resources placed in source root will have Compile/Deploy
on save effect. So there is need to deliver events via existing or new infrastructure for such events-files.

Also see the issue which this issue blocks for real usecase.
Comment 3 Jan Lahoda 2009-09-21 08:05:07 UTC
*** Issue 168591 has been marked as a duplicate of this issue. ***
Comment 4 Jan Lahoda 2009-09-24 09:13:06 UTC
I tried to do resources copying, only for the Web projects case:
http://hg.netbeans.org/main-silver?cmd=changeset;node=0f1ddc25c805
Comment 5 Quality Engineering 2009-09-25 09:09:36 UTC
Integrated into 'main-golden', will be available in build *200909241442* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0f1ddc25c805
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #167170: automatically synchronize resources to target folder for Deploy on Save.