Class ClasspathJarUtils

java.lang.Object
com.atlassian.bamboo.agent.classserver.ClasspathJarUtils

public class ClasspathJarUtils extends Object
  • Method Details

    • 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 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

      @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