Allow to specify priorities for formatters

If two formatters can handle a file it is currently undefined which
formatter is taken.

Example:
For file 'Documentation/index.txt' and the following configuration it
undefined if the "ASCIIDOCTOR" or "PLAIN_TEXT" formatter is used:

  [formatter "ASCIIDOCTOR"]
    ext = txt
    prefix = Documentation/
  [formatter "PLAIN_TEXT"]
    mimeType = text/plain

This can now be defined by specifying a formatter priority:

  [formatter "ASCIIDOCTOR"]
    ext = txt
    prefix = Documentation/
    prio = 2
  [formatter "PLAIN_TEXT"]
    mimeType = text/plain
    prio = 1

The formatter with the higher priority wins, 0 is the default priority.

Change-Id: I29ba5bf58d00b3591029f203abd7f59893a2ab39
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
3 files changed
tree: fc43e50992870811b75a4242cc322f78cad3b055
  1. .settings/
  2. lib/
  3. src/
  4. .buckconfig
  5. .gitignore
  6. BUCK
  7. LICENSE
  8. pom.xml
  9. VERSION