
Stefan Schubert wrote: [...]
I think it is an good idea. But before we are splitting the rakefiles we should check if there is an "overloading mechanism" available. E.G. "rake package". Is it possible to overload the "rake package" call defined in webservice by a "rake package" call defined in the plugin ?
I have improved the task loader, in the simple case (no need to redefine a task) just add require 'tasks/webservice' to the Rakefile. If you need to redefine a task then it must be explicitly excluded in the loading code so it is defined just once. There is an extra helper class to do this, use this instead of the above code: require 'tasks/webservice_tasks' WebserviceTasks.loadTasks(:exclude => ["package.rake"]) This example loads all tasks except :package task which can be defined later. (This code is used in rubygem-yast2-webservice-tasks package itself, it's a gem package which is packaged in a different way.) See rest-service/webservice-tasks/README for more details (it also supports wildcards...). -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org