public class DefaultProjectAssetGenerator extends Object implements ProjectAssetGenerator<Path>
ProjectAssetGenerator implementation that generates a directory
structure with all available project contributors. Uses a
ProjectDirectoryFactory to determine the root directory to use based on a
ProjectDescription.| Constructor and Description |
|---|
DefaultProjectAssetGenerator()
Create a new instance without an explicit
ProjectDirectoryFactory. |
DefaultProjectAssetGenerator(ProjectDirectoryFactory projectDirectoryFactory)
Create a new instance with the
ProjectDirectoryFactory to use. |
| Modifier and Type | Method and Description |
|---|---|
Path |
generate(ProjectGenerationContext context)
Generate project assets using the specified
ProjectGenerationContext. |
public DefaultProjectAssetGenerator(ProjectDirectoryFactory projectDirectoryFactory)
ProjectDirectoryFactory to use.projectDirectoryFactory - the project directory factory to usepublic DefaultProjectAssetGenerator()
ProjectDirectoryFactory. A bean
of that type is expected to be available in the context.public Path generate(ProjectGenerationContext context) throws IOException
ProjectAssetGeneratorProjectGenerationContext.generate in interface ProjectAssetGenerator<Path>context - the context to useIOException - if writing project assets failedCopyright © 2020 Pivotal Software, Inc.. All rights reserved.