Package com.atlassian.bamboo.utils
Class ResourceResolver
java.lang.Object
com.atlassian.bamboo.utils.ResourceResolver
A utility class the allows a resource name to resolve a a file from:
- Bamboo configuration folder - iff bootstrapManager is passed
- Currently running directory
- From the classpath
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable URL
findResource
(@NotNull String resourceName) Finds a resource by its name using the defined resolution strategies.
-
Constructor Details
-
ResourceResolver
-
-
Method Details
-
findResource
Finds a resource by its name using the defined resolution strategies.- Parameters:
resourceName
- the name of the resource to find, must not be null- Returns:
- the URL of the resource if found, otherwise null
- Throws:
IllegalArgumentException
- if resourceName is null
-