Class Filenames

java.lang.Object
org.apache.sis.internal.maven.Filenames

final class Filenames extends Object
Hard-coded file and directory names used by this package.

Reminder: if the above constants are modified, please remind to edit the Distribution file section in the site/content/build.mdtext file.

Since:
0.4
Version:
1.0
  • Field Details

    • TARGET_DIRECTORY

      static final String TARGET_DIRECTORY
      The target directory. This directory name is hard-coded instead of using a property annotated by @Parameter(defaultValue="${project.build.directory}") - or alternatively by invoking MavenProject.getModel().getBuild().getDirectory(), because we need the target directory of the project root rather than the directory of the module being built.
      See Also:
    • BINARIES_DIRECTORY

      static final String BINARIES_DIRECTORY
      The sub-directory inside "target" for binaries.
      See Also:
    • OTHER_DEPENDENCIES_FILE

      static final String OTHER_DEPENDENCIES_FILE
      The name of the file inside "binaries" where to list SIS JAR files and their dependencies on platforms that do not support hard links. Also the file to ignore when copying entries in a ZIP file.
      See Also:
    • CONTENT_FILE

      static final String CONTENT_FILE
      The file to ignore when copying entries in a ZIP file. Those files appear in the "src/main/artifact" directory.
      See Also:
    • DISTRIBUTION_DIRECTORY

      private static final String DISTRIBUTION_DIRECTORY
      The sub-directory inside "target" containing pack files. This directory will be automatically created if it does not already exist.
      See Also:
    • ARTIFACT_PATH

      static final String ARTIFACT_PATH
      The path to the directory (relative to the project directory) to zip for creating the distribution ZIP file.
      See Also:
    • LIB_DIRECTORY

      static final String LIB_DIRECTORY
      The name of the sub-directory inside "src/main/artifact" where the JAR files will be located. Note that we will not write in the real directory, but only in the directory structure which is reproduced in the ZIP file.
      See Also:
    • NATIVE_DIRECTORY

      static final String NATIVE_DIRECTORY
      The prefix of native resources in JAR files. All those resources will be excluded from the JAR copied in the zip file and stored in a nativeFiles map instead.
      See Also:
    • FINALNAME_PREFIX

      static final String FINALNAME_PREFIX
      The prefix of the final filename. This is hard coded for now.
      See Also:
  • Constructor Details

    • Filenames

      private Filenames()
      Do not allow instantiation of this class.
  • Method Details

    • distributionFile

      static File distributionFile(String rootDirectory, String filename) throws org.apache.maven.plugin.MojoExecutionException
      Returns the distribution file, creating its directory if needed.
      Parameters:
      rootDirectory - the project root directory.
      filename - name of the file to create.
      Throws:
      org.apache.maven.plugin.MojoExecutionException