Changeset 1278 for modules/trunk

Show
Ignore:
Timestamp:
03/26/06 05:27:23 (7 years ago)
Author:
qldrob
Message:

Here's some sample XML parsing code that seems to do the right stuff.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/trunk/modules.xml

    • Property svn:mime-type changed from text/plain to text/xml
    r1277 r1278  
    1 <!-- This is a test of a comment --
    2 <module id='Test Module'
    3   <type>testing</type> 
    4   <name>Test Module</name> 
    5   <author>Rob Thomas</author> 
    6   <email>xrobau@gmail.com</email> 
    7   <version>1.0</version> 
    8   <requirements> 
    9   <module>core</module> 
    10   <module>recordings</module> 
    11   <product>asterisk</product> 
    12   <product>asterisk-sounds</product> 
    13   <file>/bin/sh</file> 
    14   </requirements> 
    15   <!--  Locations have a base href of http://svn.sourceforge.net/svnroot/amportal/modules/ --> 
    16   <location>trunk/testing/test-1.0.tgz</location> 
    17 </module> 
     1<xml
     2 <module
     3   <type>testing</type> 
     4   <name>Test Module</name> 
     5   <author>Rob Thomas</author> 
     6   <email>xrobau@gmail.com</email> 
     7   <version>1.0</version> 
     8   <requirements> 
     9     <module>core</module> 
     10     <module>recordings</module> 
     11     <product>asterisk</product> 
     12     <product>asterisk-sounds</product> 
     13     <file>/bin/sh</file> 
     14   </requirements> 
     15   <!--  Locations have a base href of http://svn.sourceforge.net/svnroot/amportal/modules/ --> 
     16   <location>trunk/testing/test-1.0.tgz</location> 
     17 </module> 
    1818 
    19 <!-- Describe 'product' requirements --> 
    20 <product id='asterisk'> 
    21   <!-- How do we know it's installed? I guess in this case, look for /usr/sbin/aserisk  --> 
    22   <file>/usr/sbin/asterisk</file> 
    23   <error>You need to install asterisk first, dummy.</error> 
    24 </product> 
     19  <module> 
     20    <type>testing</type> 
     21    <name>Java SSH Client</name> 
     22    <author>klkunzler</author> 
     23    <version>1.0</version> 
     24    <requirements> 
     25      <module>core</module> 
     26    </requirements> 
     27    <!--  Locations have a base href of http://svn.sourceforge.net/svnroot/amportal/modules/ --> 
     28    <location>trunk/testing/javassh-1.0.tgz</location> 
     29  </module> 
    2530 
    26 <product id='asterisk-sounds'> 
    27   <file>/var/lib/asterisk/sounds/weasels-eaten-phonesys.gsm</file> 
    28   <error>The 'asterisk-sounds' module is not installed. Please download it</error> 
    29 </product> 
     31  <!-- Describe 'product' requirements --> 
     32  <product> 
     33  <!-- How do we know it's installed? I guess in this case, look for /usr/sbin/aserisk  --> 
     34    <name>asterisk</name> 
     35    <file>/usr/sbin/asterisk</file> 
     36    <error>You need to install asterisk first, dummy.</error> 
     37  </product> 
     38 
     39  <product> 
     40    <name>asterisk-sounds</name> 
     41    <file>/var/lib/asterisk/sounds/weasels-eaten-phonesys.gsm</file> 
     42    <error>The 'asterisk-sounds' module is not installed. Please download it</error> 
     43  </product> 
     44</xml>