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 56685 - Netbeans ignores changes in non-Java dependencies
Summary: Netbeans ignores changes in non-Java dependencies
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-20 01:58 UTC by _ gtzabari
Modified: 2005-03-20 04:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2005-03-20 01:58:12 UTC
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.
Comment 1 Pavel Buzek 2005-03-20 03:34:14 UTC
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!
Comment 2 Pavel Buzek 2005-03-20 03:41:58 UTC
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!
Comment 3 _ gtzabari 2005-03-20 03:49:37 UTC
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 :)
Comment 4 Pavel Buzek 2005-03-20 04:07:13 UTC
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