Class ClasspathJarUtils
java.lang.Object
com.atlassian.bamboo.agent.classserver.ClasspathJarUtils
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable FileCreates a jar file from directorystatic @Nullable FilecreateJar(@NotNull File dir, @NotNull ClasspathJarUtils.JarBuilderWalker jarBuilderWalker) Creates a jar file from directorystatic voidcreateJar(@NotNull File outputJar, @NotNull File dir, @NotNull ClasspathJarUtils.JarBuilderWalker jarBuilderWalker) Creates a named jar file from directoryReturn a list of patterns that are exempted from being blocked bygetBlackListPatterns()Return a list of blacklisted patterns for agent bootstrap loading.
-
Method Details
-
createJar
Creates a jar file from directory- Parameters:
dir- the directory to put into jar- Returns:
- created jar file
- Throws:
IOException
-
createJar
@Nullable public static @Nullable File createJar(@NotNull @NotNull File dir, @NotNull @NotNull ClasspathJarUtils.JarBuilderWalker jarBuilderWalker) throws IOException Creates a jar file from directory- Parameters:
dir- the directory to put into jar- Returns:
- created jar file
- Throws:
IOException
-
createJar
public static void createJar(@NotNull @NotNull File outputJar, @NotNull @NotNull File dir, @NotNull @NotNull ClasspathJarUtils.JarBuilderWalker jarBuilderWalker) throws IOException Creates a named jar file from directory- Parameters:
dir- the directory to put into jar- Throws:
IOExceptionIllegalArgumentException- when the directory was empty
-
getBlackListPatterns
Return a list of blacklisted patterns for agent bootstrap loading. This list will contain: - JAR name patterns - type 2 plugin keys Lines in this file can use '#' in the 1st column as a comment marker- Returns:
- list of blacklisted patterns for agent bootstrap loading
-
getAllowListPatterns
Return a list of patterns that are exempted from being blocked bygetBlackListPatterns()- Returns:
- list of allowlisted patterns for agent bootstrap loading
-