ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/runtime ConverterDef.java
Date Mon, 27 May 2002 08:14:15 GMT
adammurdoch    02/05/27 01:14:15

  Modified:    antlib/src/java/org/apache/antlib/runtime ConverterDef.java
  Log:
  No need to munge classname any more.
  
  Revision  Changes    Path
  1.6       +2 -6      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/runtime/ConverterDef.java
  
  Index: ConverterDef.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/runtime/ConverterDef.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ConverterDef.java	23 May 2002 09:36:36 -0000	1.5
  +++ ConverterDef.java	27 May 2002 08:14:15 -0000	1.6
  @@ -15,7 +15,6 @@
   import org.apache.myrmidon.interfaces.deployer.TypeDefinition;
   import org.apache.myrmidon.interfaces.library.Library;
   import org.apache.myrmidon.interfaces.type.ClassLoaderTypeFactory;
  -import org.apache.myrmidon.interfaces.type.TypeManager;
   
   /**
    * Task to define a converter.
  @@ -52,14 +51,11 @@
           attrs.put( TypeDefinition.ATTRIBUTE_SOURCE_CLASS, m_sourceType );
           attrs.put( TypeDefinition.ATTRIBUTE_DESTINATION_CLASS, m_destinationType );
   
  -        // Generate a type name
           final String classname = getClassname();
  -        final String name = classname.replace( TypeManager.NAMESPACE_SEPARATOR, '_' );
  -
           final ClassLoaderTypeFactory typeFactory = new ClassLoaderTypeFactory( library.getClassLoader()
);
  -        typeFactory.addNameClassMapping( name, classname );
  +        typeFactory.addNameClassMapping( classname, classname );
   
  -        final TypeDefinition typeDef = new TypeDefinition( name, Converter.ROLE, typeFactory,
attrs );
  +        final TypeDefinition typeDef = new TypeDefinition( classname, Converter.ROLE, typeFactory,
attrs );
   
           final Deployer deployer = (Deployer)getService( Deployer.class );
           deployer.deployType( null, typeDef );
  
  
  

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


Mime
View raw message