public class FataMorgana extends Object
_ _
/ `._ \+O+/ _.' \
( @ : `. //`\\ .' : @ )
\ `. `. ((a a)) .' .' /
\;' `. `.((( - ))).' .' `;/
\`. `. ((()=())) .' .'/
) :-._`/`(("Y"))`\'_.-: (
(`..../ /(_ * _)\ \....')
>---/ / ) ( \ \---<
/ .'.\ \_/\\_//\_/ /.'. \
|o _.-\/_) '*' (_\/-._ o|
|`' ;/ \; `'|
".o_.-/ \-._o."
"._/ \_."
/ \
/ \
/ \
/ \
/ \
`----....._____.....----'
Helper class for Merlin to do his magic work.| Constructor and Description |
|---|
FataMorgana() |
| Modifier and Type | Method and Description |
|---|---|
static int |
allocatePort() |
static void |
copyFilesRecusively(File toCopy,
File destDir) |
static void |
copyJarResourcesRecursively(File destination,
JarURLConnection jarConnection) |
static void |
copyResourcesRecursively(URL originUrl,
File destination) |
static void |
execute(Map<String,String> environment,
Path pwd,
String... command) |
static void |
unzip(File zip,
File dest) |
static File |
wget(URL url) |
public static File wget(URL url) throws IOException
IOExceptionpublic static int allocatePort()
throws IOException
IOExceptionpublic static void copyResourcesRecursively(URL originUrl, File destination) throws Exception
Exceptionpublic static void copyJarResourcesRecursively(File destination, JarURLConnection jarConnection) throws IOException
IOExceptionpublic static void copyFilesRecusively(File toCopy, File destDir) throws IOException
IOExceptionCopyright © 2011-2013. All Rights Reserved.