Class ClasspathBuilder
- java.lang.Object
-
- com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder
-
public final class ClasspathBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_TEST_PATH
static String
CLASSPATH_SERVLET
static String
COLLECTION_ID_CLASSPATH
static String
COLLECTION_ID_FRAMEWORK_BUNDLES
static String
COLLECTION_ID_SYSTEM_PROVIDED_PLUGINS
static String
COLLECTION_ID_USER_INSTALLED_PLUGINS
static String
HEADER_ATLASSIAN_BAMBOO_INSTANCE_FINGERPRINT
static String
HEADER_ATLASSIAN_BAMBOO_SERVER_FINGERPRINT
static String
MANIFEST_PATH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassLoader
getClassLoader(File home, AgentContext agentContext)
Builds aClassLoader
from the jars downloaded from the serverstatic @NotNull List<File>
sync(AgentContext agentContext, File home, String collectionId)
-
-
-
Field Detail
-
HEADER_ATLASSIAN_BAMBOO_INSTANCE_FINGERPRINT
public static final String HEADER_ATLASSIAN_BAMBOO_INSTANCE_FINGERPRINT
- See Also:
- Constant Field Values
-
HEADER_ATLASSIAN_BAMBOO_SERVER_FINGERPRINT
public static final String HEADER_ATLASSIAN_BAMBOO_SERVER_FINGERPRINT
- See Also:
- Constant Field Values
-
CLASSPATH_SERVLET
public static final String CLASSPATH_SERVLET
- See Also:
- Constant Field Values
-
MANIFEST_PATH
public static final String MANIFEST_PATH
- See Also:
- Constant Field Values
-
CACHE_TEST_PATH
public static final String CACHE_TEST_PATH
- See Also:
- Constant Field Values
-
COLLECTION_ID_CLASSPATH
public static final String COLLECTION_ID_CLASSPATH
- See Also:
- Constant Field Values
-
COLLECTION_ID_USER_INSTALLED_PLUGINS
public static final String COLLECTION_ID_USER_INSTALLED_PLUGINS
- See Also:
- Constant Field Values
-
COLLECTION_ID_SYSTEM_PROVIDED_PLUGINS
public static final String COLLECTION_ID_SYSTEM_PROVIDED_PLUGINS
- See Also:
- Constant Field Values
-
COLLECTION_ID_FRAMEWORK_BUNDLES
public static final String COLLECTION_ID_FRAMEWORK_BUNDLES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClassLoader
public static ClassLoader getClassLoader(File home, AgentContext agentContext) throws IOException
Builds aClassLoader
from the jars downloaded from the server- Parameters:
home
- of the Remote AgentagentContext
- of the agent- Returns:
- classLoader to use to start the agent
- Throws:
IOException
- if a network or file system error occurs
-
sync
@NotNull public static @NotNull List<File> sync(AgentContext agentContext, File home, String collectionId) throws IOException
- Throws:
IOException
-
-