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

📄 stafcreatelinks.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 STAFCreateLinks extends WizardAction{          public void execute(WizardBeanEvent event)    {        if (resolveString("$W(stafPlatform.unix)").equals("true"))        {            String installLocation =                 resolveString("$P(absoluteInstallLocation)");                            try             {                                    String command = "ln -s " + installLocation + "/bin/STAF " +                                 installLocation + "/bin/staf";                Process pid = Runtime.getRuntime().exec(command);                          }            catch (IOException ex)            {                ex.printStackTrace();            }                        try            {                if (resolveString("$P(perlSupport.active)").equals("true") &&                    resolveString("$W(stafPlatform.linux)").equals("true"))                {                    String defaultPerlSupport =                         resolveString("$W(stafOptions.defaultPerlVersion)");                                            if (defaultPerlSupport.equals("5.8"))                    {                        defaultPerlSupport = "perl58";                    }                    else  if (defaultPerlSupport.equals("5.6"))                    {                        defaultPerlSupport = "perl56";                    }                    else                    {                        defaultPerlSupport = "perl50";                    }                                        String command = "ln -s " + installLocation +                                                                      "/lib/" + defaultPerlSupport +                                      "/libPLSTAF.so " + installLocation +                                     "/lib/libPLSTAF.so";                    Process pid = Runtime.getRuntime().exec(command);                }            }            catch (IOException ex)            {                ex.printStackTrace();            }            try            {                if (resolveString("$W(stafPlatform.aix)").equals("true"))                {                    String command = "ln -s " + installLocation +                         "/lib/libSTAF.so "                         + 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 + -