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 StringclassNameToResourcePath(String className)static StringcomposeClasspath(Class[] classFromLibs, String[] resourcesFromLibs, Class context)static StringencodePlusCharacter(String orig)protected static booleanendsWith(String str, String suffix)static StringgetClasspathEntry(Class aClass)static StringresourceUrlToClasspathEntry(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
-
-