Thursday 12 December 2013

Byteman 2.1.4 has been released

Byteman release 2.1.4 is now available from the Byteman downloads page and the Maven Central Repository.

This is primarily a bug fix release but it does also introduce a small set of new features and enhancements:
  • class literals (e.g. org.my.Foo.class can now be employed as expressions in Byteman rules
  • scripts can now be loaded from the CLASSPATH as resources using the -javagent option scriptresource:path/to/my/script.btm
  • the offline type checker (and also the maven check plugin) can be configured to check compilation of rules to bytecode
  • the rule parser explicitly catches and notifies missing IF clauses
Many thanks to Antoine Vianey for his contribution to BYTEMAN-255 which fixed the problem where BMUnit was not always working on Windows 7.


Wednesday 26 June 2013

Better maven integration with the Byteman 2.1.3 release

Byteman 2.1.3 has now been released and is available from Maven Central and from the Byteman downloads page.

As well as fixing a variety of bugs this release also includes some feature enhancements, most notably maven integration of the Byteman rule checker. So now, you can configure your maven project to use the Byteman rulecheck maven plugin and when  you run your maven tests it will ensure that your rule scripts

  -- contain no parse or type errors

  -- will be successfully injected into the specified target classes

The Byteman documentation page includes a link to a simple tutorial which provides before and after examples, demonstrating how to configure the rulecheck plugin and showing how it  catches errors introduced when your project code is updated.

Many thanks to Red Hat's Amos Feng for providing the mojo (not to mention the Mojo) required to enable this valuable feature.