Examples of SuffixMapping


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

   
    SourceInclusionScanner scanner = new SimpleSourceInclusionScanner(includes, excludes);

    // Note: we must declare a dummy "source mapping", or the Plexus SimpleSourceInclusionScanner won't work
    // (as per http://maven.apache.org/plugins/maven-clover-plugin/2.4/xref/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.html )
    scanner.addSourceMapping( new SuffixMapping( "dummy", "dummy" ) );

    try {
      outputManifestFile.getParentFile().mkdirs();
      outputManifestFile.createNewFile(); // create it if it doesn't yet exist
    } catch (IOException e) {
View Full Code Here

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

     * Gets the set of user-specified {@code Node.java} files. If none are found, {@code jjtree}
     * will generate automatically a default one. This method search only in the package defined
     * in the {@link #nodePackage} attribute.
     */
    private Set searchNodeFiles() throws MojoExecutionException {
        final SuffixMapping mapping    = new SuffixMapping(".java", ".java");
        final SuffixMapping mappingCAP = new SuffixMapping(".JAVA", ".JAVA");
        final SourceInclusionScanner scanner = new StaleSourceScanner(staleMillis);
        scanner.addSourceMapping(mapping);
        scanner.addSourceMapping(mappingCAP);
        File directory = new File(nodeDirectory);
        if (nodePackage!=null && nodePackage.trim().length()!=0) {
View Full Code Here

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

     */
    private Set searchStaleGrammars(final File sourceDir, final String ext)
            throws MojoExecutionException
    {
        final String        extCAP     = ext.toUpperCase();
        final SuffixMapping mapping    = new SuffixMapping(ext,    ext);
        final SuffixMapping mappingCAP = new SuffixMapping(extCAP, extCAP);
        final SourceInclusionScanner scanner = new StaleSourceScanner(staleMillis);
        scanner.addSourceMapping(mapping);
        scanner.addSourceMapping(mappingCAP);
        final File outDir = new File(timestampDirectory);
        try {
View Full Code Here

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

        CompilerOutputStyle outputStyle = compiler.getCompilerOutputStyle();

        SourceMapping mapping;
        if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_PER_INPUT_FILE )
        {
            mapping = new SuffixMapping( compiler.getInputFileEnding( compilerConfiguration ),
                                         compiler.getOutputFileEnding( compilerConfiguration ) );
        }
        else if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES )
        {
            mapping = new SingleTargetSourceMapping( compiler.getInputFileEnding( compilerConfiguration ),
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.