All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jpac.snapshot.SnapshotJars Maven / Gradle / Ivy

Go to download

Open-source runtime system for component-based implementation of automation solutions with Java

The newest version!
/**
 * PROJECT   : 
 * MODULE    : .java
 * VERSION   : $Revision$
 * DATE      : $Date$
 * PURPOSE   : 
 * AUTHOR    : Bernd Schuster, MSK Gesellschaft fuer Automatisierung mbH, Schenefeld
 * REMARKS   : -
 * CHANGES   : CH#n   
 * LOG       : $Log$
 */

package org.jpac.snapshot;

import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Collections;

/**
 *
 * @author berndschuster
 */
public class SnapshotJars {
    ArrayList libDir;
    public SnapshotJars(){
        libDir = new ArrayList<>();
        ClassLoader cl = ClassLoader.getSystemClassLoader();
        URL[] urls = ((URLClassLoader)cl).getURLs();
        for(URL url: urls){
            libDir.add(url.getFile());
        }
        Collections.sort(libDir);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy