org.apache.maven.plugin.eclipse.writers
Class EclipseLaunchConfigurationWriter

java.lang.Object
  extended by org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
      extended by org.apache.maven.plugin.eclipse.writers.EclipseLaunchConfigurationWriter
All Implemented Interfaces:
EclipseWriter
Direct Known Subclasses:
EclipseAntExternalLaunchConfigurationWriter

public abstract class EclipseLaunchConfigurationWriter
extends AbstractEclipseWriter

Base class for writing external launch configuration files.

Author:
Kenney Westerhof

Field Summary
static java.lang.String FILE_DOT_EXTERNAL_TOOL_BUILDERS
           
 
Fields inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
config, log
 
Constructor Summary
EclipseLaunchConfigurationWriter()
           
 
Method Summary
protected abstract  void addAttributes(org.codehaus.plexus.util.xml.XMLWriter writer)
           
protected abstract  java.lang.String getBuilderLocation()
           
protected abstract  java.lang.String getLaunchConfigurationType()
           
protected  java.util.List getMonitoredResources()
           
protected  java.lang.String getRefreshScope()
           
protected  java.lang.String[] getRunBuildKinds()
           
protected  EclipseWriter init(org.apache.maven.plugin.logging.Log log, EclipseWriterConfig config, java.lang.String filename)
          Filename including .launch
protected  boolean isAppendEnvironmentVariables()
           
protected  boolean isLaunchInBackground()
           
 void write()
          Main method that should be implemented by the writer to do the work.
protected static void writeAttribute(org.codehaus.plexus.util.xml.XMLWriter writer, java.lang.String key, boolean value)
           
protected static void writeAttribute(org.codehaus.plexus.util.xml.XMLWriter writer, java.lang.String key, java.lang.String value)
           
protected static void writeAttribute(org.codehaus.plexus.util.xml.XMLWriter writer, java.lang.String key, java.lang.String[] values)
           
 
Methods inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_DOT_EXTERNAL_TOOL_BUILDERS

public static final java.lang.String FILE_DOT_EXTERNAL_TOOL_BUILDERS
See Also:
Constant Field Values
Constructor Detail

EclipseLaunchConfigurationWriter

public EclipseLaunchConfigurationWriter()
Method Detail

init

protected EclipseWriter init(org.apache.maven.plugin.logging.Log log,
                             EclipseWriterConfig config,
                             java.lang.String filename)
Filename including .launch

Parameters:
filename -

write

public void write()
           throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface: EclipseWriter
Main method that should be implemented by the writer to do the work.

Throws:
org.apache.maven.plugin.MojoExecutionException

getMonitoredResources

protected java.util.List getMonitoredResources()

addAttributes

protected abstract void addAttributes(org.codehaus.plexus.util.xml.XMLWriter writer)

getRefreshScope

protected java.lang.String getRefreshScope()

getBuilderLocation

protected abstract java.lang.String getBuilderLocation()

getRunBuildKinds

protected java.lang.String[] getRunBuildKinds()

isAppendEnvironmentVariables

protected boolean isAppendEnvironmentVariables()

isLaunchInBackground

protected boolean isLaunchInBackground()

getLaunchConfigurationType

protected abstract java.lang.String getLaunchConfigurationType()

writeAttribute

protected static void writeAttribute(org.codehaus.plexus.util.xml.XMLWriter writer,
                                     java.lang.String key,
                                     java.lang.String value)

writeAttribute

protected static void writeAttribute(org.codehaus.plexus.util.xml.XMLWriter writer,
                                     java.lang.String key,
                                     boolean value)

writeAttribute

protected static void writeAttribute(org.codehaus.plexus.util.xml.XMLWriter writer,
                                     java.lang.String key,
                                     java.lang.String[] values)


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.