Package org.gradle.api.internal.resources

Examples of org.gradle.api.internal.resources.ResourceIsAFolderException


        super(file);
    }

    public InputStream read() {
        if (file.isDirectory()) {
            throw new ResourceIsAFolderException(String.format("Cannot read resource %s because it is a folder.", file.getName()));
        }
        try {
            FileInputStream fis = new FileInputStream(file);
            return new BufferedInputStream(fis);
        } catch (FileNotFoundException e) {
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.resources.ResourceIsAFolderException

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.