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.
Created attachment 130776 [details] Example Project of the The directory referred to when calling File.getAbsolutePath() differs to what it was in previous versions of NetBeans. Example Code Snippet: File file = new File(""); System.out.println(file.getAbsolutePath()); Refers to: C:\Program Files\NetBeans 7.3 Beta 2 In the Beta build downloadable on the website. Whereas in previous NetBeans versions it referred correctly to the glassfish domain, e.g. C:\Users\Lyndon\AppData\Roaming\NetBeans\7.2.1\config\GF3\domain1 See attached project for example code.
Relying on server current directory in applications is not a good idea. But I changed start up code to set current directory to be domain DAS domain directory. Checked into GlassFish Tooling Library: --------------------------------------- changeset: 479:36f66444da9b summary: Bug# 225468 - Path is set to Netbeans directory as opposed to Glassfish Domain changeset: 257:68211434d895 branch: 0.3-b036 summary: Bug# 225468 - Path is set to Netbeans directory as opposed to Glassfish Domain
checked into NetBeans web-main: ------------------------------- changeset: 249516:fa92d2536dbb branch: javaee7 summary: #225468 - Path is set to Netbeans directory as opposed to Glassfish Domain
*** Bug 226808 has been marked as a duplicate of this bug. ***
I was testing behaviour of server started with asadmin and it still differs from NetBeans GlassFish start up code. GlassFish process current directory should be domain configuration directory. GlassFish Tooling Library: -------------------------- changeset: 258:db5d624ece2f branch: 0.3-b036 summary: Bug# 225468 - GlassFish process current directory changed to domain configuration directory changeset: 480:88a87425db8d summary: Bug# 225468 - GlassFish process current directory changed to domain configuration directory NetBeans web-main: ------------------ changeset: 249517:5dfbe0993a30 branch: javaee7 summary: #225468 - GlassFish process current directory changed to domain configuration directory