getworkingproject.pgl

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

PGL
31
字号
<%@ import="com.urbancode.anthill.ProjectProperties" %><%@ import="com.urbancode.anthill.adapter.*" %><% ProjectProperties pp = (ProjectProperties)context.get("Properties");ProfileRepositoryAdapter ra = (ProfileRepositoryAdapter)context.get("Adapter");String branchName = pp.getProperty(CVSRepositoryAdapter.BRANCH_KEY);String module = pp.getProperty(CVSRepositoryAdapter.MODULE_KEY);String cvsroot = pp.getProperty(CVSRepositoryAdapter.ROOT_KEY);String workDirectory = System.getProperty(ProfileRepositoryAdapter.ANTHILL_ROOT_DIR_KEY) +		       File.separator + pp.getProperty(CVSRepositoryAdapter.WORK_DIR_KEY);String branchString = "";if ((branchName != null) && (!branchName.equals(""))) {	workDirectory+=File.separator + branchName;}File workFile = new File(workDirectory);if (!workFile.exists()) {	workFile.mkdirs();}workDirectory = workFile.getAbsolutePath();%>cmd /x/c cd /d <%=workDirectory%> &&<%   if ((branchName != null) && (!branchName.trim().equals(""))) {	branchString+=" -r " + branchName.trim();   }%>cvs -d <%= cvsroot%> checkout<%=branchString%> <%=module%> 

⌨️ 快捷键说明

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