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, wait
getOrder
public 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
ProjectContributor
contribute
in interface ProjectContributor
projectRoot
- the root directory of the projectIOException
- if contributing a resource failedCopyright © 2022 Pivotal Software, Inc.. All rights reserved.