Package com.google.gxp.compiler.fs

Examples of com.google.gxp.compiler.fs.SourcePathFileSystem


    List<FileRef> sourcePaths = (commandLine.FLAG_source == null)
        ? Collections.singletonList(defaultDir)
        : fs.parseFilenameList(commandLine.FLAG_source);

    SourcePathFileSystem sourcePathFs = new SourcePathFileSystem(fs,
                                                                 sourcePaths,
                                                                 underlyingInputFiles,
                                                                 outputDir);

    sourceFiles = ImmutableSet.copyOf(sourcePathFs.getSourceFileRefs());
    schemaFiles = getFileRefs(fs, commandLine.FLAG_schema);

    // Compute Output Languages
    Set<OutputLanguage> tmpOutputLanguages = EnumSet.noneOf(OutputLanguage.class);
    for (String outputLanguage : commandLine.FLAG_output_language) {
View Full Code Here


    Set<FileRef> sourcePaths = (srcpaths == null)
        ? ImmutableSet.<FileRef>of()
        : ImmutableSet.copyOf(fs.parseFilenameList(srcpaths));

    SourcePathFileSystem sourcePathFs = new SourcePathFileSystem(fs,
                                                                 sourcePaths,
                                                                 underlyingInputFiles,
                                                                 outputDir);

    sourceFiles = ImmutableSet.copyOf(sourcePathFs.getSourceFileRefs());

    // Compute Schema Files
    schemaFiles = (schemas == null)
        ? ImmutableSet.<FileRef>of()
        : ImmutableSet.copyOf(fs.parseFilenameList(schemas));
View Full Code Here

                              Set<FileRef> sourcePaths,
                              String outputFile,
                              long compilationVersion,
                              AlertPolicy alertPolicy) {

    SourcePathFileSystem sourcePathFs = new SourcePathFileSystem(inputFileSystem,
                                                                 sourcePaths,
                                                                 sourceFiles,
                                                                 outputFileSystem.getRoot());

    this.sourceFiles = ImmutableSet.copyOf(sourcePathFs.getSourceFileRefs());
    this.schemaFiles = ImmutableSet.copyOf(sourceSchemas);
    this.sourceEntityResolver = new FileSystemEntityResolver(sourcePathFs);
    this.allowedOutputFiles = ImmutableSet.of(sourcePathFs.parseFilename(outputFile));
    this.compilationVersion = compilationVersion;
    this.alertPolicy = Preconditions.checkNotNull(alertPolicy);
  }
View Full Code Here

    Set<FileRef> sourcePaths = (srcpaths == null)
        ? ImmutableSet.<FileRef>of()
        : ImmutableSet.copyOf(fs.parseFilenameList(srcpaths));

    SourcePathFileSystem sourcePathFs = new SourcePathFileSystem(fs,
                                                                 sourcePaths,
                                                                 underlyingInputFiles,
                                                                 outputDir);

    sourceFiles = ImmutableSet.copyOf(sourcePathFs.getSourceFileRefs());

    // Compute Schema Files
    schemaFiles = (schemas == null)
        ? ImmutableSet.<FileRef>of()
        : ImmutableSet.copyOf(fs.parseFilenameList(schemas));
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.fs.SourcePathFileSystem

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.