📄 stafdeletescripts.java
字号:
/*****************************************************************************//* Software Testing Automation Framework (STAF) *//* (C) Copyright IBM Corp. 2004, 2005 *//* *//* This software is licensed under the Common Public License (CPL) V1.0. *//*****************************************************************************/import com.installshield.wizard.*;import com.installshield.wizard.service.*;import com.installshield.util.*;import com.installshield.product.service.product.*;import java.io.*;public class STAFDeleteScripts extends WizardAction{ String scriptFileName = ""; public void execute(WizardBeanEvent event) { String fileSep = System.getProperty("file.separator"); String installLocation = resolveString("$P(absoluteInstallLocation)"); String platformDetails = Platform.currentPlatform.toString(); if (platformDetails.indexOf("name=Windows") > -1) { scriptFileName = installLocation + fileSep + "STAFEnv.bat"; } else { scriptFileName = installLocation + fileSep + "STAFEnv.sh"; } File scriptFile = new File(scriptFileName); if (scriptFile.exists()) { scriptFile.delete(); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -