[zzoss-devel] package groups (was: installer: description of package.xml)
Status: Alpha
Brought to you by:
czonsius
|
From: Sandro Z. <san...@zz...> - 2003-02-27 17:34:49
|
On Thursday 27 February 2003 01:48, Christian Zonsius wrote: > <filelist> > =09<file role=3D"php" baseinstalldir=3D"." > name=3D"lib/my_package/1/my_lib.php"/> > =09<file role=3D"php" baseinstalldir=3D"." > name=3D"modules/my_package/my_script.php"/> > </filelist> I still do not like the give-me-the-full-path approach here ;) I'd propos= e to=20 make the installer and package.xml work with so called "package groups". = This=20 means that we define packages that belong to a certain group, like librar= ies,=20 modules, or utils. Accordingly, the filelist might look like this: <filelist> =09<file role=3D"php" group=3D"libraries" name=3D"my_package/1/class.php"= /> =09<file role=3D"php" group=3D"modules" name=3D"my_package/script.php"/> </filelist> As you see, the baseinstalldir attribute as well as the lib/ and modules/= =20 directory are omitted. These are instead defined in the configuration fil= e of=20 the installer itself: installer/ =09conf/ =09=09config.xml Here we might add: <groups> =09<group name=3D"libraries" baseinstalldir=3D"./lib/"/> =09<group name=3D"modules" baseinstalldir=3D"./modules/"/> </groups> This is much more flexible, especially if we allow the installer to insta= ll=20 different applications. For example, there can be applications called=20 "myIntranet" or "myWebsite", etc. Just imagine that each of these=20 applications uses ZZ/OSS Installer packages, but does not want to move th= em=20 to the locations hardcoded in the package.xml file ! If modules should be physically located in components/ and libraries in=20 classes/ - then the initial filelist definition would not work, because t= here=20 paths are hardcoded. This furthermore means that package group definitions in=20 installer/config/config.xml must be application-specific. Maybe the solut= ion=20 is to provide configuration files for each application, e.g. installer/config/myIntranet.xml installer/config/myWebsite.xml But that's something for later. For now, we just have to add one package = group=20 definition as shown above. Sandro |