Package jetbrains.buildServer.agent
Class ClasspathUtil
- java.lang.Object
-
- jetbrains.buildServer.agent.ClasspathUtil
-
public class ClasspathUtil extends Object
User: Eugene.Petrenko Date: 13.02.2007 Time: 18:28:18
-
-
Constructor Summary
Constructors Constructor Description ClasspathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
classNameToResourcePath(String className)
static String
composeClasspath(Class[] classFromLibs, String[] resourcesFromLibs, Class context)
static String
encodePlusCharacter(String orig)
protected static boolean
endsWith(String str, String suffix)
static String
getClasspathEntry(Class aClass)
static String
resourceUrlToClasspathEntry(String className, URL resUrl)
Converts URL to a resource (i.e.
-
-
-
Method Detail
-
resourceUrlToClasspathEntry
public static String resourceUrlToClasspathEntry(String className, URL resUrl) throws UnsupportedEncodingException
Converts URL to a resource (i.e. to a class) into the classpath entry on the file system.- Parameters:
className
- name of the classresUrl
- this class resource Url- Returns:
- classpath entry
- Throws:
UnsupportedEncodingException
- in case of exception
-
getClasspathEntry
@Nullable public static String getClasspathEntry(Class aClass) throws IOException
- Throws:
IOException
-
-