com.atlassian.bamboo.agent.classserver
Class ClasspathJarUtils

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

public class ClasspathJarUtils
extends java.lang.Object


Nested Class Summary
static class ClasspathJarUtils.JarBuilderWalker
           
 
Method Summary
static java.io.File createJar(java.io.File dir)
          Creates a jar file from directory
static java.io.File createJar(java.io.File dir, ClasspathJarUtils.JarBuilderWalker jarBuilderWalker)
          Creates a jar file from directory
static void createJar(java.io.File outputJar, java.io.File dir, ClasspathJarUtils.JarBuilderWalker jarBuilderWalker)
          Creates a named jar file from directory
static java.util.List<java.lang.String> getBlackListPatterns()
          Return a list of blacklisted patterns for agent bootstrap loading.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createJar

@Nullable
public static java.io.File createJar(@NotNull
                                              java.io.File dir)
                              throws java.io.IOException
Creates a jar file from directory

Parameters:
dir - the directory to put into jar
Returns:
created jar file
Throws:
java.io.IOException

createJar

@Nullable
public static java.io.File createJar(@NotNull
                                              java.io.File dir,
                                              @NotNull
                                              ClasspathJarUtils.JarBuilderWalker jarBuilderWalker)
                              throws java.io.IOException
Creates a jar file from directory

Parameters:
dir - the directory to put into jar
Returns:
created jar file
Throws:
java.io.IOException

createJar

public static void createJar(@NotNull
                             java.io.File outputJar,
                             @NotNull
                             java.io.File dir,
                             @NotNull
                             ClasspathJarUtils.JarBuilderWalker jarBuilderWalker)
                      throws java.io.IOException
Creates a named jar file from directory

Parameters:
dir - the directory to put into jar
Throws:
java.io.IOException
java.lang.IllegalArgumentException - when the directory was empty

getBlackListPatterns

@NotNull
public static java.util.List<java.lang.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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.