Gov*_*van 5 eclipse perforce p4eclipse
我最近安装了Eclipse Juno,之后我从这个存储库安装了p4Eclipse 4.2插件:http://www.perforce.com/downloads/http/p4-eclipse/install/4.2
然后我尝试创建一个新的perforce连接.我输入了服务器名称和用户名和密码.但点击下一步时收到错误消息:
com.perforce.p4java.exception.ConfigException:java.io.FileNotFoundException:\ p4tickets.txt(访问被拒绝)
阅读P4Eclipse帮助我理解,因为我没有定义用户环境变量P4TICKETS,P4Eclipse试图自己定义它.在帮助中已经提到如果未明确设置值,则将为Windows定义为%USERPROFILE%\ p4tickets.txt,并将所有其他平台定义为$ HOME/.p4tickets
似乎P4Eclipse已经为其他平台配置了,因此它试图找到不允许的文件.当我使用值%USERPROFILE%\ p4tickets.txt定义用户环境变量P4TICKETS时,它工作正常.问题是我们有很多客户端,我不想为所有客户端定义环境变量.所以我想知道是否有一套为Windows平台配置P4Eclipse或在eclipse中定义P4TICKETS而不是环境变量!
是的,我想你可以进入插件的高级配置并设置 P4TICKETS。在发行说明中,他们描述了这种设置 P4HOST 的方法:
Support for P4HOST variable. To set P4HOST variable,
either set the environment variable P4HOST (For example,
export P4HOST=123.456.789.0) or in the the preference page,
Preference>Team>Perforce>Advanced, set P4HOST properties,
(For example, name: P4HOST value: 123.456.789.0). Then
restart Eclipse to make it affect.
Run Code Online (Sandbox Code Playgroud)
我不是 100% 确定这会起作用,但你可以尝试一下。
| 归档时间: |
|
| 查看次数: |
1658 次 |
| 最近记录: |