Feature request - automatically build module.ini file when doing build clean

Hi,

I am recently faced with a client requirement to embed a build number/code into my module ini file. I know that yeah, the webmodule object in Oscript has the '0 DumpModuleConfigToFile' function, and that we can override it to add our own tags, but what I really want is a way to have build clean regenerate the module.ini when we rebuild the module, ideally with a subclass that allows us to specify additional name=value pairs (and their section) to go into the module.ini file.

The goal is to automate this annotation that is required for the module so that product management and support know exactly what version of a module they have in their hands, as well as to automate adding items to the module.ini that may change with each subsequent build.

At the very least, the existing '0 DumpModuleConfigToFile' should be refactored so that we can override a subclass to add sections we want included additionally in the module.ini instead of having to override the entire script. Given the way that OT Dev has a tendancy to update key bits of code which 3rd party developers may orphan, this only makes sense.

-Hugh Ferguson

Tagged:

Comments

  • I do it manually because of this reason . The CreateAmodule.lxe which was the go-to module in our old builder days it came out of the Oscript community. if OT won't listen…My guess is OT does not want Oscript 3rd party devs…

  • As I think about it, the best thing would be if we could have a hook into the build clean, that is, when Build Clean is invoked from CSIDE menu, that it would call a feature in every WebModule object in modules that are in the source directory that by default is empty, but is a place we could do our own thing, such as write into placeholders in module files like module.ini. In that case, ideally there would be a RunBuildCleanPre() and RunBuildCleanPost() so we could do pre/post operations.

    Mind you, if the end goal of OT is to keep us 3rd party developers out, then I can see them not doing this or anything remotely like this.

    -Hugh