org.quattor.ant
Class DependencyChecker
java.lang.Object
org.quattor.ant.DependencyChecker
public class DependencyChecker
- extends Object
|
Method Summary |
static String |
extractLocalizedTemplateName(File sourceFile,
CompilerOptions options)
|
List<File> |
extractOutdatedFiles(List<File> objectFiles,
File outputDirectory,
boolean gzipOutput)
|
boolean |
isDependencyListOutdated(File dependencyFile,
Long targetTime)
|
boolean |
isDependencyOutdated(String line,
Long targetTime)
|
static boolean |
isSingleDependencyDifferent(File dep,
File foundFile)
|
boolean |
isSingleDependencyOutdated(File dep,
long targetTime)
|
boolean |
isSourceDependencyOutdated(DependencyChecker.DependencyInfo info,
long targetTime)
|
boolean |
isTextDependencyOutdated(DependencyChecker.DependencyInfo info,
long targetTime)
|
File |
lookupSourceFile(String tplName)
|
File |
lookupTextFile(String tplName)
|
static File |
reconstructSingleDependency(String templatePath,
String tplName,
SourceType type)
|
static String |
stripPanExtensions(String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyChecker
public DependencyChecker(List<File> includeDirectories,
Pattern ignoredDependencyPattern)
extractOutdatedFiles
public List<File> extractOutdatedFiles(List<File> objectFiles,
File outputDirectory,
boolean gzipOutput)
extractLocalizedTemplateName
public static String extractLocalizedTemplateName(File sourceFile,
CompilerOptions options)
isDependencyListOutdated
public boolean isDependencyListOutdated(File dependencyFile,
Long targetTime)
isDependencyOutdated
public boolean isDependencyOutdated(String line,
Long targetTime)
isSourceDependencyOutdated
public boolean isSourceDependencyOutdated(DependencyChecker.DependencyInfo info,
long targetTime)
isTextDependencyOutdated
public boolean isTextDependencyOutdated(DependencyChecker.DependencyInfo info,
long targetTime)
isSingleDependencyOutdated
public boolean isSingleDependencyOutdated(File dep,
long targetTime)
lookupSourceFile
public File lookupSourceFile(String tplName)
lookupTextFile
public File lookupTextFile(String tplName)
isSingleDependencyDifferent
public static boolean isSingleDependencyDifferent(File dep,
File foundFile)
stripPanExtensions
public static String stripPanExtensions(String name)
reconstructSingleDependency
public static File reconstructSingleDependency(String templatePath,
String tplName,
SourceType type)
throws URISyntaxException
- Throws:
URISyntaxException
Copyright © 2012 Quattor. All Rights Reserved.