avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder BlockInfoBuilder.java
Date Sat, 12 Jan 2002 02:40:06 GMT
donaldp     02/01/11 18:40:06

  Modified:    src/schema blockinfo.dtd
               src/java/org/apache/avalon/phoenix/tools/infobuilder
                        BlockInfoBuilder.java
  Log:
  version no longer a required attribute for service elements.
  
  Revision  Changes    Path
  1.4       +1 -1      jakarta-avalon-phoenix/src/schema/blockinfo.dtd
  
  Index: blockinfo.dtd
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/schema/blockinfo.dtd,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- blockinfo.dtd	15 Dec 2001 04:53:14 -0000	1.3
  +++ blockinfo.dtd	12 Jan 2002 02:40:06 -0000	1.4
  @@ -50,7 +50,7 @@
   -->
   <!ELEMENT service   EMPTY >
     <!ATTLIST service   name      CDATA  #REQUIRED >
  -  <!ATTLIST service   version   CDATA  #REQUIRED >
  +  <!ATTLIST service   version   CDATA >
   
   <!--
   The service dependency describes a service that the block
  
  
  
  1.8       +2 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder/BlockInfoBuilder.java
  
  Index: BlockInfoBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder/BlockInfoBuilder.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- BlockInfoBuilder.java	12 Jan 2002 02:08:01 -0000	1.7
  +++ BlockInfoBuilder.java	12 Jan 2002 02:40:06 -0000	1.8
  @@ -170,7 +170,8 @@
           throws ConfigurationException
       {
           final String name = service.getAttribute( "name" );
  -        final Version version = buildVersion( service.getAttribute( "version" ) );
  +        final String versionString = service.getAttribute( "version", "1.0" );
  +        final Version version = buildVersion( versionString );
           return new ServiceDescriptor( name, version );
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message