jetbrains.buildServer.agent
Class ClasspathUtil

java.lang.Object
  extended by jetbrains.buildServer.agent.ClasspathUtil

public class ClasspathUtil
extends java.lang.Object

User: Eugene.Petrenko Date: 13.02.2007 Time: 18:28:18


Constructor Summary
ClasspathUtil()
           
 
Method Summary
static java.lang.String classNameToResourcePath(java.lang.String className)
           
static java.lang.String composeClasspath(java.lang.Class[] classFromLibs, java.lang.String[] resourcesFromLibs, java.lang.Class context)
           
static java.lang.String encodePlusCharacter(java.lang.String orig)
           
protected static boolean endsWith(java.lang.String str, java.lang.String suffix)
           
static java.lang.String getClasspathEntry(java.lang.Class aClass)
           
static java.lang.String resourceUrlToClasspathEntry(java.lang.String className, java.net.URL resUrl)
          Converts URL to a resource (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathUtil

public ClasspathUtil()
Method Detail

resourceUrlToClasspathEntry

public static java.lang.String resourceUrlToClasspathEntry(java.lang.String className,
                                                           java.net.URL resUrl)
                                                    throws java.io.UnsupportedEncodingException
Converts URL to a resource (i.e. to a class) into the classpath entry on the file system.

Parameters:
className - name of the class
resUrl - this class resource Url
Returns:
classpath entry
Throws:
java.io.UnsupportedEncodingException

endsWith

protected static boolean endsWith(java.lang.String str,
                                  java.lang.String suffix)

getClasspathEntry

@Nullable
public static java.lang.String getClasspathEntry(java.lang.Class aClass)
                                          throws java.io.IOException
Throws:
java.io.IOException

encodePlusCharacter

public static java.lang.String encodePlusCharacter(java.lang.String orig)

classNameToResourcePath

public static java.lang.String classNameToResourcePath(java.lang.String className)

composeClasspath

@NotNull
public static java.lang.String composeClasspath(@Nullable
                                                        java.lang.Class[] classFromLibs,
                                                        @Nullable
                                                        java.lang.String[] resourcesFromLibs,
                                                        @Nullable
                                                        java.lang.Class context)