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.
For my work on issue 61073 I need a way to specify in the .jnlp file home directory. Of course, without knowing the actual name of the user's $HOME variable. I am proposing to add a special code to the core/startup to recognize ${user.home} in the name of home directory and replace it with the actual value. That way the JNLP file can just use <property name="netbeans.user" value="${user.home}/thenameofuserdir" />
Created attachment 24031 [details] Change in code, test and note in arch document
I thought you were going to have a special launcher JAR for JNLP apps anyway? If so, why can't that do this work?
Hmm. Possible. Is your comment request/advice or just a comment? Right now the launcher is in apisupport/harness/jnlp-src/ where shall I put the tests? apisupport/harness/test/unit? I guess I should also create arch.xml for the harness then.
Just asking - if we can just as easily do without the API change then we might as well, right? Re. tests, arch - fine.
cvs -q ci -m "#62565: As agreed during the review, the support for locating userdir should be in JNLP launcher and not in the default one" RCS file: /cvs/apisupport/harness/arch.xml,v done Checking in arch.xml; /cvs/apisupport/harness/arch.xml,v <-- arch.xml initial revision: 1.1 done Checking in jnlp-src/org/netbeans/modules/apisupport/jnlplauncher/Main.java; /cvs/apisupport/harness/jnlp-src/org/netbeans/modules/apisupport/jnlplauncher/Main.java,v <-- Main.java new revision: 1.2; previous revision: 1.1 done Checking in nbproject/project.properties; /cvs/apisupport/harness/nbproject/project.properties,v <-- project.properties new revision: 1.8; previous revision: 1.7 done RCS file: /cvs/apisupport/harness/test/.cvsignore,v done Checking in test/.cvsignore; /cvs/apisupport/harness/test/.cvsignore,v <-- .cvsignore initial revision: 1.1 done RCS file: /cvs/apisupport/harness/test/build-unit.xml,v done Checking in test/build-unit.xml; /cvs/apisupport/harness/test/build-unit.xml,v <-- build-unit.xml initial revision: 1.1 done RCS file: /cvs/apisupport/harness/test/build.xml,v done Checking in test/build.xml; /cvs/apisupport/harness/test/build.xml,v <-- build.xml initial revision: 1.1 done RCS file: /cvs/apisupport/harness/test/cfg-unit.xml,v done Checking in test/cfg-unit.xml; /cvs/apisupport/harness/test/cfg-unit.xml,v <-- cfg-unit.xml initial revision: 1.1 done RCS file: /cvs/apisupport/harness/test/unit/src/org/netbeans/modules/apisupport/jnlplauncher/ReplaceUserDirTest.java,v done Checking in test/unit/src/org/netbeans/modules/apisupport/jnlplauncher/ReplaceUserDirTest.java; /cvs/apisupport/harness/test/unit/src/org/netbeans/modules/apisupport/jnlplauncher/ReplaceUserDirTest.java,v <-- ReplaceUserDirTest.java initial revision: 1.1 done
Integrated. The arch.xml is pretty empty now, but I made jglick an author of the document, so it might get fuller over time.