|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.mojo.macker.ForkedMacker
public class ForkedMacker
Forking to invoke the Macker tool. Based on
org.codehaus.mojo.cobertura.tasks.AbstractTask.
This uses the Shell from CommandLine for forking. In Windows XP this has
a max of 8kb command line arguments. So we have to use a command file.
| Constructor Summary | |
|---|---|
ForkedMacker()
|
|
| Method Summary | |
|---|---|
void |
addClass(File clazz)
Add a class to be checked by Macker. |
void |
addRulesFile(File rule)
Add a rule file to be used by Macker. |
void |
check()
|
void |
setAngerThreshold(String anger)
|
void |
setLog(Log log)
|
void |
setMaxmem(String maxmem)
|
void |
setPluginClasspathList(List pluginClasspathList)
|
void |
setPrintMaxMessages(int maxMsg)
|
void |
setPrintThreshold(String print)
|
void |
setQuiet(boolean quiet)
|
void |
setVariable(String name,
String value)
|
void |
setVerbose(boolean verbose)
|
void |
setXmlReportFile(File report)
Set the XML report file to be used by Macker. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForkedMacker()
| Method Detail |
|---|
public void check()
throws MojoExecutionException,
MojoFailureException
check in interface MackerMojoExecutionException
MojoFailureExceptionpublic void setLog(Log log)
public void setMaxmem(String maxmem)
public void setPluginClasspathList(List pluginClasspathList)
public void setQuiet(boolean quiet)
public void addClass(File clazz)
throws IOException
Macker
addClass in interface MackerIOException - if there's a problem reading a file
public void addRulesFile(File rule)
throws IOException
Macker
addRulesFile in interface MackerIOException - if there's a problem reading a filepublic void setAngerThreshold(String anger)
setAngerThreshold in interface Mackerpublic void setPrintMaxMessages(int maxMsg)
setPrintMaxMessages in interface Mackerpublic void setPrintThreshold(String print)
setPrintThreshold in interface Macker
public void setVariable(String name,
String value)
setVariable in interface Mackerpublic void setVerbose(boolean verbose)
setVerbose in interface Macker
public void setXmlReportFile(File report)
throws IOException
Macker
setXmlReportFile in interface MackerIOException - if there's a problem with the report file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||