org.apache.maven.plugin.idea
Class IdeaWorkspaceMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.idea.AbstractIdeaMojo
org.apache.maven.plugin.idea.IdeaWorkspaceMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- public class IdeaWorkspaceMojo
- extends AbstractIdeaMojo
Creates the workspace file (*.iws) for IntelliJ IDEA.
- Author:
- Edwin Punzalan
- Is defined to be executed in:
- phase:
- generate-sources
- Is defined by the goal name:
- workspace
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
void |
execute()
Create IDEA workspace (.iws) file. |
protected java.lang.String |
getScmType()
used to retrieve the SCM Type |
protected java.lang.String |
getScmType(java.lang.String connection)
|
void |
rewriteWorkspace()
|
protected java.lang.String |
translateScmType(java.lang.String scmType)
Translate the SCM type from the SCM connection URL to the format used by
IDEA as the value for ACTIVE_VCS_NAME. |
Methods inherited from class org.apache.maven.plugin.idea.AbstractIdeaMojo |
createElement, doDependencyResolution, findComponent, findElement, findElement, getLog, getPluginSetting, initParam, readXmlDocument, removeOldElements, toRelative, writeXmlDocument |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdeaWorkspaceMojo
public IdeaWorkspaceMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Create IDEA workspace (.iws) file.
- Throws:
org.apache.maven.plugin.MojoExecutionException
rewriteWorkspace
public void rewriteWorkspace()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getScmType
protected java.lang.String getScmType()
- used to retrieve the SCM Type
- Returns:
- the Scm Type string used to connect to the SCM
getScmType
protected java.lang.String getScmType(java.lang.String connection)
translateScmType
protected java.lang.String translateScmType(java.lang.String scmType)
- Translate the SCM type from the SCM connection URL to the format used by
IDEA as the value for ACTIVE_VCS_NAME.
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.