org.eclipse.tptp.platform.agentcontroller.config
Class IACConfigHelper
java.lang.Object
org.eclipse.tptp.platform.agentcontroller.config.IACConfigHelper
public class IACConfigHelper
- extends java.lang.Object
SetIACConfig.java.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IACConfigHelper
public IACConfigHelper()
getIACSubPlugins
public static java.io.File[] getIACSubPlugins(java.lang.String IACHome)
throws java.io.IOException
- Parameters:
IACHome - home of IAC, ie /agent_controller
- Returns:
- File[] array of sub directories under IACHome that contains a config.jar file.
- Throws:
java.lang.Exception - Assumption: 1. all TPTP plugins must be installed in the same directory with IAC
2. IAC's SetConfig script is run from /agent_controller/bin directory.
java.io.IOException
findParentPluginDir
public static java.io.File findParentPluginDir(java.lang.String subdirectory)
- Parameters:
subdirectory - is a sub-directory under consuming product's plugin installation directory.
- Returns:
- the plugins installation directory used by consuming product or null.
findEclipseRoot
public static java.io.File findEclipseRoot(java.lang.String subdirectory)
- Parameters:
subdirectory - is a sub-directory under Eclipse installation directory.
- Returns:
- the Eclipse installation directory or null.
isValidParentPluginDir
public static boolean isValidParentPluginDir(java.io.File f)
- Parameters:
SDPPath - represents a absolute path
- Returns:
- true if SDPPath contains a SDPShared installation; false otherwise.
isValidEclipse
public static boolean isValidEclipse(java.lang.String eclipsePath)
- Parameters:
eclipsePath - represents a absolute path
- Returns:
- true if eclipsePath contains a Eclipse installation; false otherwise.
findAllPluginDirectory
public static java.util.List findAllPluginDirectory(java.io.File eclipsePath)
throws java.io.IOException
- Parameters:
eclipsePath - home of Eclipse, for example: D:\eclipse\
- Returns:
- List contains all unique Eclipse plugin directories including those specified in link files.
- Throws:
java.io.IOException