public interface BuildSystem
Modifier and Type | Method and Description |
---|---|
default String |
dialect()
The dialect of the build system, or
null if the build system does not
support multiple dialects. |
static BuildSystem |
forId(String id) |
static BuildSystem |
forIdAndDialect(String id,
String dialect) |
default SourceStructure |
getMainSource(Path projectRoot,
Language language)
Returns a
SourceStructure for main sources. |
default SourceStructure |
getTestSource(Path projectRoot,
Language language)
Returns a
SourceStructure for test sources. |
String |
id()
The id of the build system.
|
String id()
default String dialect()
null
if the build system does not
support multiple dialects.null
default SourceStructure getMainSource(Path projectRoot, Language language)
SourceStructure
for main sources.projectRoot
- the root of the project structurelanguage
- the language of the projectSourceStructure
for main assetsdefault SourceStructure getTestSource(Path projectRoot, Language language)
SourceStructure
for test sources.projectRoot
- the root of the project structurelanguage
- the language of the projectSourceStructure
for test assetsstatic BuildSystem forId(String id)
static BuildSystem forIdAndDialect(String id, String dialect)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.