org.codehaus.mojo.selenium
Class XvfbMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.groovy.maven.mojo.GroovyMojo
          extended by org.codehaus.mojo.selenium.XvfbMojo
All Implemented Interfaces:
groovy.lang.GroovyObject, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class XvfbMojo
extends org.codehaus.groovy.maven.mojo.GroovyMojo

Starts an Xvfb instance suitable for handling X11 displays for headless systems. Use this in combonation with the start-server goal to allow browsers to be launched on headless unix systems.

Optionally uses 'xauth' to setup authentication for the Xvfb instance to allow running tests using the frame buffer server when another X server is already running.

Since:
1.0-beta-2
Version:
$Id: XvfbMojo.groovy 6795 2008-04-18 16:09:59Z user57 $

Field Summary
 
Fields inherited from class org.codehaus.groovy.maven.mojo.GroovyMojo
__timeStamp, __timeStamp__239_neverHappen1222927117793, sanitizeErrors
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
XvfbMojo()
           
 
Method Summary
 void execute()
           
 java.io.File getAuthenticationFile()
           
 boolean getBackground()
           
static int getDEFAULT_DISPLAY_NUMBER()
           
 java.lang.String getDisplay()
           
 java.io.File getDisplayPropertiesFile()
           
 java.io.File getLogFile()
           
 boolean getLogOutput()
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.String[] getOptions()
           
 java.lang.Object getProperty(java.lang.String name)
           
 boolean getSkip()
           
 boolean getXauthEnabled()
           
 java.lang.String getXauthExecutable()
           
 java.lang.String getXauthProtocol()
           
 java.lang.String getXvfbExecutable()
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
           
 boolean isBackground()
           
 boolean isLogOutput()
           
 boolean isSkip()
           
 boolean isXauthEnabled()
           
 void setAuthenticationFile(java.io.File value)
           
 void setBackground(boolean value)
           
 void setDisplay(java.lang.String value)
           
 void setDisplayPropertiesFile(java.io.File value)
           
 void setLogFile(java.io.File value)
           
 void setLogOutput(boolean value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setOptions(java.lang.String[] value)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void setSkip(boolean value)
           
 void setXauthEnabled(boolean value)
           
 void setXauthExecutable(java.lang.String value)
           
 void setXauthProtocol(java.lang.String value)
           
 void setXvfbExecutable(java.lang.String value)
           
 
Methods inherited from class org.codehaus.groovy.maven.mojo.GroovyMojo
afterExecute, beforeExecute, fail, fail, getAnt
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XvfbMojo

public XvfbMojo()
Method Detail

getXvfbExecutable

public java.lang.String getXvfbExecutable()

setXvfbExecutable

public void setXvfbExecutable(java.lang.String value)

getXauthEnabled

public boolean getXauthEnabled()

isXauthEnabled

public boolean isXauthEnabled()

setXauthEnabled

public void setXauthEnabled(boolean value)

getXauthExecutable

public java.lang.String getXauthExecutable()

setXauthExecutable

public void setXauthExecutable(java.lang.String value)

getXauthProtocol

public java.lang.String getXauthProtocol()

setXauthProtocol

public void setXauthProtocol(java.lang.String value)

getAuthenticationFile

public java.io.File getAuthenticationFile()

setAuthenticationFile

public void setAuthenticationFile(java.io.File value)

getDEFAULT_DISPLAY_NUMBER

public static final int getDEFAULT_DISPLAY_NUMBER()

getDisplay

public java.lang.String getDisplay()

setDisplay

public void setDisplay(java.lang.String value)

getOptions

public java.lang.String[] getOptions()

setOptions

public void setOptions(java.lang.String[] value)

getDisplayPropertiesFile

public java.io.File getDisplayPropertiesFile()

setDisplayPropertiesFile

public void setDisplayPropertiesFile(java.io.File value)

getLogOutput

public boolean getLogOutput()

isLogOutput

public boolean isLogOutput()

setLogOutput

public void setLogOutput(boolean value)

getLogFile

public java.io.File getLogFile()

setLogFile

public void setLogFile(java.io.File value)

getBackground

public boolean getBackground()

isBackground

public boolean isBackground()

setBackground

public void setBackground(boolean value)

getSkip

public boolean getSkip()

isSkip

public boolean isSkip()

setSkip

public void setSkip(boolean value)

execute

public void execute()

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class org.codehaus.groovy.maven.mojo.GroovyMojo

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class org.codehaus.groovy.maven.mojo.GroovyMojo

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class org.codehaus.groovy.maven.mojo.GroovyMojo

getProperty

public java.lang.Object getProperty(java.lang.String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class org.codehaus.groovy.maven.mojo.GroovyMojo

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class org.codehaus.groovy.maven.mojo.GroovyMojo


Copyright © 2006-2009. All Rights Reserved.