commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler/ant RegistryTask.java
Date Thu, 26 Dec 2002 18:09:29 GMT
costin      2002/12/26 10:09:29

  Modified:    modeler/src/java/org/apache/commons/modeler/ant
                        RegistryTask.java
  Log:
  This task loades mbean descriptors. Pass the resource name, for debug
  info.
  
  I don't know if this is really needed, in most cases mbeans-descriptors.xml
  should be located in the same package or in a parent.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-commons/modeler/src/java/org/apache/commons/modeler/ant/RegistryTask.java
  
  Index: RegistryTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/ant/RegistryTask.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RegistryTask.java	12 Nov 2002 22:47:35 -0000	1.1
  +++ RegistryTask.java	26 Dec 2002 18:09:29 -0000	1.2
  @@ -85,7 +85,7 @@
       public void execute() throws Exception {
           if( resource != null ) {
               InputStream is=this.getClass().getClassLoader().getResourceAsStream(resource);
  -            BaseRegistry.getBaseRegistry().loadDescriptors( is, "modeler" );
  +            BaseRegistry.getBaseRegistry().loadDescriptors( resource, is, "mbeans-descriptors"
);
           }
       }
   }
  
  
  

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


Mime
View raw message