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 245507

Summary: Prevent writing any files to disk during start
Product: serverplugins Reporter: Jiri Skrivanek <jskrivanek>
Component: WildFlyAssignee: ehsavoie <ehsavoie>
Status: VERIFIED FIXED    
Severity: normal CC: pjiricka
Priority: P1    
Version: 8.0.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 245648    

Description Jiri Skrivanek 2014-07-09 08:44:43 UTC
Please, evaluate whether writing files to disk during start is necessary. To reproduce:

ant -k -f java.kit -Dtest.config=uicommit test test-generate-html

Error output:

Writing any files to disk during start is inefficient and usualy unnecessary.
Consider using declarative registration in your layer.xml file, or delaying
the initialization of the whole subsystem till it is really used.
In case it is necessary to perform the write, you can modify the
'allowed-file-write.txt' file in ide.kit module. More details at
http://wiki.netbeans.org/FitnessViaWhiteAndBlackList

java.lang.Exception: checkWrite: C:\space\hudson\workspace\CommitValidationUI-trunk\jdk\jdk7\label\win8\testdistribution\qa-functional\work\org-netbeans-modules-java-kit\userdir0\config\Preferences\org\netbeans\modules\javaee\wildfly.properties
	at org.netbeans.test.ide.CountingSecurityManager.checkWrite(CountingSecurityManager.java:416)
Comment 1 ehsavoie 2014-07-16 08:25:07 UTC
I'll move the notification mecanism to the 'first' use of the plugin.
Comment 2 ehsavoie 2014-07-17 07:58:15 UTC
Notification and file access happens on the first use of the plugin instead of during its loading.
Comment 3 Quality Engineering 2014-07-18 01:52:19 UTC
Integrated into 'main-silver', will be available in build *201407180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2b64abe480b4
User: Emmanuel Hugonnet <ehsavoie@netbeans.org>
Log: Fixing #245648 and #245507 by moving the changelog notification mecanism to the first effective use of the plugin.