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/components/deployer Deployment.java
Date Sun, 03 Feb 2002 03:40:01 GMT
donaldp     02/02/02 19:40:01

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer
                        Deployment.java
  Log:
  
  
  Revision  Changes    Path
  1.15      +5 -5      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java
  
  Index: Deployment.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Deployment.java	3 Feb 2002 00:03:16 -0000	1.14
  +++ Deployment.java	3 Feb 2002 03:40:01 -0000	1.15
  @@ -76,7 +76,7 @@
        * Load the descriptors.  Deploys all roles, then loads the descriptors
        * for, but does not deploy, all the types.
        */
  -    public void loadDescriptors( URL jarUrl )
  +    public void loadDescriptors( final URL jarUrl )
           throws Exception
       {
           final ArrayList descriptors = new ArrayList();
  @@ -185,7 +185,7 @@
           throws DeploymentException
       {
           final String typeName = typeDef.getName();
  -        final String roleShorthand = typeDef.getRoleShorthand();
  +        final String roleShorthand = typeDef.getRole();
   
           final String className = typeDef.getClassname();
           if( null == className )
  @@ -247,15 +247,15 @@
       private List locateResources( final String resource, final URL jarUrl )
           throws Exception
       {
  -        ArrayList urls = new ArrayList();
  -        if( jarUrl != null )
  +        final ArrayList urls = new ArrayList();
  +        if( null != jarUrl )
           {
               final String systemID = "jar:" + jarUrl + "!/" + resource;
               urls.add( systemID );
           }
           else
           {
  -            Enumeration enum = m_classLoader.getResources( resource );
  +            final Enumeration enum = m_classLoader.getResources( resource );
               while( enum.hasMoreElements() )
               {
                   urls.add( enum.nextElement().toString() );
  
  
  

--
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