We have been using a very simple post method that allows two things:

- keep the source code files as source, e.g. a velocity file is a .vm  
file
- a command called uploadPages (made of mostly curl and a bit of groovy)

I use IntelliJ with a bit "well-informed-classes" to edit both groovy  
and velocity files and upload with uploadPages.
See http://svn.activemath.org/intergeo/Platform/bin/ to get  
uploadPages and uploadPages.grv.

The big advantage of keeping the source files source is that they are  
svn-shared as is, so they merge well, and are edited with luxury (e.g.  
auto-complete on variable names, properties uniqueness check, evil  
velocity syntax catches, not yet wiki syntax protection indeed!).

I feel uploadPages should be turned into some simple ant tasks, I just  
didn't find the time to do it.
I would also love that this would apply to any document-information,  
thus far it's just the page content in english.

Direct page preview of the page being edited, as XEclipse always does,  
is too minimalistic to my taste: I always test some derivative of the  
code I edit (e.g. I edit a groovy class and test a vm page that uses  
the groovy as tool, or I test things with parameters...).

paul




Le 27-déc.-09 à 10:16, Vincent Massol a écrit :

> Hi Andreas,
>
> On Dec 27, 2009, at 1:16 AM, Andreas Schaefer wrote:
>
>> Hi
>>
>> For the development of the Groovy based Blog I just developed the
>> code in IntelliJ, copied inside a browser and eventually exported
>> the content into a XAR file. Slowly but surely this is getting way
>> to much work especially when doing sweeping changes.
>>
>> Because I don't use Eclipse I am not able to use the XEclipse tool
>
> XEclipse is a standalone tool (it's a RCP application), you don't need
> Eclipse to use it... :)
>
>> but I was wondering if anybody knows a way to XML encode text
>> (within Maven2) so that it later could use Ant's copy and filter
>> tool to incorporate the developed code / content inside the XML file
>> that will build up the XAR file.
>
> But then you need to load the XAR to test it. You need to automate
> that part too. What you need is the full round trip:
> - get a page content locally
> - make changes to it
> - save (which uploads it to the server)
> - test
>
> This is what Eclipse does indeed. However XEclipse has some current
> limitations, one of which is that it doesn't work with XWiki Syntax
> 2.0 yet (there's some code for this in SVN I believe though).
> Unfortunately not many devs have been working on XEclipse which is a
> real pity since it has a huge potential.
>
> Re encoding I'm not sure why you'd want to do that. You can just copy
> paste the content in pages directly without going through XAR +  
> import.
>
> Thanks
> -Vincent
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to