Package org.codehaus.plexus.compiler
Class AbstractCompiler
java.lang.Object
org.codehaus.plexus.compiler.AbstractCompiler
- All Implemented Interfaces:
Compiler
- Author:
- Jason van Zyl , Michal Maczka , Trygve Laugstøl
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractCompiler
(CompilerOutputStyle compilerOutputStyle, String inputFileEnding, String outputFileEnding, String outputFile) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUpdateTarget
(CompilerConfiguration configuration) abstract String
getInputFileEnding
(CompilerConfiguration configuration) protected org.slf4j.Logger
getLog()
protected org.codehaus.plexus.logging.Logger
Deprecated.getOutputFile
(CompilerConfiguration configuration) getOutputFileEnding
(CompilerConfiguration configuration) static String
getPathString
(List<String> pathElements) protected static String[]
getSourceFiles
(CompilerConfiguration config) getSourceFilesForSourceRoot
(CompilerConfiguration config, String sourceLocation) protected void
logCompiling
(String[] sourceFiles, CompilerConfiguration config) protected static String
makeClassName
(String fileName, String sourceDir) performCompile
(CompilerConfiguration configuration) Performs the compilation of the project.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.codehaus.plexus.compiler.Compiler
createCommandLine, supportsIncrementalCompilation
-
Field Details
-
EOL
-
PS
-
-
Constructor Details
-
AbstractCompiler
protected AbstractCompiler(CompilerOutputStyle compilerOutputStyle, String inputFileEnding, String outputFileEnding, String outputFile)
-
-
Method Details
-
getLog
protected org.slf4j.Logger getLog()- Returns:
- a Logger
-
getLogger
Deprecated.please usegetLog()
- Returns:
- a plexus Logger
-
getCompilerId
-
performCompile
Description copied from interface:Compiler
Performs the compilation of the project. Clients must implement this method.- Specified by:
performCompile
in 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:
getCompilerOutputStyle
in interfaceCompiler
-
getInputFileEnding
- Specified by:
getInputFileEnding
in interfaceCompiler
- Throws:
CompilerException
-
getOutputFileEnding
- Specified by:
getOutputFileEnding
in interfaceCompiler
- Throws:
CompilerException
-
getOutputFile
- Specified by:
getOutputFile
in interfaceCompiler
- Throws:
CompilerException
-
canUpdateTarget
- Specified by:
canUpdateTarget
in interfaceCompiler
- Throws:
CompilerException
-
getPathString
-
getSourceFilesForSourceRoot
protected static Set<String> getSourceFilesForSourceRoot(CompilerConfiguration config, String sourceLocation) -
getSourceFiles
-
makeClassName
- Throws:
CompilerException
-
logCompiling
-
getLog()