Hi,

yes, I noticed that java.io.tmpdir was set to ${karaf.data}/tmp. Since we
control the Karaf installation, we can make sure it is always set to
${karaf.data}/tmp, so that shouldn't be a problem.
The question is what filename is going to be used in that tmp dir. If I have
to cleanup the temp file after the feature is installed, I need to know the
filename. Clearing out the entire ${karaf.data}/tmp after each feature
install seems like a bad idea.

Empirically, I see that the url
almscp://ikan@ikan514v:22//opt/ikan/alm5_8_frs/system/phaseCatalog/com.ikanalm.phase.echowebtestparameters/com.ikanalm.phase.echowebtestparameters-1.0.0.jar;keyfile=/home/ikan/.ssh/id_rsa,passphrase=pass
maps to a file named "id_rsa,passphrase=pass"

and
almftp://administrator:*****@ikan143/alm5_8/system/phase
Catalog/echoParam5/echoParam5-1.1.0.jar;mode=p
maps to "echoParam5-1.1.0.jar;mode=p"

and
file://ikan143/alm5_8/system/phase%20Catalog/echoParam5/echoParam5-1.1.0.jar
maps to "echoParam5-1.1.0.jar"

So I'm assuming that the filename is the part of the URL after the last
occurrence of "/". But I'd like to verify this in the source code (or by one
of you telling me), so as to be sure.

Thanks,
Frank 'S Jegers.




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to