Include java script files with role "horde" in the package.xml.
authorGunnar Wrobel <p@rdus.de>
Sat, 2 Oct 2010 21:51:44 +0000 (23:51 +0200)
committerGunnar Wrobel <p@rdus.de>
Sat, 2 Oct 2010 21:51:44 +0000 (23:51 +0200)
components/lib/Components/Module/PearPackageXml.php

index b0e4f40..0340672 100644 (file)
@@ -92,12 +92,13 @@ implements Components_Module
                 'include' => '*',
                 'dir_roles' =>
                 array(
-                    'lib'       => 'php',
                     'doc'       => 'doc',
                     'example'   => 'doc',
+                    'js'        => 'horde',
+                    'lib'       => 'php',
+                    'migration' => 'data',
                     'script'    => 'script',
                     'test'      => 'test',
-                    'migration' => 'data',
                 ),
             )
         );
@@ -132,6 +133,11 @@ implements Components_Module
                     $file['attribs']['name'], $components[1]
                 );
             break;
+            case 'js':
+                $package->addInstallAs(
+                    $file['attribs']['name'], $file['attribs']['name']
+                );
+            break;
             case 'migration':
                 $components = explode('/', $components[1]);
                 array_splice($components, count($components) - 1, 0, 'migration');