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:
- ContextEnabled, Mojo
public class IdeaWorkspaceMojo
- extends AbstractIdeaMojo
Creates the workspace file (*.iws) for IntelliJ IDEA.
- Author:
- Edwin Punzalan
- Is defined by the goal name:
- workspace
- Is defined to be executed in:
- phase:
- generate-sources
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdeaWorkspaceMojo
public IdeaWorkspaceMojo()
execute
public void execute()
throws MojoExecutionException
- Create IDEA workspace (.iws) file.
- Throws:
MojoExecutionException
rewriteWorkspace
public void rewriteWorkspace()
throws MojoExecutionException
- Throws:
MojoExecutionException
getScmType
protected String getScmType()
- used to retrieve the SCM Type
- Returns:
- the Scm Type string used to connect to the SCM
getScmType
protected String getScmType(String connection)
translateScmType
protected String translateScmType(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–2013 The Apache Software Foundation. All rights reserved.