public abstract class AbstractCopyResourcesStep extends Object
Depending on provided parameter the content of copied file may be modified.
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractCopyResourcesStep.FileTreeHandler |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BOWER_COMPONENTS |
| Constructor and Description |
|---|
AbstractCopyResourcesStep(File target,
File[] sourceFolders,
AbstractCopyResourcesStep.FileTreeHandler handler)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<String>> |
copyResources()
Copies resources.
|
protected static String |
getRelativePath(Path source,
Path against)
Constructs a relative path between the
source path and a
against. |
protected static final String BOWER_COMPONENTS
public AbstractCopyResourcesStep(File target, File[] sourceFolders, AbstractCopyResourcesStep.FileTreeHandler handler)
target - the target directorysourceFolders - an array of source foldershandler - a strategy which handles the files in the source directoriespublic Map<String,List<String>> copyResources() throws IOException
Collects imported bower components using provided bowerComponents
if it's not null.
target directory which has been
copiedIOExceptionCopyright © 2000–2025 Vaadin Ltd. All rights reserved.