public class ClasspathBuilder extends Object implements Serializable
| Constructor and Description |
|---|
ClasspathBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ClasspathBuilder |
add(File f)
Adds a single directory or a jar file.
|
ClasspathBuilder |
add(FilePath f)
Adds a single directory or a jar file.
|
ClasspathBuilder |
add(String path)
Adds a single directory or a jar file.
|
ClasspathBuilder |
addAll(FilePath base,
String glob)
Adds all the files that matches the given glob in the directory.
|
ClasspathBuilder |
addJarOf(Class c)
Adds a jar file that contains the given class.
|
String |
toString()
Returns the string representation of the classpath.
|
public ClasspathBuilder add(File f)
public ClasspathBuilder add(FilePath f)
public ClasspathBuilder add(String path)
public ClasspathBuilder addJarOf(Class c) throws IOException
IOExceptionpublic ClasspathBuilder addAll(FilePath base, String glob) throws IOException, InterruptedException
IOExceptionInterruptedExceptionFilePath.list(String)Copyright © 2019. All rights reserved.