[Ginp-developers] Platform independent file paths
Brought to you by:
burchbri,
dougculnane
From: Brian B. <br...@Pi...> - 2007-01-08 17:11:26
|
While working on my latest unit test changes, I found there were A LOT of embedded forward-slash characters throughout the main source, as well as in the unit tests. I tried to make the build more portable by changing most of the unit tests to use File.separator instead, but didn't have the enthusiasm to go through the main classes... I could see that sometimes a forward slash was probably mandatory because it gets processed explicitly into a file path, but any changes would need a lot of care because we don't have a comprehensive set of unit tests to prove this kind of change is valid. I don't propose to do any more about this issue in the short term, but felt it was important to warn anyone thinking of building or deploying ginp on anything other than linux - beware of file path portability issues! Brian |