ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework AbstractTypeDef.java
Date Sun, 08 Jul 2001 07:17:39 GMT
donaldp     01/07/08 00:17:39

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/framework
                        AbstractTypeDef.java
  Log:
  Convert parameter to use FIle type directly rather than converting from String.
  
  Revision  Changes    Path
  1.4       +3 -4      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractTypeDef.java
  
  Index: AbstractTypeDef.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractTypeDef.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractTypeDef.java	2001/06/17 10:35:40	1.3
  +++ AbstractTypeDef.java	2001/07/08 07:17:38	1.4
  @@ -31,7 +31,7 @@
       extends AbstractTask
       implements Composable
   {
  -    private String              m_lib;
  +    private File                m_lib;
       private String              m_name;
       private String              m_className;
       private TypeManager         m_typeManager;
  @@ -44,7 +44,7 @@
           m_roleManager = (RoleManager)componentManager.lookup( RoleManager.ROLE );
       }
   
  -    public void setLib( final String lib )
  +    public void setLib( final File lib )
       {
           //In the future this would be replaced by ClassPath sub-element
           m_lib = lib;
  @@ -92,8 +92,7 @@
           //TODO: Make this support classpath sub-element in future
           try
           {
  -            final File file = getContext().resolveFile( m_lib );
  -            final URL url = file.getCanonicalFile().toURL();
  +            final URL url = m_lib.toURL();
               final ClassLoader classLoader =
                   Thread.currentThread().getContextClassLoader();
   
  
  
  

Mime
View raw message