public class BundleJsDependenciesMojo
Base for Mojos that produce JS bundles.
| Modifier and Type | Field and Description |
|---|---|
org.apache.maven.project.MavenProject |
project
The current Maven project.
|
org.apache.maven.execution.MavenSession |
session
The current Maven session.
|
| Constructor and Description |
|---|
BundleJsDependenciesMojo()
Base for Mojos that produce JS bundles.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Implementation of org.apache.maven.plugin.Mojo.execute
|
java.lang.String |
getDependencyScope()
Scope of the dependencies that should be bundled, e.g. Artifact.SCOPE_COMPILE.
|
java.io.File |
getExtractDirectory()
The directory where the dependencies will be extracted during the execution of this Mojo.
|
java.io.File |
getOutputDirectory()
The directory where the bundle file be be created, e.g.
${project.build.directory}/js. |
java.lang.String |
getOutputFilename()
The name of the bundle file, e.g.
foo.bundle.js |
org.apache.maven.project.MavenProject |
getProject()
The current Maven project.
|
org.apache.maven.execution.MavenSession |
getSession()
The current Maven session.
|
kotlin.sequences.Sequence<java.io.File> |
projectJsFiles()
Resolves the JS files for the current project that should be included in the bundle.
|
void |
setProject(org.apache.maven.project.MavenProject p)
The current Maven project.
|
void |
setSession(org.apache.maven.execution.MavenSession p)
The current Maven session.
|
public org.apache.maven.project.MavenProject project
The current Maven project.
public org.apache.maven.execution.MavenSession session
The current Maven session.
public BundleJsDependenciesMojo()
Base for Mojos that produce JS bundles.
public org.apache.maven.project.MavenProject getProject()
The current Maven project.
public void setProject(org.apache.maven.project.MavenProject p)
The current Maven project.
public org.apache.maven.execution.MavenSession getSession()
The current Maven session.
public void setSession(org.apache.maven.execution.MavenSession p)
The current Maven session.
public java.io.File getExtractDirectory()
The directory where the dependencies will be extracted during the execution of this Mojo.
public java.io.File getOutputDirectory()
The directory where the bundle file be be created, e.g. ${project.build.directory}/js.
public java.lang.String getOutputFilename()
The name of the bundle file, e.g. foo.bundle.js
public java.lang.String getDependencyScope()
Scope of the dependencies that should be bundled, e.g. Artifact.SCOPE_COMPILE.
public void execute()
Implementation of org.apache.maven.plugin.Mojo.execute
public kotlin.sequences.Sequence<java.io.File> projectJsFiles()
Resolves the JS files for the current project that should be included in the bundle.