Examples of JarFilter


Examples of it.freedomotic.util.JarFilter

     */
    public static void add(File f)
            throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
        // f = f.isDirectory() ? f : f.getParentFile();
        if (f.isDirectory()) {
            File[] jarList = f.listFiles(new JarFilter());

            //the list of files in the jar
            for (File jar : jarList) {
                if (jar.isFile()) {
                    add(jar.toURI().toURL());
View Full Code Here

Examples of it.freedomotic.util.JarFilter

            //return an empty list
            return results;
        }

        //the list of jars in the current folder
        File[] jarList = pluginFolder.listFiles(new JarFilter());

        if (jarList != null) {
            //the list of files in the jar
            for (File jar : jarList) {
                if (jar.isFile()) {
View Full Code Here

Examples of it.freedomotic.util.JarFilter

        if (pluginRootFolder.isFile()) {
            return results;
        }

        //the list of jars in the current folder
        File[] jarFiles = pluginRootFolder.listFiles(new JarFilter());

        //the list of files in the jar
        for (File pluginJar : jarFiles) {
            if (pluginJar.isFile()) {
                try {
View Full Code Here

Examples of it.freedomotic.util.JarFilter

            //return an empty list
            return results;
        }

        //the list of jars in the current folder
        File[] jarList = dir.listFiles(new JarFilter());

        if (jarList != null) {
            //the list of files in the jar
            for (File jar : jarList) {
                if (jar.isFile()) {
View Full Code Here

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

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

      //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

Examples of sun.misc.JarFilter

    }
    synchronized (EngineGoalBase.class) {
      try {
        final List<URL> urls = new ArrayList<URL>();

        for(final File jar : getSdkLibDir().listFiles(new JarFilter())) {
          urls.add(jar.toURI().toURL());
        }

        classLoader = new URLClassLoader(urls.toArray(new URL[0]));
      } catch (final MalformedURLException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.