org.codehaus.mojo.macker
Class ForkedMacker

java.lang.Object
  extended by org.codehaus.mojo.macker.ForkedMacker
All Implemented Interfaces:
Macker

public class ForkedMacker
extends Object
implements Macker

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.

Author:
Peter Kofler

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

ForkedMacker

public ForkedMacker()
Method Detail

check

public void check()
           throws MojoExecutionException,
                  MojoFailureException
Specified by:
check in interface Macker
Throws:
MojoExecutionException
MojoFailureException

setLog

public void setLog(Log log)

setMaxmem

public void setMaxmem(String maxmem)

setPluginClasspathList

public void setPluginClasspathList(List pluginClasspathList)

setQuiet

public void setQuiet(boolean quiet)

addClass

public void addClass(File clazz)
              throws IOException
Description copied from interface: Macker
Add a class to be checked by Macker.

Specified by:
addClass in interface Macker
Throws:
IOException - if there's a problem reading a file

addRulesFile

public void addRulesFile(File rule)
                  throws IOException
Description copied from interface: Macker
Add a rule file to be used by Macker.

Specified by:
addRulesFile in interface Macker
Throws:
IOException - if there's a problem reading a file

setAngerThreshold

public void setAngerThreshold(String anger)
Specified by:
setAngerThreshold in interface Macker

setPrintMaxMessages

public void setPrintMaxMessages(int maxMsg)
Specified by:
setPrintMaxMessages in interface Macker

setPrintThreshold

public void setPrintThreshold(String print)
Specified by:
setPrintThreshold in interface Macker

setVariable

public void setVariable(String name,
                        String value)
Specified by:
setVariable in interface Macker

setVerbose

public void setVerbose(boolean verbose)
Specified by:
setVerbose in interface Macker

setXmlReportFile

public void setXmlReportFile(File report)
                      throws IOException
Description copied from interface: Macker
Set the XML report file to be used by Macker.

Specified by:
setXmlReportFile in interface Macker
Throws:
IOException - if there's a problem with the report file


Copyright © 2007-2010 CodeHaus. All Rights Reserved.