Ticket #67 (new defect)
MOLGENIS behaviour on MS Windows
| Reported by: | jvelde | Owned by: | jvelde |
|---|---|---|---|
| Priority: | major | Milestone: | MOLGENIS unplanned |
| Component: | molgenis | Keywords: | |
| Cc: | Sensitive: | ||
| Parent ID: | Scheduled: |
Description
In my MS Windows testing environment I ran into two problems concerning generating a MOLGENIS project. (there are other problems with Java file io under MS Windows but I will not adress them here)
1) The constructor of (the Windows implementation of?) FileInputStream? does not understand escaped whitespaces in file locations. For example, when the workspace is on a path with whitespaces, it will cause File Not Found exception on the res/ui folder:
molgenis/src/org/molgenis/generators/server/MolgenisResourceCopyGen.java, CopyFile? function:
InputStream in = new FileInputStream(src);
Direct solution is to create hack:
InputStream in = FileInputStream(src.getAbsolutePath().replace("%20", " "));
But maybe other characters that can occur in paths will cause the same error.
2) Some locations in Windows have no Java read/rw access.
If the workspace directory (including the molgenis source project) is a user home directory, for example:
C:\Documents and Settings\John Doe\workspace\
The molgenis generator will not be able to find the contents of the res/ui folder because of 'access denied', not 'file not found'.
Solution is to move the folder another directory, the root directory of the hard drive seems to work fine:
C:\workspace\
Maybe add a small section to the MOLGENIS manual about problems like this or fix them with coding/settings?
![(please configure the [header_logo] section in trac.ini)](http://gbic.target.rug.nl/trac/molgenis/chrome/site/molgenis_logo.jpg)