hudson.plugins.tasks.util
Class FilesParser

java.lang.Object
  extended by hudson.plugins.tasks.util.FilesParser
All Implemented Interfaces:
hudson.FilePath.FileCallable<ParserResult>, java.io.Serializable

public class FilesParser
extends java.lang.Object
implements hudson.FilePath.FileCallable<ParserResult>

Parses files that match the specified pattern and creates a corresponding project with a collection of annotations.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
FilesParser(java.io.PrintStream logger, java.lang.String filePattern, AnnotationParser parser, boolean isMavenBuild, boolean isAntBuild)
          Creates a new instance of CheckstyleCollector.
 
Method Summary
 ParserResult invoke(java.io.File workspace, hudson.remoting.VirtualChannel channel)
          
protected  void log(java.lang.String message)
          Logs the specified message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesParser

public FilesParser(java.io.PrintStream logger,
                   java.lang.String filePattern,
                   AnnotationParser parser,
                   boolean isMavenBuild,
                   boolean isAntBuild)
Creates a new instance of CheckstyleCollector.

Parameters:
logger - the logger
filePattern - ant file-set pattern to scan for files to parse
parser - the parser to apply on the found files
isMavenBuild - determines whether this build uses maven
isAntBuild - determines whether this build uses maven
Method Detail

log

protected void log(java.lang.String message)
Logs the specified message.

Parameters:
message - the message

invoke

public ParserResult invoke(java.io.File workspace,
                           hudson.remoting.VirtualChannel channel)
                    throws java.io.IOException

Specified by:
invoke in interface hudson.FilePath.FileCallable<ParserResult>
Throws:
java.io.IOException


Copyright © 2008. All Rights Reserved.