public abstract class AbstractScriptGeneratorMojo extends AbstractAppAssemblerMojo
| Modifier and Type | Field and Description |
|---|---|
protected List<org.apache.maven.artifact.Artifact> |
artifacts |
protected List<String> |
buildFilters
Project build filters.
|
protected String |
configurationDirectory
The name of the target directory for configuration files.
|
protected File |
configurationSourceDirectory
The source directory for configuration files.
|
protected boolean |
copyConfigurationDirectory
If the source configuration directory should be copied to the configured
configurationDirectory. |
protected DaemonGeneratorService |
daemonGeneratorService |
protected String |
encoding
The character encoding scheme to be applied when filtering the source configuration directory.
|
protected String |
endorsedDir
Location under base directory where all of files non-recursively are added before the generated classpath.
|
protected String |
environmentSetupFileName
Setup file in
$BASEDIR/bin to be called prior to execution. |
protected String |
escapeString
Expressions preceded with this String won't be interpolated.
|
protected boolean |
filterConfigurationDirectory
If the source configuration directory should be filtered when copied to the configured
configurationDirectory. |
protected boolean |
filterPreAssembleDirectory
If the source pre-assemble directory should be filtered when copied to the configured
assembleDirectory. |
protected boolean |
generateRepository
Set to
false to skip repository generation. |
protected File |
licenseHeaderFile
You can define a license header file which will be used instead the default header in the generated scripts.
|
protected String |
logsDirectory
The logs directory for the assembled project.
|
protected org.apache.maven.project.MavenProject |
mavenProject |
protected org.apache.maven.shared.filtering.MavenResourcesFiltering |
mavenResourcesFiltering
The filtering component used when copying the source configuration directory.
|
protected File |
preAssembleDirectory
If exists, copy this directory's contents to the configured
assembleDirectory with option to filter. |
protected String |
tempDirectory
The temp directory of the assembled project.
|
protected String |
unixScriptTemplate
The unix template of the generated script.
|
protected boolean |
useWildcardClassPath
Sometimes it happens that you have many dependencies which means having a very long classpath, and
becomes too long (in particular on Windows based platforms).
|
protected String |
windowsScriptTemplate
The windows template of the generated script.
|
artifactRepositoryFactory, container, localRepository, outputFileNameMapping, preClean, projectArtifact, repositoryLayout, useTimestampInSnapshotFileName| Constructor and Description |
|---|
AbstractScriptGeneratorMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCopyConfigurationDirectory(String targetDirectory) |
protected void |
doCopyPreAssembleDirectory(String targetDirectory) |
protected void |
doCreateExtraDirectories(File targetDirectory) |
protected void |
installDependencies(String outputDirectory,
String repositoryName) |
contextualize, getArtifactRepositoryLayout, installArtifact, installArtifact, removeDirectorygetLog, getPluginContext, setLog, setPluginContext@Parameter protected String environmentSetupFileName
$BASEDIR/bin to be called prior to execution.
Note: only for the jsw platform. If this optional environment file also sets up
WRAPPER_CONF_OVERRIDES variable, it will be passed into JSW native launcher's command line arguments to override
wrapper.conf's properties. See http://wrapper.tanukisoftware.com/doc/english/props-command-line.html for details.
@Parameter protected File licenseHeaderFile
@Parameter(property="unixScriptTemplate") protected String unixScriptTemplate
@Parameter(defaultValue="false") protected boolean useWildcardClassPath
AbstractAppAssemblerMojo.repositoryLayout
flat.@Parameter(property="windowsScriptTemplate") protected String windowsScriptTemplate
@Parameter(defaultValue="${project.runtimeArtifacts}",
readonly=true)
protected List<org.apache.maven.artifact.Artifact> artifacts
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject mavenProject
@Parameter(defaultValue="true") protected boolean generateRepository
false to skip repository generation.@Parameter(defaultValue="etc") protected String configurationDirectory
@Parameter(defaultValue="src/main/config") protected File configurationSourceDirectory
@Parameter(defaultValue="false") protected boolean filterConfigurationDirectory
configurationDirectory. This configuration can be replaced by a more generic
preAssembleDirectory option@Parameter(defaultValue="false") protected boolean copyConfigurationDirectory
configurationDirectory.@Parameter protected File preAssembleDirectory
assembleDirectory with option to filter.
This configuration can replace copyConfigurationDirectory@Parameter(defaultValue="false") protected boolean filterPreAssembleDirectory
assembleDirectory.@Parameter protected String endorsedDir
@Parameter(defaultValue="${project.build.filters}",
readonly=true)
protected List<String> buildFilters
@Parameter(defaultValue="${project.build.sourceEncoding}")
protected String encoding
@Parameter protected String escapeString
\${foo} will be replaced with
${foo}.@Parameter(property="logsDirectory") protected String logsDirectory
@Parameter(property="tempDirectory") protected String tempDirectory
@Component protected DaemonGeneratorService daemonGeneratorService
@Component(role=org.apache.maven.shared.filtering.MavenResourcesFiltering.class,
hint="default")
protected org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
protected void doCopyConfigurationDirectory(String targetDirectory) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void doCopyPreAssembleDirectory(String targetDirectory) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void doCreateExtraDirectories(File targetDirectory) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void installDependencies(String outputDirectory, String repositoryName) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2006–2016 MojoHaus. All rights reserved.