org.efaps.maven_efaps_jetty
Class JettyRunMojo

java.lang.Object
  extended by org.efaps.maven_efaps_jetty.JettyRunMojo
All Implemented Interfaces:
org.apache.maven.plugin.Mojo

public class JettyRunMojo
extends Object
implements org.apache.maven.plugin.Mojo

The goal starts the Jetty web server.

Version:
$Id: JettyRunMojo.java 7510 2012-05-11 18:50:29Z jan@moxter.net $
Author:
The eFaps Team

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JettyRunMojo()
           
 
Method Summary
protected  Map<String,String> convertToMap(String _text)
          Separates all key / value pairs of given text string.
Evaluation algorithm:
Separates the text by all found commas (only if in front of the comma is no back slash).
 void execute()
          Runs the eFaps Jetty server.
 org.apache.maven.plugin.logging.Log getLog()
          This is the getter method for instance variable log.
protected  void init()
           
 void setLog(org.apache.maven.plugin.logging.Log _log)
          This is the setter method for instance variable log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyRunMojo

public JettyRunMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Runs the eFaps Jetty server.

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException - if Jetty web server could not be started

init

protected void init()
See Also:
used to convert the connection string to a property map, type, factory, connection

setLog

public void setLog(org.apache.maven.plugin.logging.Log _log)
This is the setter method for instance variable log.

Specified by:
setLog in interface org.apache.maven.plugin.Mojo
Parameters:
_log - new value for instance variable log
See Also:
log, getLog()

getLog

public org.apache.maven.plugin.logging.Log getLog()
This is the getter method for instance variable log.

Specified by:
getLog in interface org.apache.maven.plugin.Mojo
Returns:
value of instance variable log
See Also:
log, setLog(org.apache.maven.plugin.logging.Log)

convertToMap

protected Map<String,String> convertToMap(String _text)
Separates all key / value pairs of given text string.
Evaluation algorithm:
Separates the text by all found commas (only if in front of the comma is no back slash). This are the key / value pairs. A key / value pair is separated by the first equal ('=') sign.

Parameters:
_text - text string to convert to a key / value map
Returns:
Map of strings with all found key / value pairs


Copyright © 2007-2012 eFaps. All Rights Reserved.