Incremental builds
Note: this request should be raised as a issue at https://github.com/dita-ot/dita-ot/issues if the need still exists.
Issue owner:
Steve Anderson <steveo at member dot fsf dot org>
Statement of problem or objective:
Problem:
Changing just one source file (topic or map) requires rebuilding the entire information set. For large information sets, this can be a very time consuming process.
Objective:
Process the minimum number of files to generate valid output.
Is this architecture, function, fix, or other?
This will probably require changes to the architecture, functions, and xslt stylesheets.
Goals of this proposal:
Make it easier for large information sets to be processed.
Use cases:
Using a large information set of, for example, 20 maps and 1,000 topics.
- Change the title of one topic and rebuild. Only the changed topic should be rebuilt.
- Add a navtitle on a topicref in a map, set locktitle="yes", and rebuild. What files need to be rebuilt?
- Add a topicref to a reltable and rebuild. Both topics should be rebuilt.
- Add a conref to one topic and rebuild. Only the changed topic should be rebuilt.
- Add an exiting image to a topic and rebuild. Only the changed topic should be rebuilt.
- Add a new image to a topic and rebuild. The new image should be added to the output. Only the changed topic should be rebuilt.
- Change the image files on disk without changing the image reference in the topic. Rebuild should pick up the new images. (Important for replacing filler screenshots with final, etc.)
- Delete a topic, don't remove dependencies, and rebuild Build should fail
- Delete a topic, remove all dependencies, and rebuild. Only topics with dependencies should be rebuilt.
- Move an existing topicref from one map to another and rebuild. Depends on child parent relationships. A limited number of files should change.
- Add a new map with an existing topic but not reltable. Rebuild. No changes?
- Add a new map with an existing topic and a reltable that includes a new from this topic to another existing topic. Rebuild. Affected dependent files should be rebuilt.
Stakeholders:
List of those who request or need the proposed item.
Interested parties:
Erik Hennum ( ehennum AT us DOT ibm and so on)
Deborah Pickett ( deborah UNDERSCORE pickett AT moldflow.com )
Candidate solutions:
- Dependency maps from Erik Hennum (with an addendum about build on request)
- Externalized dependencies
Proposed design:
Note: All design discussions should occur on the dita-ot-developer list at the dita-ot sourceforge site.
- Login to post comments
- 11270 reads