Class AgentInstallerUtil
- java.lang.Object
-
- com.atlassian.bamboo.agent.installer.util.AgentInstallerUtil
-
public class AgentInstallerUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getHomeDir()
Get the home directory.static String
getInstalledPackageVersion()
Returns version of installer used to install agent.static void
storeInstalledPackageVersion(String version)
Updates the value of installer package version number.
-
-
-
Method Detail
-
getHomeDir
public static String getHomeDir()
Get the home directory.- Returns:
- The home directory
-
getInstalledPackageVersion
public static String getInstalledPackageVersion() throws IOException
Returns version of installer used to install agent.- Returns:
- version of installer, null if undefined
- Throws:
IOException
-
storeInstalledPackageVersion
public static void storeInstalledPackageVersion(String version) throws IOException
Updates the value of installer package version number.- Parameters:
version
- new version number to store- Throws:
IOException
-
-