org.apache.maven.plugin.idea
Class IdeaWorkspaceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.idea.AbstractIdeaMojo
          extended by 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

Field Summary
 
Fields inherited from class org.apache.maven.plugin.idea.AbstractIdeaMojo
artifactFactory, artifactMetadataSource, artifactResolver, executedProject, localRepo, log, overwrite
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
IdeaWorkspaceMojo()
           
 
Method Summary
 void execute()
          Create IDEA workspace (.iws) file.
protected  String getScmType()
          used to retrieve the SCM Type
protected  String getScmType(String connection)
           
 void rewriteWorkspace()
           
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.
 
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
 

Constructor Detail

IdeaWorkspaceMojo

public IdeaWorkspaceMojo()
Method Detail

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.