Package org.auraframework.impl.source.file

Examples of org.auraframework.impl.source.file.FileSourceLoader


        }
        if (!componentDirectory.canRead() || !componentDirectory.canWrite() ) {
            throw new RegistrySerializerException("Unable to read/write "+componentDirectory);
        }
        // Now, get our namespaces.
        FileSourceLoader fsl = new FileSourceLoader(componentDirectory);
        Set<String> namespaces = fsl.getNamespaces();
        if (excluded != null) {
            for (String x : excluded) {
                if (!namespaces.remove(x)) {
                    throw new RegistrySerializerException("Unable to exclude "+x);
                }
View Full Code Here


        } else if (location.getComponentSourceDir() != null) {
            File components = location.getComponentSourceDir();
            if (!components.canRead() || !components.canExecute() || !components.isDirectory()) {
                _log.error("Unable to find " + components + ", ignored.");
            } else {
                markupLoaders.add(new FileSourceLoader(components));
                File javaBase = new File(components.getParent(), "java");
                if (javaBase.exists()) {
                    javaLoaders.add(new FileSourceLoader(javaBase));
                }
                File generatedJavaBase = location.getJavaGeneratedSourceDir();
                if (generatedJavaBase != null && generatedJavaBase.exists()) {
                    FileSourceLoader fsl = new FileSourceLoader(generatedJavaBase);
                    markupLoaders.add(fsl);
                    javaLoaders.add(fsl);
                }
                try {
                    canonical = components.getCanonicalPath();
View Full Code Here

        }
    }

    private BaseSourceLoader getJavascriptSourceLoader() {
        if (AuraImplFiles.TestComponents.asFile().exists()) {
            return new FileSourceLoader(
                    AuraImplFiles.TestComponents.asFile());
        } else {
            String pkg = ServiceLocator
                    .get()
                    .get(ComponentLocationAdapter.class,
View Full Code Here

TOP

Related Classes of org.auraframework.impl.source.file.FileSourceLoader

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.