Package org.glassfish.rmic
Class BatchEnvironment.Path
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- java.util.LinkedHashSet<java.lang.String>
-
- org.glassfish.rmic.BatchEnvironment.Path
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<java.lang.String>,java.util.Collection<java.lang.String>,java.util.Set<java.lang.String>
- Enclosing class:
- BatchEnvironment
private static class BatchEnvironment.Path extends java.util.LinkedHashSet<java.lang.String>Utility for building paths of directories and JAR files. This class was copied from com.org.glassfish.rmic.tools.javac.util.Paths as part of the fix for 6473331, which adds support for Class-Path manifest entries in JAR files. Diagnostic code is simply commented out because rmic silently ignored these conditions historically.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classBatchEnvironment.Path.PathIterator
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringemptyPathDefaultWhat to use when path element is the empty stringprivate booleanexpandJarClassPathsprivate static longserialVersionUIDprivate static booleanwarn
-
Constructor Summary
Constructors Constructor Description Path()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchEnvironment.PathaddDirectories(java.lang.String dirs)BatchEnvironment.PathaddDirectories(java.lang.String dirs, boolean warn)private voidaddDirectory(java.lang.String dir, boolean warn)private voidaddFile(java.lang.String file, boolean warn)BatchEnvironment.PathaddFiles(java.lang.String files)BatchEnvironment.PathaddFiles(java.lang.String files, boolean warn)private voidaddJarClassPath(java.lang.String jarFileName, boolean warn)BatchEnvironment.PathemptyPathDefault(java.lang.String x)BatchEnvironment.PathexpandJarClassPaths(boolean x)private static booleanisZip(java.lang.String name)Is this the name of a zip file?-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
warn
private static final boolean warn
- See Also:
- Constant Field Values
-
expandJarClassPaths
private boolean expandJarClassPaths
-
emptyPathDefault
private java.lang.String emptyPathDefault
What to use when path element is the empty string
-
-
Method Detail
-
isZip
private static boolean isZip(java.lang.String name)
Is this the name of a zip file?
-
expandJarClassPaths
public BatchEnvironment.Path expandJarClassPaths(boolean x)
-
emptyPathDefault
public BatchEnvironment.Path emptyPathDefault(java.lang.String x)
-
addDirectories
public BatchEnvironment.Path addDirectories(java.lang.String dirs, boolean warn)
-
addDirectories
public BatchEnvironment.Path addDirectories(java.lang.String dirs)
-
addDirectory
private void addDirectory(java.lang.String dir, boolean warn)
-
addFiles
public BatchEnvironment.Path addFiles(java.lang.String files, boolean warn)
-
addFiles
public BatchEnvironment.Path addFiles(java.lang.String files)
-
addFile
private void addFile(java.lang.String file, boolean warn)
-
addJarClassPath
private void addJarClassPath(java.lang.String jarFileName, boolean warn)
-
-