Jalopy Plugin (quokka.plugin.jalopy:0.3, namespace=jalopy)

The Jalopy Plugin formats Java Source code to a specified convention.

Note: The version of Jalopy used on supports formatting source up to Java 1.4. Subsequently Jalopy became closed source and attempts to upgrade it to support 1.5 syntax appear incomplete. Adding support for 1.5+ is on the roadmap now that eclipse has released a headless code formatter.

Minor Targets

format-main Formats the main java source code according to conventions
format-test Formats the test java source code according to conventions

Abstract Targets

format Formats java source code according to conventions

Properties: (Common to both targets)

  • convention Mandtory. A file or URL specifying the coding conventions to use for formatting
  • source Mandatory. The java sources to format.
  • destDir Optional. The output directory for formatted sources. Defaults to overwriting the existing source.
  • backup Optional. Specifies if a backup of source files is made. True or false
  • encoding Optional. The encoding of the source files
  • failOnError Optional. Controls whether the build fails if formatting fails. True or false
  • force Optional. Forces all files to be formatted regardless of history. True or false
  • history Optional. Enabled history processing where jalopy will only format modified files. Values: comment, file, none
  • historyMethod Optional. The method of detecting modifications. Values: timestamp, crc32, adler32
  • javadoc Optional. Controls whether javadocs are formatted. True or false.
  • logLevel Optional. Controls output from the jalopy task. Values: DEBUG, INFO, WARN, ERROR
  • threads Optional. The number of threads to use when formatting. Values: 1 to 8.

format-main

Formats the main java source code according to conventions

  • prefix: q.jalopy.main

Default Properties

convention ${q.project.resources[jalopy-style.xml]}
source.set.dir ${q.project.sourceDir}/main/java

format-test

Formats the test java source code according to conventions

  • prefix: q.jalopy.test

Default Properties

convention ${q.project.resources[jalopy-style.xml]}
source.set.dir ${q.project.sourceDir}/test/java

format

Formats java source code according to conventions

  • abstract: true
  • alias: format
  • depends: format-main, format-test

Plugin Paths

runtime : Runtime class path

apache.oro oro 2.0.8

apache.log4j log4j 1.2.15

jdom jdom 1.0-b08

quokka.core.plugin-spi plugin-spi 0.3

apache.ant ant 1.7.1

quokka.core.version version 0.3

apache.ant ant 1.7.1

quokka.core.bootstrap-util bootstrap-util 0.3

apache.ant ant 1.7.1

quokka.core.bootstrap-util bootstrap-util 0.3

apache.ant ant 1.7.1

quokka.core.bootstrap-util bootstrap-util 0.3

apache.ant ant 1.7.1

sf.jalopy.ant ant 0.6.2

apache.ant ant 1.7.1

sf.jalopy jalopy 1.0-b11