public class MultipleResourcesProjectContributor extends Object implements ProjectContributor
ProjectContributor that contributes all of the resources found beneath a root
location to a generated project.PathMatchingResourcePatternResolver| Constructor and Description |
|---|
MultipleResourcesProjectContributor(String rootResource)
Create a new instance with the
rootResource to use to locate resources to
copy to the project structure. |
MultipleResourcesProjectContributor(String rootResource,
Predicate<String> executable) |
| 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 MultipleResourcesProjectContributor(String rootResource)
rootResource to use to locate resources to
copy to the project structure.rootResource - the root resource pathPathMatchingResourcePatternResolver.getResources(String)public void contribute(Path projectRoot) throws IOException
ProjectContributorcontribute in interface ProjectContributorprojectRoot - the root directory of the projectIOException - if contributing a resource failedCopyright © 2021 Pivotal Software, Inc.. All rights reserved.