Always set to-dir option by default
Instead of only setting the to-dir option when no options are specified in the POM, the to-dir option should always be set. The reason is that if the user wants to set other options, they shouldn't have to also set to-dir to restore the default behavior.
However, the user may still want to unset to-dir. Therefore, any option that is set using name? false
should be unset if already set (even if the option is not a flag/boolean). This syntax can be abbreviated as name!
(similar to how attributes are unset in AsciiDoc).
With this change, it becomes possible to undo the to-dir default (and thus not pass this option to Antora) using the following configuration:
<configuration>
<options>
<option>to-dir!</option>
</options>
</configuration>
In the same way, it should be possible to undo the stacktrace default using stacktrace!
.