Class ClasspathJarUtils
java.lang.Object
com.atlassian.bamboo.agent.classserver.ClasspathJarUtils
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable File
Creates a jar file from directorystatic @Nullable File
createJar
(@NotNull File dir, @NotNull ClasspathJarUtils.JarBuilderWalker jarBuilderWalker) Creates a jar file from directorystatic void
createJar
(@NotNull File outputJar, @NotNull File dir, @NotNull ClasspathJarUtils.JarBuilderWalker jarBuilderWalker) Creates a named jar file from directoryReturn 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:
IOException
IllegalArgumentException
- 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
-