getcommandinit.pgl

来自「Anthill是一个确保受控建造过程和促进在组织内部共享知识的工具。Anthil」· PGL 代码 · 共 19 行

PGL
19
字号
<%@ import="com.urbancode.anthill.ProjectProperties" %><%@ import="com.urbancode.anthill.adapter.*" %><% ProjectProperties pp = (ProjectProperties)context.get("Properties");ProfileRepositoryAdapter ra = (ProfileRepositoryAdapter)context.get("Adapter");String workingDirectory = ra.getLocalProjectDirName();String client = pp.getProperty(PerforceRepositoryAdapter.CLIENT_KEY);String port = pp.getProperty(PerforceRepositoryAdapter.PORT_KEY);String user = pp.getProperty(PerforceRepositoryAdapter.USER_KEY);String passwd = pp.getProperty(PerforceRepositoryAdapter.PASSWD_KEY);if ((passwd != null) && (!passwd.equals(""))) {%>cmd /x/c cd /d <%=workingDirectory%> && p4 -c <%=client%> -p <%=port%> -u <%=user%> -P <%=passwd%><%}else {%>cmd /x/c cd /d <%=workingDirectory%> && p4 -c <%=client%> -p <%=port%> -u <%=user%><%}%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?