Paul Libbrecht wrote:
I'm asking for a converter from groovy (or other
wiki syntax) to xml
files then.
And I would expect it natural to be done as a service of the xar plugin.
How did you obtain the XML files with wiki content? I hope you didn't
write them by hand...
The normal way is to write documents in a running wiki, and use the
"Print->Export as XAR" menu entry, or the Import/Export application.
Now, if the groovy/velocity content is inside a wiki document, it will
get exported as any wiki content. If you're talking about .vm files
located on the filesystem, it is not possible to use xars for this. Only
wiki documents are included in a xar archive, but these wiki documents
can contain scripts.
Template Extensions (vm files located in wiki documents) are not yet
supported. In the future, this is how velocity templates will be
written, and they will be supported in .xar files.
On 02-oct.-08, at 13:38, Vincent Massol wrote:
>
> On Oct 2, 2008, at 1:16 PM, Paul Libbrecht wrote:
>
>> How do I put groovy files in?
>
> As I said they need to go in pages (aka xwiki documents, the xml files).
>
> I don't understand what you're asking. The XAR format *only* supports
> wiki pages (the xml files in xwiki format).
>
> Thanks
> -Vincent
>
>>
>> Is it enough for me to have the following layout?
>>
>> pom.xml
>> src
>> - main
>> - resources
>> - SpaceName
>> - xmlFileOne (no suffix but .xml)
>> - File.grv
>>
>> ?
>> At least now I tried that and File.grv got tried to be xml-parsed,
>> which failed of course.
>>
>> .vm files are velocity files... they would be the same, or?
>>
>> thanks
>>
>> paul
>>
>>
>> On 02-oct.-08, at 13:01, Vincent Massol wrote:
>>
>>> Groovy sources can go in pages and thus in the XAR but vm cannot.
>>>
>>> The goal for the future is this:
>>>
http://dev.xwiki.org/xwiki/bin/view/Design/ApplicationManager
>>>
>>> But nobody is working on this yet.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/