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

📄 stafremovelinks.java

📁 Software Testing Automation Framework (STAF)的开发代码
💻 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.wizard.platform.win32.*;import com.installshield.product.service.desktop.*;import java.io.*;public class STAFRemoveLinks extends WizardAction{          public void execute(WizardBeanEvent event)    {        String installLocation =             resolveString("$P(absoluteInstallLocation)");                    try        {                                      String command = "rm -f " + installLocation + "/bin/staf";            Process pid = Runtime.getRuntime().exec(command);        }        catch (IOException ex)        {            ex.printStackTrace();        }                try        {                                      String command = "rm -f /usr/bin/staf";            Process pid = Runtime.getRuntime().exec(command);                }        catch (IOException ex)        {            ex.printStackTrace();        }                try        {                       String command = "rm -f " + installLocation + "/lib/libPLSTAF.so";            Process pid = Runtime.getRuntime().exec(command);        }        catch (IOException ex)        {            ex.printStackTrace();        }        try        {                       String command = "rm -f " + installLocation + "/lib/libSTAF.a";            Process pid = Runtime.getRuntime().exec(command);        }        catch (IOException ex)        {            ex.printStackTrace();        }            }   }

⌨️ 快捷键说明

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