⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 posteditpagelet.pgl

📁 Anthill是一个确保受控建造过程和促进在组织内部共享知识的工具。Anthill在每一次建造之前从项目最新版本的源文件库中借出文件
💻 PGL
字号:
<%@ import="com.urbancode.anthill.adapter.*" %><%@ import="com.urbancode.anthill.ProjectProperties" %><%@ import="com.urbancode.anthill.util.FileUtils" %><%ProfileRepositoryAdapter ra = (ProfileRepositoryAdapter)context.get("Adapter");ProjectProperties pp = (ProjectProperties)context.get("Properties");String msg = (String)context.get("msg");String file = (String)context.get("File");String connectString = pp.getProperty(StarTeamRepositoryAdapter.CONNECT_KEY);String passwdFile = pp.getProperty(StarTeamRepositoryAdapter.PASSWD_FILE_KEY);String workDir = pp.getProperty(StarTeamRepositoryAdapter.WORK_DIR_KEY);String workDirectory = System.getProperty(ProfileRepositoryAdapter.ANTHILL_ROOT_DIR_KEY) +                       File.separator + workDir;workDirectory = FileUtils.getOSDependentPath(workDirectory);String pageletDir = System.getProperty(ProfileRepositoryAdapter.ANTHILL_ROOT_DIR_KEY) +                    File.separator + "conf" +                    File.separator + "profiles"+ File.separator + "Unix" +                    File.separator + "unix_starteam" + File.separator;String userOS = System.getProperty("os.name");String fileSeparator = "";if (userOS.indexOf("Windows") != -1) {fileSeparator = "\\";}else {fileSeparator = "/";}String fileFolder = file.substring(0, file.lastIndexOf(fileSeparator));String fileName = file.substring(file.lastIndexOf(fileSeparator)+1, file.length());String starTeamPath = "";if (userOS.indexOf("Windows") != -1) {starTeamPath = fileFolder.replace('\\', '/');}else {starTeamPath = fileFolder;}if ((passwdFile != null) && (!passwdFile.trim().equals(""))) {%>sh <%=pageletDir%>postEditCheckinUnlock.sh <%=connectString%> <%=starTeamPath%> <%=workDirectory%> <%=msg%> <%=fileName%> <%=passwdFile%><%}else {%>sh <%=pageletDir%>postEditCheckinUnlock.sh <%=connectString%> <%=starTeamPath%> <%=workDirectory%> <%=msg%> <%=fileName%><%}%>

⌨️ 快捷键说明

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