@Mojo(name="rad") @Execute(phase=GENERATE_RESOURCES) public class RadPlugin extends EclipsePlugin
ASPECTJ_FILE_PATTERN, ASPECTJ_RT_CONTAINER, BUILDER_WST_VALIDATION, classpathContainersLast, COMMON_PATH_JDT_LAUNCHING_JRE_CONTAINER, JAVA_FILE_PATTERN, jeeversion, limitProjectReferencesToWorkspace, testSourcesLast, workspace, WTP_SUPPORTED_VERSIONS
artifactCollector, artifactFactory, artifactMetadataSource, artifactResolver, downloadJavadocs, downloadSources, executedProject, forceRecheck, localRepository, logger, packaging, project, reactorProjects, remoteArtifactRepositories
Constructor and Description |
---|
RadPlugin() |
Modifier and Type | Method and Description |
---|---|
protected void |
fillDefaultBuilders(String packaging)
overwite the default builders with the builders required by RAD6.
|
protected void |
fillDefaultNatures(String packaging)
overwite the default natures with the natures required by RAD6.
|
String |
getProjectNameForArifact(Artifact artifact)
Find the name of the project as used in eclipse.
|
String |
getWarContextRoot() |
protected boolean |
isAvailableAsAReactorProject(Artifact artifact)
Utility method that locates a project producing the given artifact.
|
protected void |
setupExtras()
WARNING: The manifest resources added here will not have the benefit of the dependencies of the project, since
that's not provided in the setup() apis...
|
void |
setWarContextRoot(String warContextRoot) |
protected void |
writeConfigurationExtras(EclipseWriterConfig config)
write all rad6 configuration files.
|
buildDirectoryList, checkDeprecationsExtras, convertBuildCommandList, createEclipseWriterConfig, fillDefaultClasspathContainers, getAdditionalBuildcommands, getAdditionalProjectnatures, getBuildcommands, getBuildOutputDirectory, getClasspathContainers, getEclipseProjectDir, getExcludes, getLinkedResources, getProjectNameTemplate, getProjectnatures, getUseProjectReferences, getWorkspaceArtefacts, getWorkspaceConfiguration, getWtpversion, hasToResolveJar, isAddGroupIdToProjectName, isAddVersionToProjectName, isJavaProject, setAddGroupIdToProjectName, setAdditionalBuildcommands, setAdditionalProjectnatures, setAddVersionToProjectName, setBuildcommands, setBuildOutputDirectory, setClasspathContainers, setEclipseProjectDir, setLinkedResources, setProjectNameTemplate, setProjectnatures, setup, setUseProjectReferences, setWtpversion, useProjectReference, validateExtras, writeConfiguration
doDependencyResolution, enableLogging, execute, getArtifactFactory, getArtifactMetadataSource, getArtifactResolver, getDownloadJavadocs, getDownloadSources, getExecutedProject, getLocalRepository, getProject, getReactorProject, getReactorProjects, getRemoteArtifactRepositories, isMavenVersion, isResolveDependencies, setArtifactFactory, setArtifactMetadataSource, setArtifactResolver, setDownloadJavadocs, setDownloadSources, setExecutedProject, setLocalRepository, setProject, setReactorProjects, setRemoteArtifactRepositories, setResolveDependencies
getLog, getPluginContext, setLog, setPluginContext
public String getWarContextRoot()
public void setWarContextRoot(String warContextRoot)
warContextRoot
- The warContextRoot to set.protected void writeConfigurationExtras(EclipseWriterConfig config) throws MojoExecutionException
writeConfigurationExtras
in class EclipsePlugin
deps
- resolved dependencies to handleMojoExecutionException
- if the config files could not be written.EclipsePlugin#writeConfiguration()
protected void fillDefaultBuilders(String packaging)
fillDefaultBuilders
in class EclipsePlugin
packaging
- packaging-type (jar,war,ejb,ear)protected void fillDefaultNatures(String packaging)
fillDefaultNatures
in class EclipsePlugin
packaging
- packaging-type (jar,war,ejb,ear)protected boolean isAvailableAsAReactorProject(Artifact artifact)
isAvailableAsAReactorProject
in class EclipsePlugin
artifact
- the artifact a project should produce.true
if the artifact is produced by a reactor projectart.protected void setupExtras() throws MojoExecutionException
setupExtras
in class EclipsePlugin
MojoExecutionException
- mojo failures.public String getProjectNameForArifact(Artifact artifact)
getProjectNameForArifact
in class EclipsePlugin
artifact
- The artifact to find the eclipse name for.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.