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 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(XMLWriter writer)
           
protected abstract  String getBuilderLocation()
           
protected abstract  String getLaunchConfigurationType()
           
protected  List getMonitoredResources()
           
protected  String getRefreshScope()
           
protected  String[] getRunBuildKinds()
           
protected  EclipseWriter init(Log log, EclipseWriterConfig config, 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(XMLWriter writer, String key, boolean value)
           
protected static void writeAttribute(XMLWriter writer, String key, String value)
           
protected static void writeAttribute(XMLWriter writer, String key, 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 String FILE_DOT_EXTERNAL_TOOL_BUILDERS
See Also:
Constant Field Values
Constructor Detail

EclipseLaunchConfigurationWriter

public EclipseLaunchConfigurationWriter()
Method Detail

init

protected EclipseWriter init(Log log,
                             EclipseWriterConfig config,
                             String filename)
Filename including .launch

Parameters:
filename -

write

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

Throws:
MojoExecutionException

getMonitoredResources

protected List getMonitoredResources()

addAttributes

protected abstract void addAttributes(XMLWriter writer)

getRefreshScope

protected String getRefreshScope()

getBuilderLocation

protected abstract String getBuilderLocation()

getRunBuildKinds

protected String[] getRunBuildKinds()

isAppendEnvironmentVariables

protected boolean isAppendEnvironmentVariables()

isLaunchInBackground

protected boolean isLaunchInBackground()

getLaunchConfigurationType

protected abstract String getLaunchConfigurationType()

writeAttribute

protected static void writeAttribute(XMLWriter writer,
                                     String key,
                                     String value)

writeAttribute

protected static void writeAttribute(XMLWriter writer,
                                     String key,
                                     boolean value)

writeAttribute

protected static void writeAttribute(XMLWriter writer,
                                     String key,
                                     String[] values)


Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.