public class Utils extends Object
| 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(org.osgi.framework.BundleContext bundleContext)
Read context name from carbon.xml
"carbon" will be the default value
|
static void |
registerDeployerServices(org.osgi.framework.BundleContext bundleContext)
Registers the Deployer services by using values defined in the corresonding bundles component.xml file..
|
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 CarbonException
zipFileLocation - zipFileLocationtargetLocation - targetLocationCarbonException - CarbonExceptionpublic static boolean deleteDir(File dir)
dir - directory to deletepublic static String getWebContextName(org.osgi.framework.BundleContext bundleContext)
Copyright © 2018 WSO2 Inc. All rights reserved.