|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.freeform.analyser.Analyser
org.codehaus.mojo.freeform.analyser.BaseAnalyser
abstract class BaseAnalyser
this abstract class contais the base methods for injecting basic functionnalities of a FreeformProject.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.mojo.freeform.analyser.Analyser |
|---|
antTargets, freeformProject, localRepository, log, mavenExecutedProject, mavenpath, mavenProject |
| Constructor Summary | |
|---|---|
BaseAnalyser()
|
|
| Method Summary | |
|---|---|
protected void |
addAntTarget(java.lang.String name,
java.lang.String comment)
This method adds an AntTarget to the list of ant target for generating the mavencall.xml file. |
protected void |
addAntTarget(java.lang.String name,
java.lang.String mavenGoal,
java.lang.String comment)
This method adds an AntTarget to the list of ant target for generating the mavencall.xml file. |
protected void |
addAntTarget(java.lang.String name,
java.lang.String mavenGoal,
java.lang.String option,
java.lang.String comment)
This method adds an AntTarget to the list of ant target for generating the mavencall.xml file. |
protected void |
addCompilationUnit(java.lang.String relativeOutputDirectory,
boolean unitTest,
java.util.List relativeSourceRoots,
java.util.List classpathElements,
java.io.File mavenProjectBasedir,
java.io.File localRepositoryBasedir)
This method adds a CompilationUnit to the FreeformProject. |
protected void |
addCompileSourceRoots()
This method adds the compile source roots of the MavenProject and the generated source roots of the mavenExecutedProject to the FreeformProject. |
protected void |
addCustomisedContextMenuItem(java.lang.String name,
java.lang.String targets)
This method adds a CustomisedContextMenuItem to the FreeformProject ContextMenu. |
protected void |
addFileViewItem(java.lang.String label,
java.lang.String location)
This method adds a FileViewItem to the FreeformProject views. |
protected void |
addIdeAction(java.lang.String name,
java.lang.String targets)
This adds a NamedNetbeansAction to the FreeformProject NetbeansActions. |
protected void |
addIdeContextItem(java.lang.String name)
This method adds an IdeContextMenuItem to the FreeformProject ContextMenu. |
protected void |
addMainCompilationUnits()
This method adds the CompilationUnit for the source roots of the MavenProject and for the generated source roots of the mavenExecutedProject to the FreeformProject. |
protected void |
addMavencallScript()
This method adds the "ant.script" property leading to the mavencall.xml file. |
protected void |
addPropertyFile()
This method adds the reference to the property file for the netbeans project. |
protected void |
addResourceFolderViewItem(java.lang.String resourceFolder)
This method adds a FolderViewItem with tree style to the FreeformProject views. |
protected void |
addResources()
This method adds the resource folders to the FreeformProject views. |
protected void |
addSiteDirectoy()
This method adds the site folder to the FreeformProject views. |
protected void |
addSourceFolder(java.lang.String sourceRoot)
This method adds a SourceFolder to the FreeformProject SourceFolders. |
protected void |
addSourceFolders()
This method adds the mavenExecutedProject source roots to the FreeformProject source folders. |
protected void |
addSourceFolderViewItem(java.lang.String sourceFolder)
This method adds a FolderViewItem with packages style to the FreeformProject views. |
protected void |
addSubproject(java.lang.String subprojectName)
This method adds a Subprojectto the FreeformProject required projects. |
protected void |
addTargetDirectory()
This method adds the target folder to the FreeformProject views. |
protected void |
addTestCompilationUnits()
This method adds the CompilationUnit for the test source roots of the MavenProject and for the generated test source roots of the mavenExecutedProject to the FreeformProject. |
protected void |
addTestCompileSourceRoots()
This method adds the test source roots of the MavenProject and the generated test source roots of the mavenExecutedProject to the FreeformProject. |
protected void |
addTestResources()
This method adds the test resource folders to the FreeformProject views. |
protected void |
addTestSourceFolders()
This method adds the mavenExecutedProject test source roots to the FreeformProject source folders. |
void |
analyseProject(boolean useOutputDirectory)
This method role is to create the FreeformProject using the mavenProject, the mavenExecutedProject and the localRepository. |
void |
analyseTargets(boolean useOutputDirectory)
This method role is to create the List of AntTarget using the mavenProject, the mavenExecutedProject and the localRepository. |
protected void |
setActionBuild()
Sets the build ide action. |
protected void |
setActionClean()
Sets the clean ide action. |
protected void |
setActionJavadoc()
Sets the javadoc ide action. |
protected void |
setActionRebuild()
Sets the rebuild ide action. |
protected void |
setActionRun()
Sets the run ide action. |
protected void |
setActionTest()
Sets the test ide action. |
protected void |
setFreeformCompilationUnits()
Sets all the compilation units for the project. |
protected void |
setFreeformContextMenuItems()
Sets the whole context menu for the project. |
protected void |
setFreeformIdeActions()
Sets all the ide actions for the project. |
protected void |
setFreeformProjectName()
This method sets the name of the FreeformProject using the one of the MavenProject. |
protected void |
setFreeformProperties()
Sets all the properties form the project. |
protected void |
setFreeformSourceFolders()
Sets all the source folders for the project. |
protected void |
setFreeformSubprojects()
This method adds the modules of the MavenProject to the FreeformProject subprojects. |
protected void |
setFreeformViewItems()
Sets all the view items for the project. |
protected void |
setMenuBuild()
Sets the build menu item. |
protected void |
setMenuClean()
Sets the clean menu item. |
protected void |
setMenuJalopy()
Sets the format code menu item. |
protected void |
setMenuJavadoc()
Sets the javadoc menu item. |
protected void |
setMenuRebuild()
Sets the rebuild menu item. |
protected void |
setMenuRefreshProject()
Sets the refresh project menu item. |
protected void |
setMenuRun()
Sets the run menu item. |
protected void |
setMenuTest()
Sets the test menu item. |
protected void |
setTargetBuild()
Sets the build ant target. |
protected void |
setTargetClean()
Sets the clean ant target. |
protected void |
setTargetJalopy()
Sets the jalopy ant target. |
protected void |
setTargetJavadoc()
Sets the javadoc ant target. |
protected void |
setTargetRefreshProject()
Sets the refresh project ant target. |
protected void |
setTargetRun()
Sets the run ant target. |
protected void |
setTargetTest()
Sets the test ant target. |
protected void |
setViewPom()
Sets the pom file view item. |
protected java.util.List |
toRelativeArtifactPaths(java.util.List classpathElements,
java.io.File mavenProjectBasedir,
java.io.File localRepositoryBasedir)
This method, given a list of classpath elements with absobute paths, returns the same list of path elements with paths relative to the mavenProjectBasedir or the localRepositoryBasedir. |
| Methods inherited from class org.codehaus.mojo.freeform.analyser.Analyser |
|---|
addAdditionalActions, addAdditionalFiles, addAdditionalFolders, addAdditionalTargets, analyseProject, Analyser, analyseTargets, createProject, createTargets, getAnalyser, getProject, getTargets, setLocalRepository, setLog, setMavenExecutedProject, setMavenPath, setMavenProject, toRelative, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
BaseAnalyser()
| Method Detail |
|---|
public void analyseProject(boolean useOutputDirectory)
throws FreeformPluginException
analyseProject in class AnalyseruseOutputDirectory - whether the project elements contains reference to the project directory or not.
FreeformPluginException - if something goes wrong.
public void analyseTargets(boolean useOutputDirectory)
throws FreeformPluginException
analyseTargets in class AnalyseruseOutputDirectory - whether the project elements contains reference to the project directory or not.
FreeformPluginException - if something goes wrong.protected void setActionBuild()
protected void setActionClean()
protected void setActionJavadoc()
protected void setActionRebuild()
protected void setActionRun()
protected void setActionTest()
protected void setFreeformCompilationUnits()
throws FreeformPluginException
FreeformPluginException - if something goes wrongprotected void setFreeformContextMenuItems()
protected void setFreeformIdeActions()
protected void setFreeformProjectName()
protected void setFreeformProperties()
protected void setFreeformSourceFolders()
protected void setFreeformSubprojects()
protected void setFreeformViewItems()
protected void setMenuBuild()
protected void setMenuClean()
protected void setMenuJalopy()
protected void setMenuJavadoc()
protected void setMenuRebuild()
protected void setMenuRefreshProject()
protected void setMenuRun()
protected void setMenuTest()
protected void setTargetBuild()
protected void setTargetClean()
protected void setTargetJalopy()
protected void setTargetJavadoc()
protected void setTargetRefreshProject()
protected void setTargetRun()
protected void setTargetTest()
protected void setViewPom()
protected void addAntTarget(java.lang.String name,
java.lang.String comment)
comment - The description of the target in the ant file.name - The name and only goal of the AntTarget.
protected void addAntTarget(java.lang.String name,
java.lang.String mavenGoal,
java.lang.String comment)
comment - The description of the target in the ant file.name - The name of the AntTarget.mavenGoal - The only goal of the AntTarget.
protected void addAntTarget(java.lang.String name,
java.lang.String mavenGoal,
java.lang.String option,
java.lang.String comment)
option - The option line of the AntTargetcomment - The description of the target in the ant file.name - The name of the AntTarget.mavenGoal - The only goal of the AntTarget.
protected void addCompilationUnit(java.lang.String relativeOutputDirectory,
boolean unitTest,
java.util.List relativeSourceRoots,
java.util.List classpathElements,
java.io.File mavenProjectBasedir,
java.io.File localRepositoryBasedir)
mavenProjectBasedir - The basedir of the maven project.localRepositoryBasedir - The basedir of the local repository.relativeSourceRoots - The list of source roots relative to the pom.relativeOutputDirectory - The output directory relative to the pom.unitTest - If the CompilationUnit is an unit test one.classpathElements - The classpath elements for this CompilationUnit.protected void addCompileSourceRoots()
protected void addCustomisedContextMenuItem(java.lang.String name,
java.lang.String targets)
name - The name (visible) of the ContextMenuItem.targets - The list of AntTarget names for the ContextMenuItem.
protected void addFileViewItem(java.lang.String label,
java.lang.String location)
label - The label (visible) of the file.location - The location of the file relative to the pom.
protected void addIdeAction(java.lang.String name,
java.lang.String targets)
name - The name of the NetbeansAction.targets - The list of AntTarget for the NetbeansAction.protected void addIdeContextItem(java.lang.String name)
name - The name of the NamedNetbeansAction for the MenuItem.
protected void addMainCompilationUnits()
throws FreeformPluginException
FreeformPluginException - if something goes wrong.protected void addMavencallScript()
protected void addPropertyFile()
protected void addResourceFolderViewItem(java.lang.String resourceFolder)
resourceFolder - The name (visible) and location, relative to the
pom, of the FolderViewItem.protected void addResources()
protected void addSiteDirectoy()
protected void addSourceFolder(java.lang.String sourceRoot)
sourceRoot - The name and location, relative to the pom, of the
SourceFolder.protected void addSourceFolderViewItem(java.lang.String sourceFolder)
sourceFolder - The name (visible) and location, relative to the pom,
of the FolderViewItem.protected void addSourceFolders()
protected void addSubproject(java.lang.String subprojectName)
subprojectName - The location of the subproject relative to the pom.protected void addTargetDirectory()
protected void addTestCompilationUnits()
throws FreeformPluginException
FreeformPluginException - if something goes wrong.protected void addTestCompileSourceRoots()
protected void addTestResources()
protected void addTestSourceFolders()
protected java.util.List toRelativeArtifactPaths(java.util.List classpathElements,
java.io.File mavenProjectBasedir,
java.io.File localRepositoryBasedir)
classpathElements - The list of classpath elements.mavenProjectBasedir - The basedir of the maven project.localRepositoryBasedir - The basedir of the local repository.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||