Examples of SourceMapping


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

        if (!basePath.exists()) return Collections.EMPTY_LIST;

        SourceInclusionScanner scanner = getSourceInclusionScanner(includeStale);

        SourceMapping mapping = new SuffixMapping(".clj", new HashSet(Arrays.asList(".clj", "__init.class")));

        scanner.addSourceMapping(mapping);

        final Set<File> sourceFiles;
View Full Code Here

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

      if (classFile == null) {
        throw new RuntimeException("Cannot find class file for source: " + sourceFile);
      }

      staleSourceFileTesting: for (Iterator patternIt = srcMappings.iterator(); patternIt.hasNext();) {
        SourceMapping mapping = (SourceMapping) patternIt.next();

        Set targetFiles = mapping.getTargetFiles(targetDir, path);

        // never include files that don't have corresponding target mappings.
        // the targets don't have to exist on the filesystem, but the
        // mappers must tell us to look for them.
        for (Iterator targetIt = targetFiles.iterator(); targetIt.hasNext();) {
View Full Code Here

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

            logConfiguration(log);
        }

    checkOutDirWritable(outputDirectory);

    SourceMapping mapping = new SuffixMapping(sourceFileExt, outputFileExt);
        Set<File> sources = jxmlFilesToCompile(mapping);
        if (sources.isEmpty()) {
            log.info( "Nothing to compile - all Jasper reports are up to date" );
        } else {
            log.info( "Compiling " + sources.size() + " Jasper reports design files." );
View Full Code Here

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

            // so we can presume it's all files from the source directory
            inputFileEnding = ".*";
        }
        SourceInclusionScanner scanner = getSourceInclusionScanner( inputFileEnding );

        SourceMapping mapping = getSourceMapping( compilerConfiguration, compiler );

        scanner.addSourceMapping( mapping );

        Set<File> compileSources = new HashSet<File>();

View Full Code Here

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

    private Set<File> computeStaleSources( CompilerConfiguration compilerConfiguration, Compiler compiler,
                                           SourceInclusionScanner scanner )
        throws MojoExecutionException, CompilerException
    {
        SourceMapping mapping = getSourceMapping( compilerConfiguration, compiler );

        File outputDirectory;
        CompilerOutputStyle outputStyle = compiler.getCompilerOutputStyle();
        if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES )
        {
View Full Code Here

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

    private SourceMapping getSourceMapping( CompilerConfiguration compilerConfiguration, Compiler compiler )
        throws CompilerException, MojoExecutionException
    {
        CompilerOutputStyle outputStyle = compiler.getCompilerOutputStyle();

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