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 62565

Summary: Understand ${user.home} in ${netbeans.user}
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: -- Other --Assignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: blocker CC: apireviews, jglick
Priority: P3 Keywords: API_REVIEW_FAST
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 61073    
Attachments: Change in code, test and note in arch document

Description Jaroslav Tulach 2005-08-18 11:10:38 UTC
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" />
Comment 1 Jaroslav Tulach 2005-08-18 11:11:44 UTC
Created attachment 24031 [details]
Change in code, test and note in arch document
Comment 2 Jesse Glick 2005-08-18 15:12:44 UTC
I thought you were going to have a special launcher JAR for JNLP apps anyway? If
so, why can't that do this work?
Comment 3 Jaroslav Tulach 2005-08-19 09:52:30 UTC
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. 
 
Comment 4 Jesse Glick 2005-08-19 16:21:52 UTC
Just asking - if we can just as easily do without the API change then we might
as well, right?

Re. tests, arch - fine.
Comment 5 Jaroslav Tulach 2005-08-22 13:38:12 UTC
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 
 
Comment 6 Jaroslav Tulach 2005-08-22 13:39:47 UTC
Integrated. The arch.xml is pretty empty now, but I made jglick an author of 
the document, so it might get fuller over time.