public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyDirectory(File sourceLocation,
File targetLocation) |
static boolean |
deleteDir(File dir)
Deletes all files and subdirectories under dir.
|
static void |
deployZipFile(File zipFileLocation,
File targetLocation)
For a given Zip file, process each entry.
|
static String |
getWebContextName()
Read context name from carbon.xml
"carbon" will be the default value
|
static void |
transform(InputStream xmlStream,
InputStream xslStream,
OutputStream outputStream) |
public static void transform(InputStream xmlStream, InputStream xslStream, OutputStream outputStream) throws TransformerException
TransformerExceptionpublic static void copyDirectory(File sourceLocation, File targetLocation) throws IOException
IOExceptionpublic static void deployZipFile(File zipFileLocation, File targetLocation) throws org.wso2.carbon.CarbonException
zipFileLocation - zipFileLocationtargetLocation - targetLocationorg.wso2.carbon.core.CarbonException - CarbonExceptionorg.wso2.carbon.CarbonExceptionpublic static boolean deleteDir(File dir)
dir - directory to deletepublic static String getWebContextName()
Copyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.