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.
dev build 200503161050 I am using the Wicket framework: http://wicket.sourceforge.net/ It fits on top of the servlet framework and one places HTML files alongside java files. So say I have packageName/className.java I would also have packageName/className.html If I modify the java file and hit F6 (run) then Netbeans picks up the changes, regenerates the WAR file before running the webapp. The problem is that if the HTML file is modified, Netbeans ignores the change and does not regenerate the WAR file. Expected behavior: The war file should get regenerated if *any* of the files within it get changed.
Gili, I think I know what could be the problem, but I think the descriptpion is not exact. When I test this the war file actually gets updated with the html file, as well as the build folder. The problem is that when you only change an html file the web module is not reloaded in server, like it does when you change a java class. This is an optimization ("incremental deployment") that netbeans does. If the framework you are using requires reloading a module when you change an html file this would be the problem. To test this: 1. change the html file 2. use "Deploy Project" action (this will undeploy the module and deploy it again) 3. use Run Project action 4. See if the module works as expected If you confirm that this is the problem I will change the deployment logic to reload the module for any change in WEB-INF/classes/**.*, including html files. Thanks!
BTW: it must be pain to use this framework when netbeans does not let you create an html file in sources package, no? Should not we make this possible? I think we should add "Project folder" to the combo box Location. Speak up!
That did it (manual deployment). Please make the changes your proposed. On the topic of creating HTML files into the Java package, see http://www.netbeans.org/issues/show_bug.cgi?id=56207 I filed a while back. Would be nice if someone scheduled it for 4.1 :)
Ok, fixed; I think potential small perf impact in deployment is not worth the risk - any file change in WEB-INF/classes triggered reload. cvs commit -m "56685 Netbeans ignores changes in non-Java dependencies\n(any change in WEB-INF/c..." src\org\netbeans\modules\j2ee\deployment\impl\ServerFileDistributor.java (in directory C:\nb_all\j2eeserver\) Checking in src/org/netbeans/modules/j2ee/deployment/impl/ServerFileDistributor.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerFileDistributor.java,v <-- ServerFileDistributor.java new revision: 1.21; previous revision: 1.20 done