You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Renaud Richardet <re...@apache.org> on 2009/05/02 10:52:49 UTC
storing repo content in svn
hi List,
How can I store the content of my sling app in a source management
system like svn?
Storing it via webdav works fine for files in /app, but how do i do
that with files in /content, since they have all the jcr props? Or am
I missing something?
thanks, Renaud
Re: storing repo content in svn
Posted by Vidar Ramdal <vi...@idium.no>.
2009/5/3 Dominik Süß <do...@gmail.com>:
> This initial-content can be deployed via the maven-sling-plugin.
> JCR-Properties can be uploaded as JSON or XML File having the same name
> (extended by .json or .xml) parallel to your targetnode. The structure you
> have to use is the same as the default xml or json renderer.
You may also use other XML formats, if you should need that, by using
an XSLT stylesheet with your XML. This thread might be of interest:
http://markmail.org/thread/qxi6qw77vgymrdim
--
Vidar S. Ramdal <vi...@idium.no> - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway
+47 21 531941, ext 2070
Re: storing repo content in svn
Posted by Dominik Süß <do...@gmail.com>.
Ah... forgot to answer the original question... after you've done all that
(defining the properties in the maven project), all your information should
be available within your mavenproject on your filesystem which you can
commit in svn ;)
Best regards,
Dominik
2009/5/3 Dominik Süß <do...@gmail.com>
> Hi renaud,
>
> from a developers point of view there should just be something like
> "initial content".
> This initial-content can be deployed via the maven-sling-plugin.
> JCR-Properties can be uploaded as JSON or XML File having the same name
> (extended by .json or .xml) parallel to your targetnode. The structure you
> have to use is the same as the default xml or json renderer. This feature
> isn't as well documented as it could be but it's fairly easy to retrieve a
> sample file by adding .json or .xml to the url of a node that fullfills your
> needs.
>
> Best regards,
> Dominik
>
>
> On Sat, May 2, 2009 at 10:52 AM, Renaud Richardet <re...@apache.org>wrote:
>
>> hi List,
>>
>> How can I store the content of my sling app in a source management
>> system like svn?
>> Storing it via webdav works fine for files in /app, but how do i do
>> that with files in /content, since they have all the jcr props? Or am
>> I missing something?
>>
>> thanks, Renaud
>>
>
>
Re: storing repo content in svn
Posted by Dominik Süß <do...@gmail.com>.
Hi renaud,
from a developers point of view there should just be something like "initial
content".
This initial-content can be deployed via the maven-sling-plugin.
JCR-Properties can be uploaded as JSON or XML File having the same name
(extended by .json or .xml) parallel to your targetnode. The structure you
have to use is the same as the default xml or json renderer. This feature
isn't as well documented as it could be but it's fairly easy to retrieve a
sample file by adding .json or .xml to the url of a node that fullfills your
needs.
Best regards,
Dominik
On Sat, May 2, 2009 at 10:52 AM, Renaud Richardet <re...@apache.org> wrote:
> hi List,
>
> How can I store the content of my sling app in a source management
> system like svn?
> Storing it via webdav works fine for files in /app, but how do i do
> that with files in /content, since they have all the jcr props? Or am
> I missing something?
>
> thanks, Renaud
>