禁用osgi临时文件夹

wa7juj8i  于 2021-07-09  发布在  Java
关注(0)|答案(1)|浏览(341)

当我从eclipse中的start.bndrun文件运行“run osgi”时,生成的临时文件夹有问题。每次启动时,都会生成以下文件夹:c:\users\appdata\local\temp\osgi.7569853241515546985.fw,重约300mb。
os:win 10 ide:eclipse 2018-09工具:bndtools 4.1.0 rel
开始.bndrun

-runsystemcapabilities: ${native_capability}
-runfw: org.eclipse.osgi;version='[3.12.50.v20170928-1321,3.12.50.v20170928-1321]'
-runee: JavaSE-1.8
-resolve.effective: active;skip:="osgi.service"
-runsystempackages: sun.misc,com.sun.xml.internal.ws.developer,com.sun.xml.internal.ws,com.sun.xml.internal.ws.api.message
-runproperties: \
    osgi.console=,\
    osgi.console.enable.builtin=false,\
    org.osgi.framework.bootdelegation="sun.*,com.sun.*",\
    org.osgi.service.http.port=8081,\

-runvm:-Xss1M, -Xms128M, -Xmx1G

-runbundles: \
    ...

问题是,一个月后,我发现磁盘上大约有70gb的空间被占用,我必须定期删除这些空间。有没有办法限制这些临时文件夹?

bnl4lu3b

bnl4lu3b1#

我这样解决:进入bndrun文件:-runstorage:${user.home}/osgi/data

相关问题