public abstract class CreateNetBeansFileStructure extends AbstractNbmMojo
AbstractNbmMojo.ArtifactResult| Modifier and Type | Field and Description |
|---|---|
protected org.apache.tools.ant.Project |
antProject |
protected File |
buildDir
Build directory
|
protected String |
cluster
NetBeans module's cluster.
|
protected File |
clusterDir |
protected File |
descriptor
Deprecated.
all content from the module descriptor can be defined as plugin configuration now, will be removed in 4.0 entirely
|
protected String |
encoding
The character encoding scheme to be applied when filtering nbm resources.
|
protected String |
finalName
Name of the jar packaged by the jar:jar plugin
|
protected org.apache.maven.shared.filtering.MavenResourcesFiltering |
mavenResourcesFiltering |
protected NetBeansModule |
module |
protected String |
moduleJarName |
protected String |
moduleType
Deployment type of the module, allowed values are
normal,eager,autoload,
disabled. |
protected File |
nbmBuildDir
NetBeans module assembly build directory.
|
protected File |
nbmJavahelpSource
Deprecated.
Obsolete as of NetBeans 7.0 with @HelpSetRegistration.
|
protected org.apache.maven.model.Resource[] |
nbmResources
A list of additional resources to include in the NBM file.
|
protected org.apache.maven.project.MavenProject |
project |
protected org.apache.maven.execution.MavenSession |
session |
| Constructor and Description |
|---|
CreateNetBeansFileStructure() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
createDefaultDescriptor, createDependencyTree, readModuleDescriptor, turnJarToNbmFileantProject, registerNbmAntTasks@Parameter(defaultValue="${project.build.directory}/nbm",
property="maven.nbm.buildDir")
protected File nbmBuildDir
@Parameter(required=true,
readonly=true,
property="project.build.directory")
protected File buildDir
@Parameter(alias="jarname",
property="project.build.finalName")
protected String finalName
@Parameter(defaultValue="${basedir}/src/main/nbm/module.xml")
protected File descriptor
@Parameter(required=true,
defaultValue="extra")
protected String cluster
@Deprecated @Parameter(defaultValue="${basedir}/src/main/javahelp") protected File nbmJavahelpSource
@Parameter(required=true,
readonly=true,
property="project")
protected org.apache.maven.project.MavenProject project
@Parameter protected org.apache.maven.model.Resource[] nbmResources
InstalledFileLocator for retrieval.)
Supersedes similarly-named configuration in the module descriptor file.
For example, to include native libraries:
<nbmResource>
<directory>src/main/libs</directory>
<targetPath>modules/lib</targetPath>
<includes>
<include>*.dll</include>
<include>*.so</include>
</includes>
</nbmResource>
@Parameter(property="encoding",
defaultValue="${project.build.sourceEncoding}")
protected String encoding
@Parameter(defaultValue="normal") protected String moduleType
normal,eager,autoload,
disabled.
autoload - Such a module is
automatically enabled when some other module requires it and
automatically disabled otherwise.
eager - This module type gets
automatically enabled when all it's dependencies are
satisfied. Disabled otherwise.
normal - This is the default
value. This kind of module is enabled/disabled manually by
the user. It installs enabled.
disabled - This kind of module is enabled/disabled manually by
the user. It installs disabled. Since 3.11
@Component protected org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
@Parameter(property="session",
readonly=true,
required=true)
protected org.apache.maven.execution.MavenSession session
protected org.apache.tools.ant.Project antProject
protected NetBeansModule module
protected File clusterDir
protected String moduleJarName
Copyright © 2005-2015 Codehaus. All Rights Reserved.