public class SingleResourceProjectContributor extends Object implements ProjectContributor
ProjectContributor that contributes a single file, identified by a resource
pattern, to a generated project.PathMatchingResourcePatternResolver| Constructor and Description |
|---|
SingleResourceProjectContributor(String relativePath,
String resourcePattern)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
contribute(Path projectRoot)
Contribute additional resources to the project in the specified root directory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOrderpublic SingleResourceProjectContributor(String relativePath, String resourcePattern)
relativePath - the relative path in the
generated structure.resourcePattern - the pattern to use to locate the resource to copy to the
project structurePathMatchingResourcePatternResolver.getResource(String)public void contribute(Path projectRoot) throws IOException
ProjectContributorcontribute in interface ProjectContributorprojectRoot - the root directory of the projectIOException - if contributing a resource failedCopyright © 2022 Pivotal Software, Inc.. All rights reserved.