You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Vidar S. Ramdal (JIRA)" <ji...@apache.org> on 2009/10/22 19:58:59 UTC
[jira] Updated: (SLING-1161) Easier initial content loading of
binary files
[ https://issues.apache.org/jira/browse/SLING-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vidar S. Ramdal updated SLING-1161:
-----------------------------------
Attachment: SLING-1161.patch
Patch + testcase
> 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
>
> Attachments: SLING-1161.patch
>
>
> 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.