Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1614

XAR transformation to insert texts and attachments from file

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.4-rc-1
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Easy
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      There should be a way to insert the following content from files into XAR's XML files:

      • text nodes from the text content of a file in utf-8 (in any text-oriented position, e.g. page content or object property)
      • base64 attachment content from any file

      This is probably best done as a transformation extending the XAR Mojo's transformations.

      The interest of doing so, is that in multiple cases (such as JS, CSS or velocity code), it is useful to edit the content of the files using an editor that is able to provide developer-services such as auto-completion, syntax coloring, or API-documentation. Moreover, it makes the content being included within the XWiki archive, a first-class citizen so that such tools as versioning systems, their helping hands (diffs and previous notably), and desktop tools can all be used.

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              polx Paul Libbrecht
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: