Easier initial content loading of binary files
----------------------------------------------

                 Key: SLING-1161
                 URL: https://issues.apache.org/jira/browse/SLING-1161
             Project: Sling
          Issue Type: New Feature
          Components: JCR
    Affects Versions: JCR Contentloader 2.0.4
            Reporter: Vidar S. Ramdal
            Priority: Minor
             Fix For: JCR Contentloader 2.0.6


When specifying initial content in XML file(s), and you want to include binary 
files somwhere in your content structure, you currently have 2 options:
1: Inline the binary data in the XML file (like you get when you do a JCR 
export)
2: Create a folder structure next to the XML file, and store your binary files 
in the corresponding folders

Option 1 is not suitable for files over a certain size, and option 2 is a royal 
pain when you have a deep structure, and also takes away some of the advantages 
of specifying content in XML.

Therefore, I suggest the option of storing your binary file anywhere, while 
referencing it in your XML. When the content loader 
(o.a.s.jcr.contentloader.i.r.XmlReader) encounters such a reference, it calls 
ContentCreator.createFileAndResourceNode so that the file is loaded to the 
correct place.

Patch coming up.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to