public class CPD extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(File file) |
void |
add(List<File> files) |
void |
addAllInDirectory(String dir) |
void |
addRecursively(String dir) |
Iterator<net.sourceforge.pmd.cpd.Match> |
getMatches() |
void |
go()
Execute the search for all loaded source code.
|
static void |
main(String[] args)
Test/run this from the command line.
|
void |
run()
Search the attached source code using the current settings.
|
void |
setCpdListener(net.sourceforge.pmd.cpd.CPDListener cpdListener)
Set up monitoring of source code for similarities.
|
public Settings settings
public CPD(Settings settings)
settings - CPD settings passin from Maven mojo.public static void main(String[] args) throws Exception
args - commandplineException - on errorpublic void run()
throws Exception
Exception - on errorpublic void setCpdListener(net.sourceforge.pmd.cpd.CPDListener cpdListener)
cpdListener - Track source code files.public void go()
public Iterator<net.sourceforge.pmd.cpd.Match> getMatches()
public void add(File file) throws IOException
IOExceptionpublic void addAllInDirectory(String dir) throws IOException
IOExceptionpublic void addRecursively(String dir) throws IOException
IOExceptionpublic void add(List<File> files) throws IOException
IOExceptionCopyright © 2015. All rights reserved.