Package com.sun.enterprise.admin.cli
Class ClassPathBuilder
java.lang.Object
com.sun.enterprise.admin.cli.ClassPathBuilder
Builds up a classpath.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a single jar file or a class file directory.Allows one to writeadd(f,"lib","a.jar")instead of add(new File(new File(f,"lib"),"a.jar")addAll(File dir, FileFilter filter) Adds all the files in the given directory that match the given filter.iterator()toString()Formats the path in a single-argument format suitable after the "-cp" JVM option.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ClassPathBuilder
public ClassPathBuilder()
-
-
Method Details
-
iterator
-
add
Adds a single jar file or a class file directory. -
add
Allows one to writeadd(f,"lib","a.jar")instead of add(new File(new File(f,"lib"),"a.jar") -
addAll
Adds all the files in the given directory that match the given filter. -
addAll
-
toString
Formats the path in a single-argument format suitable after the "-cp" JVM option.
-