English:

The Free and Open Productivity Suite
New: Apache OpenOffice 4.1.1 released!

Undefining global IDs



Beginning with src680m25 the concept of undefining global IDs is introduced. This is a very important, if a new product shall be created. Because many of our products are very similar, it is better, to define only the difference of two setup scripts. Even OpenOffice.org, StarOffice and StarOfficeMulti can be defined by describing only the differences compared to OpenOffice.org. Therefore all scp files need only to be build once, which reduces the build time of the scp projects dramatically. Furthermore definitions like OSL_PRODUCT, FAT_PRODUCT or FAM_PRODUCT are no longer required, which increases the readability of scp files.

The introduction of difference-files leads to the introduction of product families:

OpenOffice.org -> StarOffice -> StarOfficeMulti

Adabas -> AdabasMulti

This means, that OpenOffice.org and Adabas are base products. A StarOffice uses the same scp files as OpenOffice.org and contains some additional scp files, in which new global IDs are defined and other global IDs are undefined.

The undefining of a global ID is a very simple process. To undefine the file defined with the global ID ''gid_File_Lib_Abc'', you only have to include in one of the scp files, that are part of the product, the following line:

UnFile gid_File_Lib_Abc

That's all! You only have to list the global ID and the item type, with an ''Un'', before the keyword used for the definition. Take care, all strings are case sensitive!

You can also use:

UnInstallation
UnHelpText
UnStarRegistry
UnDataCarrier
....

and so on.

If you want to undefine a file that is added to a module, you also only have to write this one undefinition line. The process of removal of non defined global IDs from modules, automatically removes the global ID from the module definition.





Logo ApacheCon Europe 2014

Apache Feather

Copyright & License | Privacy | Website Feedback | Contact Us | Donate | Thanks

Apache, the Apache feather logo, and OpenOffice are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.