如何为多用户Eclipse安装的每个用户指定唯一的java.io.tmpdir? [英] How to specify a unique java.io.tmpdir for each user of a multi-user Eclipse installation?
问题描述
我在/opt/eclipse/
的多用户Linux系统上安装了Eclipse.
I have an Eclipse installation on a multi-user Linux system at /opt/eclipse/
.
不幸的是,由于m2eclipse-mavenarchiver中的缺陷,此插件使用系统临时目录中所有用户通用的文件夹(这表示pom.xml
文件的权限被拒绝"消息).
Unfortunately, because of a defect in m2eclipse-mavenarchiver, this plugin uses a folder in a system temporary directory that is common for all users (this manifests as a "permission denied" message for a pom.xml
file).
我计划根据用户名在通用eclipse.ini
中为java.io.tmpdir
指定唯一值,但事实证明它是
I planned to specify a unique value for java.io.tmpdir
in a common eclipse.ini
based on a user name, but it turned out that it is not possible.
一种选择是按用户安装Eclipse,其中每个eclipse.ini
都有其 java.io.tmpdir
的自身值(例如,-Djava.io.tmpdir=/tmp/eclipse/john_doe
).
One option is to have a per-user installation of Eclipse where each eclipse.ini
would have its own value of java.io.tmpdir
(e.g., -Djava.io.tmpdir=/tmp/eclipse/john_doe
).
是否可以有一个多用户Eclipse安装,但是以某种方式为每个用户指定java.io.tmpdir
的唯一值?
Is that possible to have a single multi-user Eclipse installation but somehow specify a unique value for java.io.tmpdir
for each user?
推荐答案
我在评论中建议您可以制作自己的自定义脚本来启动Eclipse.甚至以相同脚本可以为每个用户提供服务的方式:
I suggested in my comment that you could make your own custom script to launch Eclipse. Even in a way that the same script may serve for every user:
/opt/eclipse/eclipse -vmargs -Djava.io.tmpdir=/tmp/eclipse/$USER
这篇关于如何为多用户Eclipse安装的每个用户指定唯一的java.io.tmpdir?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!