@Test(expected = ClassCastException.class) public void testLeoAEDescriptorFromPear() throws Exception { File extDir = new File(OUT_DIR, "extracted"); if(!extDir.exists()) extDir.mkdir(); StopWatch stopWatch = new StopWatch(); stopWatch.start(); String descPath = LeoUtils.extractPearFile(extDir, new File(PEAR_PATH), false, true); stopWatch.stop(); System.out.println("Extraction with no validation took: " + stopWatch); assertTrue(StringUtils.isNotBlank(descPath)); LeoAEDescriptor aeDescriptor = new LeoAEDescriptor(descPath, false); }
public static String extractPearFile(File installDir, File pearFile, boolean doVerification, boolean cleanInstallDir) throws PackageInstallerException, IOException { PackageBrowser instPear = PackageInstaller.installPackage(installDir, pearFile, doVerification, cleanInstallDir); return instPear.getComponentPearDescPath(); }
LeoUtils { public static String extractPearFile(File installDir, File pearFile, boolean doVerification, boolean cleanInstallDir) throws PackageInstallerException, IOException { PackageBrowser instPear = PackageInstaller.installPackage(installDir, pearFile, doVerification, cleanInstallDir); return instPear.getComponentPearDescPath(); } }
LeoUtils { public static String extractPearFile(File installDir, File pearFile, boolean doVerification, boolean cleanInstallDir) throws PackageInstallerException, IOException { PackageBrowser instPear = PackageInstaller.installPackage(installDir, pearFile, doVerification, cleanInstallDir); return instPear.getComponentPearDescPath(); }  }
LeoUtils { public static String extractPearFile(File installDir, File pearFile, boolean doVerification, boolean cleanInstallDir) throws PackageInstallerException, IOException { PackageBrowser instPear = PackageInstaller.installPackage(installDir, pearFile, doVerification, cleanInstallDir); return instPear.getComponentPearDescPath(); }  static String getTimestampDateDotTime(); static String getTimestampDateUnderscoreTime(); static String getUUID(); static URL createURL(String name); static String getFileURI(File f); static List<File> listFiles(File src, FileFilter filter, boolean recurse); static String extractPearFile(File installDir, File pearFile, boolean doVerification, boolean cleanInstallDir); static Class<?> getRuntimeClass(); static ConfigObject loadConfigFile(String environment, String... configFilePaths); static String filterText(String input, List<TextFilter> filters); static Set<ConfigurationParameter> getStaticConfigurationParameters(Class c); static Parameter getParameter(String name, Parameter[] parameters); static Parameter[] addParameter(Parameter p, Parameter[] parameters); static Map<String, String> parseMappingString(String jsonString); static String getHeaderManipulationSafeString(Object object); }
LeoUtils { public static String extractPearFile(File installDir, File pearFile, boolean doVerification, boolean cleanInstallDir) throws PackageInstallerException, IOException { PackageBrowser instPear = PackageInstaller.installPackage(installDir, pearFile, doVerification, cleanInstallDir); return instPear.getComponentPearDescPath(); }  static String getTimestampDateDotTime(); static String getTimestampDateUnderscoreTime(); static String getUUID(); static URL createURL(String name); static String getFileURI(File f); static List<File> listFiles(File src, FileFilter filter, boolean recurse); static String extractPearFile(File installDir, File pearFile, boolean doVerification, boolean cleanInstallDir); static Class<?> getRuntimeClass(); static ConfigObject loadConfigFile(String environment, String... configFilePaths); static String filterText(String input, List<TextFilter> filters); static Set<ConfigurationParameter> getStaticConfigurationParameters(Class c); static Parameter getParameter(String name, Parameter[] parameters); static Parameter[] addParameter(Parameter p, Parameter[] parameters); static Map<String, String> parseMappingString(String jsonString); static String getHeaderManipulationSafeString(Object object);  }