如何为多用户Eclipse安装的每个用户指定唯一的java.io.tmpdir? [英] How to specify a unique java.io.tmpdir for each user of a multi-user Eclipse installation?

查看:184
本文介绍了如何为多用户Eclipse安装的每个用户指定唯一的java.io.tmpdir?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆