Implementation utilities for creating tool wrappers
| Constructor and description |
|---|
ToolWrapper
(org.ysb33r.grolifant.api.core.ProjectOperations po) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.Set<File> |
copyWrappersFromResources(String templateResourcePath, java.util.Map<String, String> templateMapping)Copy wrapper templates from resources into a temporary directory |
|
Action<CopySpec> |
wrapperCopyAction(java.util.Collection<File> templateFiles, File destDir, String beginToken, String endToken, java.util.Map<String, String> tokens)Configures an action for transforming a collection files using Ant-style replace tokens filter. |
Copy wrapper templates from resources into a temporary directory
templateResourcePath - Classpath resource to search for templates.templateMapping - A map of the resource template file name to the final file nameConfigures an action for transforming a collection files using Ant-style replace tokens filter.
templateFiles - Collection of files to be transformeddestDir - Destination directorybeginToken - Starting token delimiterendToken - Ending token delimitertokens - Map of token values.