public class Asset
extends java.lang.Object
| Constructor and Description |
|---|
Asset(java.io.File source,
java.io.File destination,
org.apache.commons.configuration.CompositeConfiguration config)
Deprecated.
Use
Asset(JBakeConfiguration) instead.
Compatibility constructor.
Creates an instance of Asset. |
Asset(JBakeConfiguration config)
Creates an instance of Asset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy()
Copy all files from assets folder to destination folder
read from configuration
|
void |
copy(java.io.File path)
Copy all files from supplied path.
|
void |
copyAssetsFromContent(java.io.File path)
Responsible for copying any asset files that exist within the content directory.
|
void |
copySingleFile(java.io.File asset)
Copy one asset file at a time.
|
java.util.List<java.lang.Throwable> |
getErrors()
Accessor method to the collection of errors generated during the bake
|
boolean |
isAssetFile(java.io.File path)
Determine if a given file is an asset file.
|
@Deprecated
public Asset(java.io.File source,
java.io.File destination,
org.apache.commons.configuration.CompositeConfiguration config)
Asset(JBakeConfiguration) instead.
Compatibility constructor.
Creates an instance of Asset.source - Source file for the assetdestination - Destination (target) directory for asset fileconfig - Project configurationpublic Asset(JBakeConfiguration config)
config - The project configuration. @see{JBakeConfiguration}public void copy()
public void copy(java.io.File path)
path - The starting pathpublic void copySingleFile(java.io.File asset)
asset - The asset file to copypublic boolean isAssetFile(java.io.File path)
path - to the file to validate.public void copyAssetsFromContent(java.io.File path)
path - of the content directorypublic java.util.List<java.lang.Throwable> getErrors()