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 52152 - changes in files under WEB-INF are not sychronized to build directory
Summary: changes in files under WEB-INF are not sychronized to build directory
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-07 13:01 UTC by Lubomir Brychta
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lubomir Brychta 2004-12-07 13:01:45 UTC
Changes in files (xml,properties,..) under
directory WEB-INF are not synchronized (alter Save
action) to build/web/WEB-INF directory..This
feature works fine in NB4.0 Beta2..and in other
IDEs. The development without synchro is realy
confusing and slower..
Comment 1 zikmund 2004-12-07 13:10:49 UTC
Which build have you used? It works for me in build 200412011810 (RC2).

My scenario was:
1) Create WEB-INF/a.xml file
2) Clea&Build
3) edit a.xml file
4) Save
5) Go to Files tab and open a.xml file
Comment 2 Lubomir Brychta 2004-12-07 14:10:14 UTC
sorry, exactly this doesn't work under WEB-INF/classes directory:
Scenario:
1.) Projects: create b.xml in WEB-INF/classes
2.) Look at Files: build/web/WEB-INF/classes/ => b.xml isn't created
3.) ant: Build: now exists build/web/WEB-INF/classes/b.xml
4.) edit b.xml and Save
5.) Files: build/web/WEB-INF/classes/b.xml is without any change
6.) ant build: till now is b.xml synchronized (ant copy)

Comment 3 zikmund 2004-12-07 18:30:08 UTC
Well, I have discussed it with developers and the conclusion is that
it is 'as designed'. We consider web content to be synchronized on
save and sources not, because web content is more dynamic and it is
not so problematic to fix bugs (especially web pages design) on
runtime. Workaround for this is Build the project.
Anyway you're right it is a good enhancement - but we would need more
thinking about which file types are OK to synchronize to build folder
and which not (e.g. java files).
Decreasing to P3 and changing to Enhancement. Feel free to comment.
Comment 4 Lubomir Brychta 2004-12-08 09:51:06 UTC
The sources synchro (xml,properties, not java source files) is good
for frameworks like Hibernate, Spring, Tapestry, Velocity etc. And for
old good ResourceBundle properties files too. Think case: a large
project with thousand classes. Every build action takes about 30s (no
a compilation, only control which sources are new), reload web app
takes 5s. With the synchro you need only reload (and when you create
some Hibernate utilities you doesn't need reload too, only enhance
Hibernate class again! - takes 50ms!)...I must say again, that this
works in NetBeans 4.0 Beta2!! Another IDEs have it (IntelliJ let you
to configure which filetypes synchonized and which not) and I don't
understand  who can be interested in the removal (maybe some Eclipse
agent?:) ) and which advantage we was gain... It was probably very
hard work :). Cheers
Comment 5 zikmund 2004-12-08 11:09:48 UTC
NB 4.0 beta2 had it because it was a bug: all WEB-INF/classes content
(even java files) was copied to build directory on save.
Anyway I agree it sounds like reasonable feature to have "Synchronized
file types" customization - best would be create new one FEATURE issue
and close this one as DUPLICATE since this one is only a part of
"Synchronized file types" customization.
Comment 6 Lubomir Brychta 2004-12-08 11:41:17 UTC

*** This issue has been marked as a duplicate of 52190 ***
Comment 7 ceklock 2011-09-19 22:42:34 UTC
Have to check if this is already fixed.
Comment 8 Martin Balin 2016-07-07 08:55:38 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss