You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Harry Metske <ha...@gmail.com> on 2009/08/17 20:11:57 UTC
jcr import jspwiki-export
Hi all,
I want to put some effort again in testing JSPWiki 3.0, and want to use
existing data.
We already have an Exporter class that exports a classic JSPWiki repo into
an XML file.
Now I want to import this into an priha JCR repo and use that as the JSPWiki
repo.
Does priha offer that ?
I have seen there is an XMLImport class, but it doesn't have a main()
method.
What is the best approach to create a repo (from an existing classic JSPWiki
repo) that can be used by JSPWiki with priha ?
regards,
Harry
Re: jcr import jspwiki-export
Posted by Janne Jalkanen <ja...@ecyrd.com>.
Entirely possible! As I said, I haven't really tested it ;-)
/Janne
On 19 Aug 2009, at 09:12, Harry Metske wrote:
> Well, in that case, we need a patch on JSPWiki's Exporter :-)
>
> thanks,
> Harry
>
> 2009/8/18 Janne Jalkanen <ja...@ecyrd.com>
>
>> JSR-170 specification:
>>
>> 6.2.5.1 Date
>> The text format of dates must follow the following ISO 8601:2000-
>> compliant format:
>> sYYYY-MM-DDThh:mm:ss.sssTZD
>>
>> Would be better to send these to priha-dev anyway...
>>
>> /Janne
>>
>>
>> On 18 Aug 2009, at 22:14, Harry Metske wrote:
>>
>> Janne, can you take this patch in:
>>> ### Eclipse Workspace Patch 1.0
>>> #P priha
>>> Index: src/java/org/priha/core/values/CalendarValueImpl.java
>>> ===================================================================
>>> --- src/java/org/priha/core/values/CalendarValueImpl.java
>>> (revision 1080)
>>> +++ src/java/org/priha/core/values/CalendarValueImpl.java (working
>>> copy)
>>> @@ -36,7 +36,7 @@
>>> private static ThreadLocal<SimpleDateFormat> c_isoFormat = new
>>> ThreadLocal<SimpleDateFormat>() {
>>> protected synchronized SimpleDateFormat initialValue()
>>> {
>>> - return new SimpleDateFormat("yyyy-MM-
>>> dd'T'HH:mm:ss.SSS'Z'");
>>>
>>> + return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
>>>
>>> }
>>> };
>>>
>>>
>>>
>>> regards,
>>> Harry
>>>
>>>
>>> 2009/8/18 Janne Jalkanen <ja...@ecyrd.com>
>>>
>>> cool, nice work :-) Do you know by chance on how many Jackrabbit
>>> fails
>>>>
>>>>> at the moment? AFAIR there are/were some, too.
>>>>>
>>>>>
>>>>
>>>> Jackrabbit passes everything... They are the RI, after all :-).
>>>>
>>>> (Down to 14...)
>>>>
>>>> /Janne
>>>>
>>>>
>>
Re: jcr import jspwiki-export
Posted by Harry Metske <ha...@gmail.com>.
Well, in that case, we need a patch on JSPWiki's Exporter :-)
thanks,
Harry
2009/8/18 Janne Jalkanen <ja...@ecyrd.com>
> JSR-170 specification:
>
> 6.2.5.1 Date
> The text format of dates must follow the following ISO 8601:2000-
> compliant format:
> sYYYY-MM-DDThh:mm:ss.sssTZD
>
> Would be better to send these to priha-dev anyway...
>
> /Janne
>
>
> On 18 Aug 2009, at 22:14, Harry Metske wrote:
>
> Janne, can you take this patch in:
>> ### Eclipse Workspace Patch 1.0
>> #P priha
>> Index: src/java/org/priha/core/values/CalendarValueImpl.java
>> ===================================================================
>> --- src/java/org/priha/core/values/CalendarValueImpl.java (revision 1080)
>> +++ src/java/org/priha/core/values/CalendarValueImpl.java (working copy)
>> @@ -36,7 +36,7 @@
>> private static ThreadLocal<SimpleDateFormat> c_isoFormat = new
>> ThreadLocal<SimpleDateFormat>() {
>> protected synchronized SimpleDateFormat initialValue()
>> {
>> - return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
>>
>> + return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
>>
>> }
>> };
>>
>>
>>
>> regards,
>> Harry
>>
>>
>> 2009/8/18 Janne Jalkanen <ja...@ecyrd.com>
>>
>> cool, nice work :-) Do you know by chance on how many Jackrabbit fails
>>>
>>>> at the moment? AFAIR there are/were some, too.
>>>>
>>>>
>>>
>>> Jackrabbit passes everything... They are the RI, after all :-).
>>>
>>> (Down to 14...)
>>>
>>> /Janne
>>>
>>>
>
Re: jcr import jspwiki-export
Posted by Janne Jalkanen <ja...@ecyrd.com>.
JSR-170 specification:
6.2.5.1 Date
The text format of dates must follow the following ISO 8601:2000-
compliant format:
sYYYY-MM-DDThh:mm:ss.sssTZD
Would be better to send these to priha-dev anyway...
/Janne
On 18 Aug 2009, at 22:14, Harry Metske wrote:
> Janne, can you take this patch in:
> ### Eclipse Workspace Patch 1.0
> #P priha
> Index: src/java/org/priha/core/values/CalendarValueImpl.java
> ===================================================================
> --- src/java/org/priha/core/values/CalendarValueImpl.java (revision
> 1080)
> +++ src/java/org/priha/core/values/CalendarValueImpl.java (working
> copy)
> @@ -36,7 +36,7 @@
> private static ThreadLocal<SimpleDateFormat> c_isoFormat = new
> ThreadLocal<SimpleDateFormat>() {
> protected synchronized SimpleDateFormat initialValue()
> {
> - return new SimpleDateFormat("yyyy-MM-
> dd'T'HH:mm:ss.SSS'Z'");
>
> + return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
>
> }
> };
>
>
>
> regards,
> Harry
>
>
> 2009/8/18 Janne Jalkanen <ja...@ecyrd.com>
>
>> cool, nice work :-) Do you know by chance on how many Jackrabbit
>> fails
>>> at the moment? AFAIR there are/were some, too.
>>>
>>
>>
>> Jackrabbit passes everything... They are the RI, after all :-).
>>
>> (Down to 14...)
>>
>> /Janne
>>
Re: jcr import jspwiki-export
Posted by Harry Metske <ha...@gmail.com>.
Janne, can you take this patch in:
### Eclipse Workspace Patch 1.0
#P priha
Index: src/java/org/priha/core/values/CalendarValueImpl.java
===================================================================
--- src/java/org/priha/core/values/CalendarValueImpl.java (revision 1080)
+++ src/java/org/priha/core/values/CalendarValueImpl.java (working copy)
@@ -36,7 +36,7 @@
private static ThreadLocal<SimpleDateFormat> c_isoFormat = new
ThreadLocal<SimpleDateFormat>() {
protected synchronized SimpleDateFormat initialValue()
{
- return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
+ return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
}
};
regards,
Harry
2009/8/18 Janne Jalkanen <ja...@ecyrd.com>
> cool, nice work :-) Do you know by chance on how many Jackrabbit fails
>> at the moment? AFAIR there are/were some, too.
>>
>
>
> Jackrabbit passes everything... They are the RI, after all :-).
>
> (Down to 14...)
>
> /Janne
>
Re: jcr import jspwiki-export
Posted by Janne Jalkanen <ja...@ecyrd.com>.
> cool, nice work :-) Do you know by chance on how many Jackrabbit fails
> at the moment? AFAIR there are/were some, too.
Jackrabbit passes everything... They are the RI, after all :-).
(Down to 14...)
/Janne
Re: jcr import jspwiki-export
Posted by Florian Holeczek <fl...@holeczek.de>.
Hallo Janne,
> Yup. 0.1.29 only fails on 16 JCR TCK tests, BTW.
cool, nice work :-) Do you know by chance on how many Jackrabbit fails
at the moment? AFAIR there are/were some, too.
regards
Florian
Re: jcr import jspwiki-export
Posted by Janne Jalkanen <ja...@ecyrd.com>.
Yup. 0.1.29 only fails on 16 JCR TCK tests, BTW.
/Janne
On 17 Aug 2009, at 23:01, Harry Metske wrote:
> OK,
> working on it, I ran into an NPE that can be solved by upgrading
> priha.
> The current prih version is 0.1.29, but jspwiki still has 0.1.22,
> can we
> upgrade this ?
>
> Harry
>
> 2009/8/17 Janne Jalkanen <ja...@ecyrd.com>
>
>>
>> Yup, priha supports XML import, but currently there's no way to
>> call the
>> Workspace.import() method... (It's not in the standard). You would
>> need to
>> write a small program which does that.
>>
>> It might make sense to make it a JSPWiki component which you could
>> simply
>> run from the command line.
>>
>> Also, I have not yet tried to do an XML import myself either, so I
>> don't
>> know whether the XML output from Export is valid in any way.
>>
>> /Janne
>>
>>
>> On 17 Aug 2009, at 21:11, Harry Metske wrote:
>>
>> Hi all,
>>> I want to put some effort again in testing JSPWiki 3.0, and want
>>> to use
>>> existing data.
>>> We already have an Exporter class that exports a classic JSPWiki
>>> repo into
>>> an XML file.
>>> Now I want to import this into an priha JCR repo and use that as the
>>> JSPWiki
>>> repo.
>>>
>>> Does priha offer that ?
>>> I have seen there is an XMLImport class, but it doesn't have a
>>> main()
>>> method.
>>>
>>> What is the best approach to create a repo (from an existing classic
>>> JSPWiki
>>> repo) that can be used by JSPWiki with priha ?
>>>
>>> regards,
>>> Harry
>>>
>>
>>
Re: jcr import jspwiki-export
Posted by Harry Metske <ha...@gmail.com>.
OK,
working on it, I ran into an NPE that can be solved by upgrading priha.
The current prih version is 0.1.29, but jspwiki still has 0.1.22, can we
upgrade this ?
Harry
2009/8/17 Janne Jalkanen <ja...@ecyrd.com>
>
> Yup, priha supports XML import, but currently there's no way to call the
> Workspace.import() method... (It's not in the standard). You would need to
> write a small program which does that.
>
> It might make sense to make it a JSPWiki component which you could simply
> run from the command line.
>
> Also, I have not yet tried to do an XML import myself either, so I don't
> know whether the XML output from Export is valid in any way.
>
> /Janne
>
>
> On 17 Aug 2009, at 21:11, Harry Metske wrote:
>
> Hi all,
>> I want to put some effort again in testing JSPWiki 3.0, and want to use
>> existing data.
>> We already have an Exporter class that exports a classic JSPWiki repo into
>> an XML file.
>> Now I want to import this into an priha JCR repo and use that as the
>> JSPWiki
>> repo.
>>
>> Does priha offer that ?
>> I have seen there is an XMLImport class, but it doesn't have a main()
>> method.
>>
>> What is the best approach to create a repo (from an existing classic
>> JSPWiki
>> repo) that can be used by JSPWiki with priha ?
>>
>> regards,
>> Harry
>>
>
>
Re: jcr import jspwiki-export
Posted by Janne Jalkanen <ja...@ecyrd.com>.
Yup, priha supports XML import, but currently there's no way to call
the Workspace.import() method... (It's not in the standard). You
would need to write a small program which does that.
It might make sense to make it a JSPWiki component which you could
simply run from the command line.
Also, I have not yet tried to do an XML import myself either, so I
don't know whether the XML output from Export is valid in any way.
/Janne
On 17 Aug 2009, at 21:11, Harry Metske wrote:
> Hi all,
> I want to put some effort again in testing JSPWiki 3.0, and want to
> use
> existing data.
> We already have an Exporter class that exports a classic JSPWiki
> repo into
> an XML file.
> Now I want to import this into an priha JCR repo and use that as the
> JSPWiki
> repo.
>
> Does priha offer that ?
> I have seen there is an XMLImport class, but it doesn't have a main()
> method.
>
> What is the best approach to create a repo (from an existing classic
> JSPWiki
> repo) that can be used by JSPWiki with priha ?
>
> regards,
> Harry