Package org.pdfsam.guiclient.utils.filters

Examples of org.pdfsam.guiclient.utils.filters.JarFilter


  private static void loadExtendedLibraries() {
    try {
      String configSearchPath = new File(URLDecoder.decode(GuiClient.class.getProtectionDomain().getCodeSource()
          .getLocation().getPath(), "UTF-8")).getParent();
      File currentDir = new File(configSearchPath, "ext");
      File[] fileList = currentDir.listFiles(new JarFilter(false));
      if (!ArrayUtils.isEmpty(fileList)) {
        URLClassLoader urlClassLoader = (URLClassLoader) ClassLoader.getSystemClassLoader();
        for (File currentFile : fileList) {
          addJar(currentFile.toURI().toURL(), urlClassLoader);
        }
View Full Code Here


      //crates a list of URL and classes
       for(File currentDir : pluginsList){
        if(currentDir != null && currentDir.isDirectory()){
          try{
            Document document = XmlUtility.parseXmlFile(new File(currentDir.getAbsolutePath(), "config.xml"));
            File[] fileList = currentDir.listFiles(new JarFilter(false));
            File selectedFile = getMostRecent(fileList, currentDir.getAbsolutePath());
            if(selectedFile != null){             
              urlList.add(selectedFile.toURI().toURL());
              classList.add(XmlUtility.getXmlValue(document, "/plugin/data/classname"));
            }
View Full Code Here

TOP

Related Classes of org.pdfsam.guiclient.utils.filters.JarFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.