WebHelp Responsive plugin
Posted: Mon Jan 16, 2017 2:59 pm
Hi,
Usually you have the following structure in DITA OT plugins:
In the current webhelp plugin you have property/taskdef elements on the project level.
Wouldn't it be better to move these inside an initialization target?
initialization targets are also sometimes annoying:
- they have to be before the build-init, or certain properties are ignored.
but the benefits are:
- if the webhelp init target is not executed, they do not influence by mistake any other target/plugin
- if you want to change the sequence or to override settings, you simply create your own init target which you run before the standard/default init target. Once a property is set, it cannot be altered.
So my main concern is isolation of the plugin items from the rest of the plugins.
Usually you have the following structure in DITA OT plugins:
Code: Select all
build.xml
build_template.xml
plugins
com.company.plugin
plugin.xml
integrator.xml
build_plugin.xml
target dita2[i]transtype[/i]
Wouldn't it be better to move these inside an initialization target?
initialization targets are also sometimes annoying:
- they have to be before the build-init, or certain properties are ignored.
but the benefits are:
- if the webhelp init target is not executed, they do not influence by mistake any other target/plugin
- if you want to change the sequence or to override settings, you simply create your own init target which you run before the standard/default init target. Once a property is set, it cannot be altered.
So my main concern is isolation of the plugin items from the rest of the plugins.