Examples of SuffixMapping


Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

     */
    private void processGrammarFiles(File sourceDirectory, File outputDirectory)
            throws RecognitionException, IOException, InclusionScanException {
        // Which files under the source set should we be looking for as grammar files
        //
        SourceMapping mapping = new SuffixMapping("g", Collections.EMPTY_SET);

        // What are the sets of includes (defaulted or otherwise).
        //
        Set includes = getIncludesPatterns();

View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

     * Generate images a the specific mime type.
     * @param config the mime type specific configuration settings.
     */
    private void execute(MimeTypeConfiguration config) {
        if (config.isGenerate()) {
            SuffixMapping mapping = new SuffixMapping(".svg", config.getOutputFileEnding());
            Set pairs = getStaleSources(sourceDirectory, destinationDirectory, mapping);

            List argList = buildArguments(config);

            // create an array with extra space for additional arguments
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

        SourceMapping mapping;

        File outputDirectory;

        if (outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_PER_INPUT_FILE) {
            mapping = new SuffixMapping(compiler
                    .getInputFileEnding(compilerConfiguration), compiler
                    .getOutputFileEnding(compilerConfiguration));

            outputDirectory = getOutputDirectory();
        } else if (outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES) {
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

            }
            scanner = new SimpleSourceInclusionScanner( includes, excludes );
        }

        // Note: we shouldn't have to do this but this is a limitation of the Plexus SimpleSourceInclusionScanner
        scanner.addSourceMapping( new SuffixMapping( "dummy", "dummy" ) );

        return scanner;
    }
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

        {
            scanner = new SimpleSourceInclusionScanner( excludes, Collections.EMPTY_SET );
        }

        // Note: we shouldn't have to do this but this is a limitation of the Plexus SimpleSourceInclusionScanner
        scanner.addSourceMapping( new SuffixMapping( "dummy", "dummy" ) );

        return scanner;
    }
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

        File outputDirectory;

        if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_PER_INPUT_FILE )
        {
            mapping = new SuffixMapping( compiler.getInputFileEnding( compilerConfiguration ), compiler
                .getOutputFileEnding( compilerConfiguration ) );

            outputDirectory = getOutputDirectory();
        }
        else if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES )
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

            {
                scanner.addSourceMapping( new SingleTargetSourceMapping( ".class", getTimestampFile().getPath() ) );
            }
            else
            {
                scanner.addSourceMapping( new SuffixMapping( ".class", ".dummy" ) );
            }

            Set classes = scanner.getIncludedSources( getClassDirectory(), getTimestampDirectory() );

            if ( !classes.isEmpty() )
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

     */
    private void processGrammarFiles(File sourceDirectory, File outputDirectory)
            throws TokenStreamException, RecognitionException, IOException, InclusionScanException {
        // Which files under the source set should we be looking for as grammar files
        //
        SourceMapping mapping = new SuffixMapping("g", Collections.EMPTY_SET);

        // What are the sets of includes (defaulted or otherwise).
        //
        Set includes = getIncludesPatterns();

View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

                scanner.addSourceMapping( new SingleTargetSourceMapping( ".java", file ) );
            }
        }
        else
        {
            scanner.addSourceMapping( new SuffixMapping( ".java", ".class" ) );
        }
        return scanner;
    }
View Full Code Here

Examples of org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping

                scanner.addSourceMapping( new SingleTargetSourceMapping( ".java", file ) );
            }
        }
        else
        {
            scanner.addSourceMapping( new SuffixMapping( ".java", ".class" ) );
        }
        return scanner;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.