Why File#getCanonicalPath()

Hi,

why does Idea use the canonical path when I define libs?
It is very, very annoying that I always have to redefine my libs
whenever I update my symlinks (e.g. when updating to the newest EAP).



Johannes Schneider

6 comments
Comment actions Permalink

Johannes Schneider wrote:

It is very, very annoying that I always have to redefine my libs
whenever I update my symlinks (e.g. when updating to the newest EAP).


Hear, hear.

CU,
Edwin

0
Comment actions Permalink

On Mon, 01 Aug 2005 12:13:00 +0200, Johannes Schneider wrote:

why does Idea use the canonical path when I define libs?


It happens elsewhere too :

<http://www.intellij.net/tracker/idea/viewSCR?publicId=51375>

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

You can define path variable containing the path to your libraries. Thus all library urls, when saved, will be relative to this
variable.

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Eugene,
Can you explain how this works? I've seen the variables, but I have no idea how to reference them!

0
Comment actions Permalink

Hello Pat,

Eugene,
Can you explain how this works? I've seen the variables, but I have no
idea how to reference them!


You don't have to reference them. When project is saved, all actual paths
are converted into appropriate variables according to configured mappings
in Settings | Path Variables, when project is loaded variables are converted
back to actual locations.

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Ah ha! I see -- not exactly the most intuitive thing, but very helpful. I wish it could also work for things like VM params and working paths when running a program in the project.

0

Please sign in to leave a comment.