RE: Re: [zzoss-devel] package groups (was: installer: description of package.xml)
Status: Alpha
Brought to you by:
czonsius
|
From: Christian Z. <chr...@zz...> - 2003-03-02 18:46:36
|
here the final rfc before i start the implementation... a) groups a group is an alias for a default baseinstalldir. the groups are defined in= config.xml. the paths are relative to application root. <groups> <group name=3D"libraries" baseinstalldir=3D"./lib/"/> <group name=3D"modules" baseinstalldir=3D"./modules/"/> <group name=3D"root" baseinstalldir=3D"./"/> <group name=3D"default" baseinstalldir=3D"./modules/"/> </groups> b) ways of defining a path / file <file baseinstalldir=3D"." name=3D"test.php"/> or=20 <file name=3D"test.php"/> are equal and will copy "test.php" to "<applicati= on-root>/test.php" <file group=3D"modules" baseinstalldir=3D"test" name=3D"test.php"/> will copy test.php to "<application-root>/modules/test/test.php" the complete path is composed of <resolving of group> + baseinstalldir + name=20 or <resolving of group> + baseinstalldir + save-as (if save-as attribute is = used) if no group is specified in file tag, the group "default" will be used. (fo= r applications with just one group).=20 c) copying files from one package to another > How should we handle modules that want to move one of their files into an= other=20 > module? since we define all necessary information for the complete path, this will = be no problem. e.g. the following package will copy a new connector to "zzoss_connectors" <!-- package.xml of new package --> ... <file group=3D"libraries" baseinstalldir=3D"ZZOSS_Connectors/connectors/" n= ame=3D"pear.php"/> ... <!-- end of package.xml of new package --> this will copy pear.php from the source module to <application-root>/lib/ZZOSS_Connectors/connectors/pear.php christian -- ZZ/OSS GbR Information Networking Lembergstr. 15 72072 T=FCbingen/Germany phone: +49-(0)179-4568718 fax: +49-(0)7071-79568-33 chr...@zz... http://www.zzoss.com |