Package org.codehaus.plexus.util

Examples of org.codehaus.plexus.util.Scanner.scan()


   */
  protected String[] getIncludedFiles() {
    Scanner scanner = buildContext.newScanner(sourceDirectory, true);
    scanner.setIncludes(includes);
    scanner.setExcludes(excludes);
    scanner.scan();
    return scanner.getIncludedFiles();
  }

  /**
   * Whether to skip plugin execution.
View Full Code Here


   */
  protected String[] getIncludedFiles() {
    Scanner scanner = buildContext.newScanner(sourceDirectory, true);
    scanner.setIncludes(includes);
    scanner.setExcludes(excludes);
    scanner.scan();
    return scanner.getIncludedFiles();
  }
 
  /**
   * Whether to skip plugin execution.
View Full Code Here

    private boolean scanAndGenerateAsync( File sourceRoot, JavaDocBuilder builder )
        throws Exception
    {
        Scanner scanner = buildContext.newScanner( sourceRoot );
        scanner.setIncludes( new String[] { servicePattern } );
        scanner.scan();
        String[] sources = scanner.getIncludedFiles();
        if ( sources.length == 0 )
        {
            return false;
        }
View Full Code Here

        Set<File> files = new HashSet<File>();
        // support for incremental build in m2e context
        Scanner scanner = buildContext.newScanner(directory);
        scanner.setIncludes(filters);
        scanner.scan();

        String[] includedFiles = scanner.getIncludedFiles();
        if (includedFiles != null) {
            for (String includedFile : includedFiles) {
                files.add(new File(scanner.getBasedir(), includedFile));
View Full Code Here

                 * them is very fast.
                 */
                if (isIncremental) {
                    Scanner scanner = buildContext.newScanner(directory);
                    scanner.setIncludes(PROPERTIES_PATTERN);
                    scanner.scan();
                    final String[] includedFiles = scanner.getIncludedFiles();
                    if (includedFiles == null || includedFiles.length == 0) {
                        continue;
                    }
                }
View Full Code Here

      Collection<String> includedFiles = new ArrayList<String>();
      // check if any of the web resource files changed
      for (File source : sources){
        // TODO also analyze output classes folders as wro4j can use classpath files
        Scanner ds = currentBuildContext.newScanner(source); // delta or full scanner
        ds.scan();
        includedFiles.addAll(Arrays.asList(ds.getIncludedFiles()));
      }
      if (isPomModified() || interestingFileChangeDetected(includedFiles, WRO4J_FILES_PATTERN)) {
        //treat as new full build as wro4j only checks for classic resources changes during    incremental builds
        IProject project = getMavenProjectFacade().getProject();
View Full Code Here

        }

        Scanner fileScanner = context.newScanner(sourceDirectory, true);
        fileScanner.setIncludes(includes);
        fileScanner.setExcludes(excludes);
        fileScanner.scan();
        File basedir = fileScanner.getBasedir();

        List<File> changedFiles = new ArrayList<File>();
        for (String fileName : fileScanner.getIncludedFiles()) {
            File file = new File(basedir, fileName);
View Full Code Here

   */
  protected String[] getIncludedFiles() {
    Scanner scanner = buildContext.newScanner(sourceDirectory, true);
    scanner.setIncludes(includes);
    scanner.setExcludes(excludes);
    scanner.scan();
    return scanner.getIncludedFiles();
  }

  /**
   * Whether to skip plugin execution.
View Full Code Here

   */
  protected String[] getIncludedFiles() {
    Scanner scanner = buildContext.newScanner(sourceDirectory, true);
    scanner.setIncludes(includes);
    scanner.setExcludes(excludes);
    scanner.scan();
    return scanner.getIncludedFiles();
  }

  /**
   * Whether to skip plugin execution.
View Full Code Here

  protected String[] contextChanged(final File folder,
      final String... includes) {
    final boolean ignoreDelta = !buildContext.isIncremental();
    final Scanner scanner = buildContext.newScanner(folder, ignoreDelta);
    scanner.setIncludes(includes);
    scanner.scan();
    return scanner.getIncludedFiles();
  }

  /**
   * Find deleted files.
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.