[Logo] JCVSForum - Community Support For JCVS Users and Developers
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
getTemporaryDirectory on Unix returns C:\Temp  XML
Forum Index » JCVS Developers
Author Message
Anonymous



On my Linux box the call to
cfg.getTemporaryDirectory() is returning "C:\Temp"

I inspected the defaults.properties inside jcvsii.jar and found that
#jcvsii.global.temporaryDirectory.Linux=/tmp <-- has been commented

Is this done with reason or I am missing something?
I replaced
project.setTempDirectory(cfg.getTemporaryDirectory());
with
project.setTempDirectory(System.getProperty("java.io.tmpdir"));
in ProjectFrame.java and the code works fine.

Let me know if there is a better way.
Thanks! - a great tool indeed.

Sadanand Narwate
Anonymous



Anonymous wrote:On my Linux box the call to
cfg.getTemporaryDirectory() is returning "C:\Temp"

I inspected the defaults.properties inside jcvsii.jar and found that
#jcvsii.global.temporaryDirectory.Linux=/tmp <-- has been commented

Is this done with reason or I am missing something?
I replaced
project.setTempDirectory(cfg.getTemporaryDirectory());
with
project.setTempDirectory(System.getProperty("java.io.tmpdir"));
in ProjectFrame.java and the code works fine.
I am using the same jar that I had on my windows machine.
Let me know if there is a better way.
Thanks! - a great tool indeed.

Sadanand Narwate

time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

Hmm. I thought that I had fixed that code to work ok without those properties.
If you could uncomment that property to see if it fixes the problem, I would
really appreciate that.
[Email] [WWW]
 
Forum Index » JCVS Developers
Go to:   
Powered by JForum 2.1.9 © JForum Team