public class DepsGenerator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DepsGenerator.InclusionStrategy |
Constructor and Description |
---|
DepsGenerator(Collection<SourceFile> deps,
Collection<SourceFile> srcs,
DepsGenerator.InclusionStrategy mergeStrategy,
String closurePathAbs,
ErrorManager errorManager)
Creates a new DepsGenerator.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUpDuplicatedFiles(Map<String,DependencyInfo> depsFiles,
Map<String,DependencyInfo> jsFiles)
Removes duplicated depsInfo from jsFiles if this info already present in
some of the parsed deps.js
|
String |
computeDependencyCalls()
Performs the parsing inputs and writing of outputs.
|
protected DepsFileParser |
createDepsFileParser() |
protected String |
formatPathToDepsFile(String path)
Format the deps file path so that it can be included in the output file.
|
protected boolean |
shouldSkipDepsFile(SourceFile file)
Returns whether we should ignore dependency info in the given deps file.
|
public DepsGenerator(Collection<SourceFile> deps, Collection<SourceFile> srcs, DepsGenerator.InclusionStrategy mergeStrategy, String closurePathAbs, ErrorManager errorManager)
public String computeDependencyCalls() throws IOException
IOException
- Occurs upon an IO error.protected void cleanUpDuplicatedFiles(Map<String,DependencyInfo> depsFiles, Map<String,DependencyInfo> jsFiles)
depsFiles
- DepsInfo from deps.js dependenciesjsFiles
- DepsInfo from some of jsSourcesprotected DepsFileParser createDepsFileParser()
protected boolean shouldSkipDepsFile(SourceFile file)
Copyright © 2009-2016 Google. All Rights Reserved.