posteditpagelet.pgl
来自「Anthill是一个确保受控建造过程和促进在组织内部共享知识的工具。Anthil」· PGL 代码 · 共 36 行
PGL
36 行
<%@ import="com.urbancode.anthill.adapter.*" %><%@ import="com.urbancode.anthill.ProjectProperties" %><% ProfileRepositoryAdapter ra = (ProfileRepositoryAdapter)context.get("Adapter");ProjectProperties pp = (ProjectProperties)context.get("Properties");String localProjectDir = ra.getLocalProjectDirName();String module = pp.getProperty(VSSRepositoryAdapter.MODULE_KEY);String postEditFile = (String)context.get("File");String comment = (String)context.get("Msg");String appendString = "";String localProjectDirName = ra.getLocalProjectDirName();if (postEditFile.indexOf(File.separator) == -1) { File f = new File(localProjectDirName); appendString = f.getAbsolutePath();}else { String tempFile = localProjectDirName+File.separator+postEditFile; File f = new File(tempFile); String filePath = f.getAbsolutePath(); appendString = filePath.substring(0, filePath.lastIndexOf(File.separator));}String userName = pp.getProperty(VSSRepositoryAdapter.VSS_USER_KEY);String userPass = pp.getProperty(VSSRepositoryAdapter.VSS_PASSWD_KEY);if ((userPass == null) || (userPass.trim().equals(""))) { // TODO -- I think we Scott planned to do something here userPass = "";}String pageletDir = System.getProperty(ProfileRepositoryAdapter.ANTHILL_ROOT_DIR_KEY) + File.separator + "conf" + File.separator + "profiles"+ File.separator + "Unix" + File.separator + "unix_vss" + File.separator;%>sh <%=pageletDir%>postEditPagelet.sh <%=localProjectDir%> $/<%= module %> <%=userName%> <%=userPass%> <%=postEditFile%> "<%=comment%>" <%=appendString%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?