禁用osgi临时文件夹

时间:2019-02-04 13:42:40

标签: java osgi apache-felix bndtools

我在eclipse中从start.bndrun文件运行“运行OSGi”时生成的临时文件夹有问题 每次启动时,都会在下面生成一个文件夹: C:\ Users \\ AppData \ Local \ Temp \ osgi.7569853241152546985.fw 重约300mb。

操作系统:Win 10 IDE:Eclipse 2018-09 工具:Bndtools 4.1.0 REL

start.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的空间,必须定期删除。有没有办法限制这些临时文件夹?

1 个答案:

答案 0 :(得分:1)

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