Package org.apache.sis.internal.maven
Class Filenames
java.lang.Object
org.apache.sis.internal.maven.Filenames
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 Summary
FieldsModifier and TypeFieldDescription(package private) static final String
The path to the directory (relative to the project directory) to zip for creating the distribution ZIP file.(package private) static final String
The sub-directory inside "target" for binaries.(package private) static final String
The file to ignore when copying entries in a ZIP file.private static final String
The sub-directory inside "target" containing pack files.(package private) static final String
The prefix of the final filename.(package private) static final String
The name of the sub-directory inside "src/main/artifact" where the JAR files will be located.(package private) static final String
The prefix of native resources in JAR files.(package private) static final String
The name of the file inside "binaries" where to list SIS JAR files and their dependencies on platforms that do not support hard links.(package private) static final String
The target directory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static File
distributionFile
(String rootDirectory, String filename) Returns the distribution file, creating its directory if needed.
-
Field Details
-
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 invokingMavenProject.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
The sub-directory inside "target" for binaries.- See Also:
-
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
The file to ignore when copying entries in a ZIP file. Those files appear in the "src/main/artifact" directory.- See Also:
-
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
The path to the directory (relative to the project directory) to zip for creating the distribution ZIP file.- See Also:
-
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
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 anativeFiles
map instead.- See Also:
-
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
-