public class SBT0135Analysis extends Object implements Analysis
| Constructor and Description |
|---|
SBT0135Analysis(sbt.inc.Analysis analysis)
Creates
Analysis wrapper around SBT native Analysis delegate. |
| Modifier and Type | Method and Description |
|---|---|
long |
getCompilationTime(File sourceFile)
Returns source file's compilation time.
|
Set<File> |
getProducts(File sourceFile)
Returns source file's compilation products (class files).
|
Set<File> |
getSourceFiles()
Returns all source files.
|
Object |
unwrap()
Returns SBT native incremental compilation object.
|
void |
updateClassFileTimestamp(File classFile)
Updates class file time stamp written in incremental compilation analysis
to the value returned by
File.lastModified(). |
void |
writeToFile(File analysisCacheFile)
Stores incremental compilation analysis in the file.
|
public SBT0135Analysis(sbt.inc.Analysis analysis)
Analysis wrapper around SBT native Analysis delegate.analysis - SBT native Analysis delegatepublic void writeToFile(File analysisCacheFile)
com.google.code.sbt.compiler.api.AnalysiswriteToFile in interface AnalysisanalysisCacheFile - the file to store analysis inpublic Set<File> getSourceFiles()
com.google.code.sbt.compiler.api.AnalysisgetSourceFiles in interface Analysispublic long getCompilationTime(File sourceFile)
com.google.code.sbt.compiler.api.AnalysisgetCompilationTime in interface AnalysissourceFile - source filepublic Set<File> getProducts(File sourceFile)
com.google.code.sbt.compiler.api.AnalysisgetProducts in interface AnalysissourceFile - source filepublic void updateClassFileTimestamp(File classFile)
com.google.code.sbt.compiler.api.AnalysisFile.lastModified().
Not all compilers store file time stamps in the analysis,
but for the ones that do it, it's important that this information
is always up to date.
Class file is changed if it is processed after compilation.
If it's new time stamp will not be stored in the analysis cache file
the next time compilation runs, SBT compiler will unnecessarily recompile the file.updateClassFileTimestamp in interface AnalysisclassFile - class filepublic Object unwrap()
com.google.code.sbt.compiler.api.AnalysisCopyright © 2013–2015. All rights reserved.