禁用OSGi的临时文件夹

问题描述 投票:2回答:1

我有,当我从每个Eclipse中的start.bndrun文件中运行“运行OSGi的”生成的临时文件夹的问题开始一个文件夹下面生成:C:\用户\\应用程序数据\本地的\ Temp \ osgi.7569853241152546985 .fw它重约300MB。

操作系统:赢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占用的磁盘,这是我必须定期删除。有没有办法来限制这些临时文件夹?

java osgi apache-felix bndtools
1个回答
1
投票

我解决了这个办法:进入bndrun文件:-runstorage:$ {}的user.home / OSGi的/数据

© www.soinside.com 2019 - 2024. All rights reserved.