The Jtest Plugins for Maven, Gradle, and Ant allow you to manually extend or override automatically detected compilation data. The configuration parameters of the plugins are compatible.

The compilation data model includes the structure of data passed into the <compilation> and <compilations> parameters.

<!-- configuration section of Jtest build system plugin -->
        <!-- single compilation data customization -->
                 Compilation id. If not defined default id for used build system will be used.
            <!-- List of source directories -->
            <!-- List of directories with compiled classes -->
            <!-- List of classpath jars -->
            <!-- List of Java jars -->
                 When set to "true" fully overrides detected compilation
                 data with same id on same project. When set to "false" 
                 only extends it. By default "false". 
             Multiple compilation data customizations can be used 
             if project performs multiple compilations.
                <!-- ... compilation data -->
                <!-- ... compilation data -->
  <!-- ... -->  

If you need to modify compilation data for all projects, you can use the -Djtest.dataUpdate option from command line, instead of modifying the XML file. This allows you to manually modify project compilation data in JSON.

You can update:

  • classpath
  • bootpath
  • sourcepath
  • binarypath
  • encoding
  • sourcelevel

Supported actions:

  • prepend - adds the entry(ies) at the beginning of the list (separate multiple paths with a comma)
  • append - adds the entry(ies) at the end of the list (separate multiple paths with a comma)
  • set - overwrites the current data


  • -Djtest.dataUpdate=compilations.classpath.append="/tmp/last1.jar","/tmp/last2.jar" (adds the paths to the end of the list)
  • -Djtest.dataUpdate=compilations.encoding.set="UTF-8" (specifies new encoding)
  • -Djtest.dataUpdate=compilations.bootpath.prepend="/tmp/first.jar";compilations.sourcelevel.set="1.8" (adds the path to the beginning of the list and specifies new sourcelevel)

  • No labels