Hi All,
I found some insightful threads about how java handles changing the
working directory of a Java program. They are:
http://forums.sun.com/thread.jspa?threadID=665110&messageID=3894504
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4045688
In short, there is no way to change the working directory of a running
Java program.
So, this means that there is almost no reason for JavaGit to be using
File.getAbsolutePath() in any of its code because the "user.dir"
system almost never be the correct location to resolve a relative
reference against. Thus, File.getPath() is sufficient for all places
where we get the path from a File instance.
Cheers,
James
|