hudson.plugins.pmd.parser
Class JavaFileFinder

java.lang.Object
  extended by hudson.plugins.pmd.parser.JavaFileFinder
All Implemented Interfaces:
hudson.FilePath.FileCallable<java.lang.String[]>, java.io.Serializable

public class JavaFileFinder
extends java.lang.Object
implements hudson.FilePath.FileCallable<java.lang.String[]>

Scans the workspace and finds all Java files.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
JavaFileFinder()
           
 
Method Summary
 java.lang.String[] invoke(java.io.File workspace, hudson.remoting.VirtualChannel channel)
          Returns an array with the filenames of the Java files that have been found in the workspace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaFileFinder

public JavaFileFinder()
Method Detail

invoke

public java.lang.String[] invoke(java.io.File workspace,
                                 hudson.remoting.VirtualChannel channel)
                          throws java.io.IOException
Returns an array with the filenames of the Java files that have been found in the workspace.

Specified by:
invoke in interface hudson.FilePath.FileCallable<java.lang.String[]>
Parameters:
workspace - root directory of the workspace
channel - not used
Returns:
the filenames of the PMD files
Throws:
java.io.IOException


Copyright © 2008. All Rights Reserved.