[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[stellation-res] Windows Issues
|
In the process of testing the MySQL integration I have discovered a Windows
based issue that I will have to deal with before proceeding further with the
MySQL testing.
There are a number of places in Stellation where file paths are stored in
String objects and these objects are then compared with the equals() method.
The problem is that Windows file paths are case insensitive while Unix file
paths are case sensitive. This means that these comparisions should be done
in a platform sensitive manner.
I stumbled over this problem when testing the "clean" command. It turns out
that the paths for directories in a workspace, e.g compound artifacts are
stored as Strings in a TreeMap object. On Windows, when trying to determine
if the workspace directory was part of the project, the case sensitive
compare failed when it should have succeeded. The final result was that all
files were removed from the workspace directory which was a little
unfriendly.
I need some help from the Stellation team in identifying all the areas where
this problem exists in the codebase. So far I know of two areas, the one
discussed above and the storage and handling of paths and path fragments
used in the "preserves" handling. Another potential area may be the storage
of paths in the database itself.
Once all the areas have been identified, I will develop an initial strategy
for dealing with this set of problems and will present it for review by the
team before proceeding to implement any changes to deal with this issue.
Regards
Jonathan Gossage
Personal Email
jgossage@xxxxxxxx
Business Email
jonathan@xxxxxxxxxxxxxx