📄 posteditpagelet.pgl
字号:
<%@ import="com.urbancode.anthill.adapter.*" %><%@ import="com.urbancode.anthill.ProjectProperties" %><% ProfileRepositoryAdapter ra = (ProfileRepositoryAdapter)context.get("Adapter");ProjectProperties pp = (ProjectProperties)context.get("Properties");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));}// construct ss executable stringString ssExeStr = "ss";String ssHome = pp.getProperty(VSSRepositoryAdapter.VSS_HOME_KEY);if (ssHome != null && (ssHome.trim().length() != 0)) { File tempFile = new File(ssHome, "ss"); ssExeStr = tempFile.getAbsolutePath();}// construct the user name and pass stringString userName = pp.getProperty(VSSRepositoryAdapter.VSS_USER_KEY);String userPass = pp.getProperty(VSSRepositoryAdapter.VSS_PASSWD_KEY);String userNamePassStr = "";if (userName != null && (userName.trim().length() != 0)) { userNamePassStr = " -Y\"" + userName + "\""; if (userPass != null && (userPass.trim().length() != 0)) { userNamePassStr += ",\"" + userPass + "\""; }}%><%@ include="Win32/win_vss/getCommandInit.pgl" %> "<%= ssExeStr %>" checkin <%=postEditFile%><%= userNamePassStr %> -C"<%=comment%>" -I-Y -GL<%=appendString%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -