donaldp 2003/04/04 02:56:25
Modified: src/java/org/apache/avalon/phoenix/framework/tools/infobuilder
LegacyBlockInfoReader.java
Log:
Defualt to version="1.0" in block section so that it does not need to be specified
in majority of xinfo files.
Revision Changes Path
1.4 +2 -4
avalon-phoenix/src/java/org/apache/avalon/phoenix/framework/tools/infobuilder/LegacyBlockInfoReader.java
Index: LegacyBlockInfoReader.java
===================================================================
RCS file:
/home/cvs/avalon-phoenix/src/java/org/apache/avalon/phoenix/framework/tools/infobuilder/LegacyBlockInfoReader.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- LegacyBlockInfoReader.java 22 Mar 2003 12:07:13 -0000 1.3
+++ LegacyBlockInfoReader.java 4 Apr 2003 10:56:25 -0000 1.4
@@ -319,13 +319,11 @@
*
* @param config the Component Configuration
* @return the created ComponentDescriptor
- * @throws ConfigurationException if an error occurs
*/
private ComponentDescriptor buildComponentDescriptor( final String classname,
final Configuration
config )
- throws ConfigurationException
{
- final String version = config.getChild( "version" ).getValue();
+ final String version = config.getChild( "version" ).getValue( "1.0" );
final ArrayList attributeSet = new ArrayList();
attributeSet.add( LegacyUtil.createVersionAttribute( version ) );
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]