Package 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
- Direct Known Subclasses:
CSharpCompiler,J2ObjCCompiler,JavacCompiler
public abstract class AbstractCompiler
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements Compiler
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCompiler(CompilerOutputStyle compilerOutputStyle, String inputFileEnding, String outputFileEnding, String outputFile) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUpdateTarget(CompilerConfiguration configuration) compile(CompilerConfiguration configuration) Deprecated.private static StringgetCanonicalPath(File origFile) getInputFileEnding(CompilerConfiguration configuration) getOutputFile(CompilerConfiguration configuration) getOutputFileEnding(CompilerConfiguration configuration) static StringgetPathString(List<String> pathElements) protected static String[]getSourceFiles(CompilerConfiguration config) getSourceFilesForSourceRoot(CompilerConfiguration config, String sourceLocation) protected static StringmakeClassName(String fileName, String sourceDir) performCompile(CompilerConfiguration configuration) Performs the compilation of the project.protected static String[]toStringArray(List<String> arguments) Deprecated.use (String[]) arguments.toArray( new String[ arguments.size() ] ); insteadMethods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.plexus.compiler.Compiler
createCommandLine, supportsIncrementalCompilation
-
Field Details
-
EOL
-
PS
-
compilerOutputStyle
-
inputFileEnding
-
outputFileEnding
-
outputFile
-
-
Constructor Details
-
AbstractCompiler
protected AbstractCompiler(CompilerOutputStyle compilerOutputStyle, String inputFileEnding, String outputFileEnding, String outputFile)
-
-
Method Details
-
performCompile
Description copied from interface:CompilerPerforms the compilation of the project. Clients must implement this method.- Specified by:
performCompilein interfaceCompiler- Parameters:
configuration- the configuration description of the compilation to perform- Returns:
- the result of the compilation returned by the language processor
- Throws:
CompilerException
-
compile
@Deprecated public List<CompilerError> compile(CompilerConfiguration configuration) throws CompilerException Deprecated.Description copied from interface:CompilerThis method is provided for backwards compatibility only. Clients should useCompiler.performCompile(CompilerConfiguration)instead.- Specified by:
compilein interfaceCompiler- Parameters:
configuration- the configuration description of the compilation to perform- Returns:
- the result of the compilation returned by the language processor
- Throws:
CompilerException
-
getCompilerOutputStyle
- Specified by:
getCompilerOutputStylein interfaceCompiler
-
getInputFileEnding
- Specified by:
getInputFileEndingin interfaceCompiler- Throws:
CompilerException
-
getOutputFileEnding
- Specified by:
getOutputFileEndingin interfaceCompiler- Throws:
CompilerException
-
getOutputFile
- Specified by:
getOutputFilein interfaceCompiler- Throws:
CompilerException
-
canUpdateTarget
- Specified by:
canUpdateTargetin interfaceCompiler- Throws:
CompilerException
-
getPathString
-
getSourceFilesForSourceRoot
protected static Set<String> getSourceFilesForSourceRoot(CompilerConfiguration config, String sourceLocation) -
getSourceFiles
-
makeClassName
- Throws:
CompilerException
-
getCanonicalPath
- Throws:
CompilerException
-
toStringArray
Deprecated.use (String[]) arguments.toArray( new String[ arguments.size() ] ); instead
-