[josm-dev] Relative links in preferences.xml

Dirk Stöcker openstreetmap at dstoecker.de
Sat May 3 15:04:34 UTC 2014


On Sat, 3 May 2014, Alex Rollin wrote:

> I am looking at the preferences.xml file and I cannot figure out how to put
> in a relative link.
> I see only absolute links like "C:Users/blahblah/Desktop/josm/etc/HDM.xml"

See:
http://josm.openstreetmap.de/doc/org/openstreetmap/josm/io/MirroredInputStream.html#MirroredInputStream%28java.lang.String,%20java.lang.String,%20java.lang.String%29
for supported arguments.

A relative link is simply a path without any specifics before.

But here comes the "relative to what"?

Normally these are relative to the current directory a user starts the 
application from. If you ensure that before the start the directory is 
set accordingly, then this may work as expected.

You probably search more for a "relative to josm dir". I don't think we 
have anything like this ATM. Some elements (like images) have search path 
somewhere in josm directory. Most not.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)



More information about the josm-dev mailing list