public class ProductionModeCopyStep extends Object
Note: this class is intended to be independent from Maven dependencies so that it can be reused in Gradle plugin in future.
| Modifier and Type | Field and Description |
|---|---|
static String |
NON_WEB_JAR_RESOURCE_PATH |
| Constructor and Description |
|---|
ProductionModeCopyStep(Collection<ArtifactData> projectArtifacts)
Fill and verify initial jar files' data.
|
ProductionModeCopyStep(JarContentsManager jarContentsManager,
Collection<ArtifactData> projectArtifacts)
Fill and verify initial jar files' data, use custom version of
JarContentsManager for the operations. |
| Modifier and Type | Method and Description |
|---|---|
void |
copyWebApplicationFiles(File outputDirectory,
File frontendWorkingDirectory,
String commaSeparatedWildcardPathExclusions)
Copies files from earlier specified jars and
frontendWorkingDirectory, applying exclusions specified to all files. |
public static final String NON_WEB_JAR_RESOURCE_PATH
public ProductionModeCopyStep(Collection<ArtifactData> projectArtifacts)
projectArtifacts - project artifacts to get the data fromIllegalArgumentException - if no bower.json is found inside any WebJarUncheckedIOException - if any IOException occurs during
bower.json parsingpublic ProductionModeCopyStep(JarContentsManager jarContentsManager, Collection<ArtifactData> projectArtifacts)
JarContentsManager for the operations.jarContentsManager - a class to manage jar file contents, not nullprojectArtifacts - project artifacts to get the data fromIllegalArgumentException - if no bower.json is found inside any WebJarUncheckedIOException - if any IOException occurs during
bower.json parsingpublic void copyWebApplicationFiles(File outputDirectory, File frontendWorkingDirectory, String commaSeparatedWildcardPathExclusions)
frontendWorkingDirectory, applying exclusions specified to all files.outputDirectory - the directory to copy files into, not nullfrontendWorkingDirectory - the directory to copy files from, intended to be current application's directory with frontend files, can be nullcommaSeparatedWildcardPathExclusions - comma separated wildcard exclusions to exclude files, can be null if no files are excludedIllegalStateException - if any directory fails to be created via File.mkdirs()UncheckedIOException - if any IOException occurs during other file operationsCopyright © 2025. All rights reserved.