]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed org.simantics.lz4 to use bundle data area when running in OSGi 49/1149/3
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 27 Oct 2017 13:06:18 +0000 (16:06 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 27 Oct 2017 13:10:15 +0000 (16:10 +0300)
Previously org.simantics.lz4 would always extract the native LZ4 dynamic
library to java.io.tmpdir which is plain stupid. Now when running in
OSGi environment, we simply extract the file once to the data area and
reuse it from there.

Further development could even use the MD5 sum of the lz4 DLL to extract
every version of the DLL only once to java.io.tmpdir but I'm saving this
for later.

refs #7578

Change-Id: I50566999749b20cca6d56ab52e59101ec3a7b6f6


No differences found