public final class ClasspathBuilder extends Object
ClassLoader
from the /agentServer/classpath.zipModifier and Type | Method and Description |
---|---|
static ClassLoader |
build(File home,
Iterable<File> classPathDirectories,
AgentContext agentContext)
Builds a
ClassLoader from the /agentServer/classpath.zip |
static Set<File> |
getRemoteResources(AgentContext agentContext,
File home,
Iterable<File> classpathDirectories,
String resourceName)
Downloads and extracts the JAR represented by the resource name
|
public static ClassLoader build(File home, Iterable<File> classPathDirectories, AgentContext agentContext) throws IOException
ClassLoader
from the /agentServer/classpath.ziphome
- of the Remote AgentclassPathDirectories
- of the $BAMBOO_AGENT_HOME/classpath directoryagentContext
- of the agentIOException
- if a network or file system error occurspublic static Set<File> getRemoteResources(AgentContext agentContext, File home, Iterable<File> classpathDirectories, String resourceName) throws IOException
agentContext
- used for agent bootstrapclasspathDirectories
- directory to extract jars toresourceName
- of the uberjarIOException
- if any network or file system problems occurCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.