Package org.expath.pkg.repo

Examples of org.expath.pkg.repo.FileSystemStorage


    public static ExistRepository getRepository(Configuration config) throws PackageException {
        final File expathDir = getRepositoryDir(config);

        LOG.info("Using directory " + expathDir.getAbsolutePath() + " for expath package repository");
        final FileSystemStorage storage = new FileSystemStorage(expathDir);
        return new ExistRepository(storage);
    }
View Full Code Here


        try {
            if (home != null){
                final File repo_dir = new File(home, "webapp/WEB-INF/expathrepo");
                // ensure the dir exists
                repo_dir.mkdir();
                final FileSystemStorage storage = new FileSystemStorage(repo_dir);
                return new ExistRepository(storage);
            }else{
                final File repo_dir = new File(System.getProperty("java.io.tmpdir") + "/expathrepo");
                // ensure the dir exists
                repo_dir.mkdir();
                final FileSystemStorage storage = new FileSystemStorage(repo_dir);
                return new ExistRepository(storage);
            }
        }
        catch ( final PackageException ex ) {
            // problem with pkg-repo.jar throwing exception
View Full Code Here

TOP

Related Classes of org.expath.pkg.repo.FileSystemStorage

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.