tbitonti / jakartaee-prototype

Other
0 stars 9 forks source link

Change handling of default rules #67

Closed tbitonti closed 4 years ago

tbitonti commented 4 years ago

The current default rules are jakarta specific. This is not proper for the generic tool. Need a better way to specify and handle rules.

For example, by adding a master "rules locator" file which lists rules categories (of which "jakartaEE" is one example) with the rules category listing the rules URLs for the category.

A new optional "-rules" option would specify what default rule sets would be used. For example, to select the jakartaEE rules:

transform -r jakartaEE

tbitonti commented 4 years ago

This has been reworked: Instead of the transformer providing defaults, the transformer API was updated such that callers can supply resource reference defaults for the several command line options which provide resource references. The API provides a table of default values and a class relative to which to perform the resource loads.