hudson.plugins.tasks.parser
Class WorkspaceScanner

java.lang.Object
  extended by hudson.plugins.tasks.parser.WorkspaceScanner
All Implemented Interfaces:
hudson.FilePath.FileCallable<TasksParserResult>, java.io.Serializable

public class WorkspaceScanner
extends java.lang.Object
implements hudson.FilePath.FileCallable<TasksParserResult>

Scans the workspace and records the found tasks. Each file is then classified, i.e., a module and package is guessed and assigned.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
WorkspaceScanner(java.lang.String filePattern, java.lang.String excludeFilePattern, java.lang.String defaultEncoding, java.lang.String high, java.lang.String normal, java.lang.String low, boolean ignoreCase)
          Creates a new instance of WorkspaceScanner.
WorkspaceScanner(java.lang.String filePattern, java.lang.String excludeFilePattern, java.lang.String defaultEncoding, java.lang.String high, java.lang.String normal, java.lang.String low, boolean caseSensitive, java.lang.String moduleName)
          Creates a new instance of WorkspaceScanner.
 
Method Summary
 java.lang.String getPrefix()
          Returns the prefix.
 TasksParserResult invoke(java.io.File workspace, hudson.remoting.VirtualChannel channel)
          
 void setPrefix(java.lang.String prefix)
          Sets the prefix to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceScanner

public WorkspaceScanner(java.lang.String filePattern,
                        java.lang.String excludeFilePattern,
                        java.lang.String defaultEncoding,
                        java.lang.String high,
                        java.lang.String normal,
                        java.lang.String low,
                        boolean ignoreCase)
Creates a new instance of WorkspaceScanner.

Parameters:
filePattern - ant file-set pattern to scan for files
excludeFilePattern - ant file-set pattern to exclude from scan
defaultEncoding - the default encoding to be used when reading and parsing files
high - tag identifiers indicating high priority
normal - tag identifiers indicating normal priority
low - tag identifiers indicating low priority
ignoreCase - if case should be ignored during matching

WorkspaceScanner

public WorkspaceScanner(java.lang.String filePattern,
                        java.lang.String excludeFilePattern,
                        java.lang.String defaultEncoding,
                        java.lang.String high,
                        java.lang.String normal,
                        java.lang.String low,
                        boolean caseSensitive,
                        java.lang.String moduleName)
Creates a new instance of WorkspaceScanner.

Parameters:
filePattern - ant file-set pattern to scan for files
excludeFilePattern - ant file-set pattern to exclude from scan
defaultEncoding - the default encoding to be used when reading and parsing files
high - tag identifiers indicating high priority
normal - tag identifiers indicating normal priority
low - tag identifiers indicating low priority
caseSensitive - determines whether the scanner should work case sensitive
moduleName - the maven module name
Method Detail

setPrefix

public void setPrefix(java.lang.String prefix)
Sets the prefix to the specified value.

Parameters:
prefix - the value to set

getPrefix

public java.lang.String getPrefix()
Returns the prefix.

Returns:
the prefix

invoke

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

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


Copyright © 2010. All Rights Reserved.