Constructor and Description |
---|
ClassPathBuilder() |
Modifier and Type | Method and Description |
---|---|
ClassPathBuilder |
add(File f)
Adds a single jar file or a class file directory.
|
ClassPathBuilder |
add(File f,
String... pathFragments)
Allows one to write
add(f,"lib","a.jar") instead of
add(new File(new File(f,"lib"),"a.jar") |
ClassPathBuilder |
addAll(File... files) |
ClassPathBuilder |
addAll(File dir,
FileFilter filter)
Adds all the files in the given directory that match the given filter.
|
Iterator<File> |
iterator() |
String |
toString()
Formats the path in a single-argument format suitable
after the "-cp" JVM option.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ClassPathBuilder add(File f)
f
- public ClassPathBuilder add(File f, String... pathFragments)
add(f,"lib","a.jar")
instead of
add(new File(new File(f,"lib"),"a.jar")f
- pathFragments
- public ClassPathBuilder addAll(File dir, FileFilter filter)
dir
- filter
- public ClassPathBuilder addAll(File... files)
Copyright © 2020. All rights reserved.