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
Comments
-
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
2
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 151 General Questions
- 146 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 179 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 9 XM Fax
- Follow Categories