Class 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.
    • Constructor Summary

      Constructors 
      Constructor Description
      Path()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BatchEnvironment.Path addDirectories​(java.lang.String dirs)  
      BatchEnvironment.Path addDirectories​(java.lang.String dirs, boolean warn)  
      private void addDirectory​(java.lang.String dir, boolean warn)  
      private void addFile​(java.lang.String file, boolean warn)  
      BatchEnvironment.Path addFiles​(java.lang.String files)  
      BatchEnvironment.Path addFiles​(java.lang.String files, boolean warn)  
      private void addJarClassPath​(java.lang.String jarFileName, boolean warn)  
      BatchEnvironment.Path emptyPathDefault​(java.lang.String x)  
      BatchEnvironment.Path expandJarClassPaths​(boolean x)  
      private static boolean isZip​(java.lang.String name)
      Is this the name of a zip file?
      • Methods inherited from class java.util.LinkedHashSet

        spliterator
      • Methods inherited from class java.util.HashSet

        add, clear, clone, contains, isEmpty, iterator, remove, size
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode, removeAll
      • Methods inherited from class java.util.AbstractCollection

        addAll, containsAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
    • Field Detail

      • expandJarClassPaths

        private boolean expandJarClassPaths
      • emptyPathDefault

        private java.lang.String emptyPathDefault
        What to use when path element is the empty string
    • Constructor Detail

      • Path

        public Path()
    • Method Detail

      • isZip

        private static boolean isZip​(java.lang.String name)
        Is this the name of a zip file?
      • addDirectory

        private void addDirectory​(java.lang.String dir,
                                  boolean warn)
      • addFile

        private void addFile​(java.lang.String file,
                             boolean warn)
      • addJarClassPath

        private void addJarClassPath​(java.lang.String jarFileName,
                                     boolean warn)