public final class DeploymentUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DeploymentUtil.DeleteOption
The deleting options.
|
static class |
DeploymentUtil.DeployOption
The deployment options.
|
Modifier and Type | Method and Description |
---|---|
static void |
buildFatJar(List<File> entries,
File target)
Creates a fat jar from the classpath entries.
|
static boolean |
delete(File target,
DeploymentUtil.DeleteOption... options)
Deletes the target file/directory.
|
static void |
deploy(File source,
File destination,
DeploymentUtil.DeployOption... options)
Deploys an artifact onto the directory.
|
static void |
deployToDirectory(File source,
File destination,
DeploymentUtil.DeployOption... options)
Deploys an artifact onto the directory.
|
static File |
findLibraryPathFromClass(Class<?> aClass)
Find library file/directory from an element class.
|
public static void deploy(File source, File destination, DeploymentUtil.DeployOption... options) throws IOException
source
- the source file/directorydestination
- the target pathoptions
- the deployment optionsIOException
- if I/O error was occurredpublic static void deployToDirectory(File source, File destination, DeploymentUtil.DeployOption... options) throws IOException
source
- the source file/directorydestination
- the target directoryoptions
- the operation optionsIOException
- if I/O error was occurredpublic static boolean delete(File target, DeploymentUtil.DeleteOption... options) throws IOException
target
- the target file/directoryoptions
- the operation optionstrue
if the target file/directory was successfully deleted (or does not exist initially),
otherwise false
IOException
- if I/O error was occurredpublic static File findLibraryPathFromClass(Class<?> aClass)
aClass
- element class in target librarynull
if not foundIllegalArgumentException
- if some parameters were null
public static void buildFatJar(List<File> entries, File target) throws IOException
entries
- the classpath entriestarget
- the target fat jar pathIOException
- if I/O error was occurred while building the target jarCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.