Vik Tara wrote: > Andreas Hartmann wrote: > > Vik Tara schrieb: > >> Hi All, > >> > >> Has anyone scripted the creation of a module structure? > >> > >> We usually follow this method: > >> http://lenya.apache.org/docu20/reference/modules.html > >> > >> But it would be nice to script this - and then keep such a script up to > >> date with future changes to module structure. > >> > >> Is this a sensible use of scripting - or am I missing obvious problems > >> that could be caused? > > > > Would the purpose of the script be to promt the user for entering the > > module ID, version etc. and create module.xml accordingly? > > That's what I was thinking. > > > > > All other directories and files are optional, so I don't think they > > should be created by the script > > OK - I didn't think about that - I guess a script would not be as useful > as I originally thought. > > Maybe helpful for rookie module developers - or is is better to learn > the structure through having to create the files? >
To share my experience with module creation: Since I'm using Lenya 2 I've created about 30-40 different modules. Purpose and starting point when I came to "I think I need a module" most times were very different and so I fully agree to what Andreas mentioned. Maybe 2 or 3 modules I've created from scratch following the instructions in the Lenya documentation and I can say that this helped me very much to understand the power of modules and how they work. What is working very well for my needs is to use a copy of an existing (most similar) module as the starting point. With Eclipse it's easy to find all occurences of the original module id and replace it.... Depending of the complexity this was often done in some minutes. Gerd --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
