activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Strachan <>
Subject Re: Build tools: Groovy scripts
Date Wed, 22 Feb 2006 09:45:29 GMT
Hi Mats

Just a heads up - I've finished with my refactoring for the  
generation of the command classes for C# and C++ so now most of the  
logic is in the Java code base classes, so the groovy scripts are now  
mostly just the template. We can auto-generate the C++ .hpp and .cpp  

I've not checked in the generated classes yet (I've not even tried to  
compile them :) but they kinda look close to being right. The missing  
area is probably gonna be choosing the right type name expressions  
for each type in the OpenWire commands together with their default  
values. So unless there's any typos in the generation scripts... 

then the most likely place that we'll need to patch is in these 2  
functions in this Java base class... 

So feel free to experiment and see how good or bad a job I've  
done :). To generate the OpenWire artifacts type the following

cd activemq-core
maven -o openwire:generate

(first time you might wanna ommit the -o to download any dependent  
jars, but since this takes a while, I tend to work in offline mode  
frequently in maven).

I'm now working on refactoring the marshalling code generation for  
Java & C# and to create the auto-generated marshalling code for C++;  
so Mats if you wanna tinker with the generation of the command  
classes please be my guest. I'll report soon when I've completed the  
refactor of the marshalling code generation.


On 20 Feb 2006, at 15:03, Mats Forslöf wrote:
> Excellent, thanks!
> Looking at them now, please let me know if I can assist in any way.
> Regards,
> Mats
> -----Original Message-----
> From: James Strachan []
> Sent: den 20 februari 2006 14:25
> To:
> Subject: Re: Build tools: Groovy scripts
> On 20 Feb 2006, at 09:05, Mats Forslöf wrote:
>> Hi,
>> According to the source in module openwire-dotnet the commands are
>> auto generated via a set of Grovvy scripts located in the activemq-
>> openwire module. It would be nice to do the same for the openwire-  
>> cpp
>> commands - anyone that knows where the scripts are, can't find them?
> BTW I'm just in the process of refactoring those scripts a little  
> to make it easier to reuse the same code across C++ and C# (along  
> with making the scripts a little easier to understand). I've  
> recently tried to auto-create some unit tests for Java & want to  
> make those reusable across C++ and C# too...
> The scripts are here...
> core/src/gram/script/
> James
> -------


View raw message