Class ClasspathJarUtils
- java.lang.Object
-
- com.atlassian.bamboo.agent.classserver.ClasspathJarUtils
-
public class ClasspathJarUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClasspathJarUtils.JarBuilderWalker
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable FilecreateJar(@NotNull File dir)Creates 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 directorystatic @NotNull List<String>getBlackListPatterns()Return a list of blacklisted patterns for agent bootstrap loading.
-
-
-
Method Detail
-
createJar
@Nullable public static @Nullable File createJar(@NotNull @NotNull File dir) throws IOException
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 IOExceptionCreates a named jar file from directory- Parameters:
dir- the directory to put into jar- Throws:
IOExceptionIllegalArgumentException- when the directory was empty
-
getBlackListPatterns
@NotNull public static @NotNull List<String> 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
-
-