Class JavaMaker.Copier

java.lang.Object
java.nio.file.SimpleFileVisitor<Path>
org.apache.sis.internal.unopkg.JavaMaker.Copier
All Implemented Interfaces:
FileVisitor<Path>
Enclosing class:
JavaMaker

private static final class JavaMaker.Copier extends SimpleFileVisitor<Path>
Copies *.class files from source directory to output directory. The output directory should already exist. It should be the case if all sources files have been compiled before this method is invoked.
  • Field Details

    • source

      private final Path source
      The root of source and target directories. Files below source will be copied with identical path (relative to source) under target directory.
    • target

      private final Path target
      The root of source and target directories. Files below source will be copied with identical path (relative to source) under target directory.
    • count

      int count
      Number of files copied.
  • Constructor Details

    • Copier

      Copier(String baseDirectory, String outputDirectory)
      Creates a new copier.
      Parameters:
      baseDirectory - base directory of the module to compile.
      outputDirectory - directory where the output Java files will be located.
  • Method Details