public class ContentsConfigurator extends Object implements Consumer<BaseProject<?>>
Constructor and Description |
---|
ContentsConfigurator(TryConsumer<? super Bundle,IOException> action)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(BaseProject<?> project) |
static ContentsConfigurator |
copy(Path source)
Returns a configuration which copies contents onto the contents root.
|
static ContentsConfigurator |
copy(Path source,
String onto)
Returns a configuration which copies contents onto the given destination path.
|
static ContentsConfigurator |
copy(String source)
Returns a configuration which copies contents onto the contents root.
|
static ContentsConfigurator |
copy(String source,
String onto)
Returns a configuration which copies contents onto the given destination path.
|
static ContentsConfigurator |
extract(Path source)
Returns a configuration which extracts archive file onto the contents root.
|
static ContentsConfigurator |
extract(Path source,
String onto)
Returns a configuration which extracts archive file onto the given destination path.
|
static ContentsConfigurator |
extract(String source)
Returns a configuration which extracts archive file onto the contents root.
|
static ContentsConfigurator |
extract(String source,
String onto)
Returns a configuration which extracts archive file onto the given destination path.
|
public ContentsConfigurator(TryConsumer<? super Bundle,IOException> action)
action
- the actionpublic static ContentsConfigurator copy(String source)
source
- the source pathpublic static ContentsConfigurator copy(Path source)
source
- the source pathpublic static ContentsConfigurator copy(String source, String onto)
source
- the source pathonto
- the destination path (relative from the contents root)public static ContentsConfigurator copy(Path source, String onto)
source
- the source pathonto
- the destination path (relative from the contents root)public static ContentsConfigurator extract(String source)
source
- the source pathpublic static ContentsConfigurator extract(Path source)
source
- the source pathpublic static ContentsConfigurator extract(String source, String onto)
source
- the source pathonto
- the destination path (relative from the contents root)public static ContentsConfigurator extract(Path source, String onto)
source
- the source pathonto
- the destination path (relative from the contents root)public void accept(BaseProject<?> project)
accept
in interface Consumer<BaseProject<?>>
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.