IfExists - OndraZizka/jboss-migration GitHub Wiki

One cross-cutting concern of all migrators is what to do if some resource already exists in the target server.

Usually, this option is specified in a form conf.<migrator>.ifExists=.... For example:

conf.datasources.ifExists=OVERWRITE

Sometimes, this is more fine-grained, e.g.:

conf.logging.logger.ifExists=SKIP

Possible values are:

  • FAIL - the migrator throws an exception and the app fails.
  • WARN - the app shows a warning in it's output, and the resource is skipped (not migrated).
  • SKIP - the resource is skipped (not migrated).
  • MERGE - the resource from the source server is merged into the target server (only where implemented).
  • OVERWRITE - the resource from the source server overwrites the one in the target server.
  • ASK - the user is asked what to do, in a proper way.
  • GUI - the user is asked what to do, using GUI (some kind of dialog).

ASK and GUI are not supported yet.

⚠️ **GitHub.com Fallback** ⚠️