Hello,

I'm implementing an XXE customization as an addon (my_ext.jar) and
need to open a file the customized command needs to perform its
duties.
Reading XXE docs (and sources, thanks again Hussein!), I've found
things like xxe-config: URLs, and also the possibility to refer to
resources inside JARs using jar:jar_name.jar!/resource URLs.

I'm wondering if there's an URL scheme that resolves to the addons dir
(ex: ~/.xxe4/addon on Linux), or any other method to resolve this dir,
in a OS-independent way (that is, that will work in all OSes supported by XXE).

I can get to the file (inside the addon jar) if I use something like:

jar:file:///home/fabman/.xxe4/addon/myaddon/my_ext.jar!/atts.txt

but this only works on my Linux system (of course!) and I'd like to
know if there's a more "general" way to change to something like:

jar:file:/ADD_ONS_DIR/myaddon/my_ext.jar!/atts.txt

where ADD_ONS_DIR is this special URL scheme or another XXE variable I
can count on.

A solution that resembles this:

file:/ADD_ONS_DIR/myaddon/atts.txt

would be satisfactory also (that is, reference resources that are
outside the addon jar, but inside the myaddon/ dir).

I was considering adding a catalog file to the addon and use an URI
instead, but find this a not so elegant solution.

Hope to have been explicit enough, thank you in advance for your
accurate and prompt (as usual) answer, and have a nice 2009!

-- 
Fabi?n Mandelbaum
IS Engineer

Reply via email to