Property Escaping of Whitspace

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Property Escaping of Whitspace

Fabian Lange
Hi,

i was investigating a problem why sometimes our maven settings.xml is not
found.
The reason is it is configured like this:

org.ops4j.pax.url.mvn.settings=/Users/fabian/karaf test/etc/mvn-settings.xml

It then cannot be used, because when I look via a heap dump, the

org.ops4j.pax.url.mvn.internal.AetherBasedResolver.AetherBasedResolver(MavenConfiguration,
MirrorInfo)

has a MavenConfiguration which
extends org.ops4j.util.property.PropertyStore.

This has the following value:

settings=/Users/fabian/karaf%20test/etc/mvn-settings.xml

now that file does not exist, therefor it doesn't work.

Now i wonder: is this a regression or did it never work. Is it a problem in
pax-url / util or is the property escaped already by somebody else.

I did not notice this problem with Karaf 4.0 but i might have not realized
that it also was broken there.

Fabian

--
Fabian Lange | Performance Expert
mobil: +49 (0) 160.3673393

codecentric AG | Hochstraße 11 | 42697 Solingen | Deutschland

Sitz der Gesellschaft: Solingen | HRB 25917| Amtsgericht Wuppertal
Vorstand: Michael Hochgürtel . Mirko Novakovic . Rainer Vehns
Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Klaus Jäger . Jürgen Schütz
Loading...