org.codehaus.plexus.compiler
Class AbstractCompiler
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.compiler.AbstractCompiler
- All Implemented Interfaces:
- Compiler, org.codehaus.plexus.logging.LogEnabled
public abstract class AbstractCompiler
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements Compiler
- Version:
- $Id: AbstractCompiler.java 2441 2005-09-06 17:04:48Z trygvis $
- Author:
- Jason van Zyl , Michal Maczka , Trygve Laugstøl
Fields inherited from interface org.codehaus.plexus.compiler.Compiler |
ROLE |
Constructor Summary |
protected |
AbstractCompiler(CompilerOutputStyle compilerOutputStyle,
java.lang.String inputFileEnding,
java.lang.String outputFileEnding,
java.lang.String outputFile)
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EOL
protected static final java.lang.String EOL
PS
protected static final java.lang.String PS
compilerOutputStyle
private CompilerOutputStyle compilerOutputStyle
inputFileEnding
private java.lang.String inputFileEnding
outputFileEnding
private java.lang.String outputFileEnding
outputFile
private java.lang.String outputFile
AbstractCompiler
protected AbstractCompiler(CompilerOutputStyle compilerOutputStyle,
java.lang.String inputFileEnding,
java.lang.String outputFileEnding,
java.lang.String outputFile)
getCompilerOutputStyle
public CompilerOutputStyle getCompilerOutputStyle()
- Specified by:
getCompilerOutputStyle
in interface Compiler
getInputFileEnding
public java.lang.String getInputFileEnding(CompilerConfiguration configuration)
throws CompilerException
- Specified by:
getInputFileEnding
in interface Compiler
- Throws:
CompilerException
getOutputFileEnding
public java.lang.String getOutputFileEnding(CompilerConfiguration configuration)
throws CompilerException
- Specified by:
getOutputFileEnding
in interface Compiler
- Throws:
CompilerException
getOutputFile
public java.lang.String getOutputFile(CompilerConfiguration configuration)
throws CompilerException
- Specified by:
getOutputFile
in interface Compiler
- Throws:
CompilerException
canUpdateTarget
public boolean canUpdateTarget(CompilerConfiguration configuration)
throws CompilerException
- Specified by:
canUpdateTarget
in interface Compiler
- Throws:
CompilerException
getPathString
public static java.lang.String getPathString(java.util.List pathElements)
getSourceFilesForSourceRoot
protected static java.util.Set getSourceFilesForSourceRoot(CompilerConfiguration config,
java.lang.String sourceLocation)
getSourceFiles
protected static java.lang.String[] getSourceFiles(CompilerConfiguration config)
makeClassName
protected static java.lang.String makeClassName(java.lang.String fileName,
java.lang.String sourceDir)
throws CompilerException
- Throws:
CompilerException
getCanonicalPath
private static java.lang.String getCanonicalPath(java.io.File origFile)
throws CompilerException
- Throws:
CompilerException
toStringArray
protected static java.lang.String[] toStringArray(java.util.List arguments)
- Deprecated. use (String[]) arguments.toArray( new String[ arguments.size() ] ); instead