org.codehaus.plexus.compiler

Interface Compiler

public interface Compiler

Version: $Id: Compiler.java 2723 2005-10-15 14:58:55Z brett $

Author: Jason van Zyl Trygve Laugstøl Matthew Pocock

Field Summary
StringROLE
Method Summary
booleancanUpdateTarget(CompilerConfiguration configuration)
Listcompile(CompilerConfiguration configuration)
String[]createCommandLine(CompilerConfiguration config)
Create the command line that would be executed using this configuration.
CompilerOutputStylegetCompilerOutputStyle()
StringgetInputFileEnding(CompilerConfiguration configuration)
StringgetOutputFile(CompilerConfiguration configuration)
StringgetOutputFileEnding(CompilerConfiguration configuration)

Field Detail

ROLE

public String ROLE

Method Detail

canUpdateTarget

public boolean canUpdateTarget(CompilerConfiguration configuration)

compile

public List compile(CompilerConfiguration configuration)

createCommandLine

public String[] createCommandLine(CompilerConfiguration config)
Create the command line that would be executed using this configuration. If this particular compiler has no concept of a command line then returns null.

Parameters: config the CompilerConfiguration describing the compilation

Returns: an array of Strings that make up the command line, or null if this compiler has no concept of command line

Throws: CompilerException if there was an error generating the command line

getCompilerOutputStyle

public CompilerOutputStyle getCompilerOutputStyle()

getInputFileEnding

public String getInputFileEnding(CompilerConfiguration configuration)

getOutputFile

public String getOutputFile(CompilerConfiguration configuration)

getOutputFileEnding

public String getOutputFileEnding(CompilerConfiguration configuration)