Package bitten :: Package build :: Module javatools

Module javatools

Recipe commands for tools commonly used in Java projects.
Functions
 
ant(ctxt, file_=None, target=None, keep_going=False, args=None)
Run an Ant build.
 
junit(ctxt, file_=None, srcdir=None)
Extract test results from a JUnit XML report.
 
cobertura(ctxt, file_=None)
Extract test coverage information from a Cobertura XML report.
Variables
  log = logging.getLogger('bitten.build.javatools')
  __package__ = 'bitten.build'
Function Details

ant(ctxt, file_=None, target=None, keep_going=False, args=None)

 
Run an Ant build.
Parameters:
  • ctxt (Context) - the build context
  • file_ - name of the Ant build file
  • target - name of the target that should be executed (optional)
  • keep_going - whether Ant should keep going when errors are encountered
  • args - additional arguments to pass to Ant

junit(ctxt, file_=None, srcdir=None)

 
Extract test results from a JUnit XML report.
Parameters:
  • ctxt (Context) - the build context
  • file_ - path to the JUnit XML test results; may contain globbing wildcards for matching multiple results files
  • srcdir - name of the directory containing the test sources, used to link test results to the corresponding source files

cobertura(ctxt, file_=None)

 
Extract test coverage information from a Cobertura XML report.
Parameters:
  • ctxt (Context) - the build context
  • file_ - path to the Cobertura XML output