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-myrmidon/container/src/java/org/apache/myrmidon/components/workspace DefaultWorkspace.java
Date Thu, 04 Jul 2002 04:31:07 GMT
donaldp     2002/07/03 21:31:07

  Modified:    container/src/java/org/apache/myrmidon/components/workspace
                        DefaultWorkspace.java
  Log:
  Cach projects in the PropertyStore
  
  Revision  Changes    Path
  1.115     +8 -6      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace/DefaultWorkspace.java
  
  Index: DefaultWorkspace.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace/DefaultWorkspace.java,v
  retrieving revision 1.114
  retrieving revision 1.115
  diff -u -r1.114 -r1.115
  --- DefaultWorkspace.java	4 Jul 2002 01:53:16 -0000	1.114
  +++ DefaultWorkspace.java	4 Jul 2002 04:31:07 -0000	1.115
  @@ -23,10 +23,10 @@
   import org.apache.myrmidon.interfaces.property.PropertyStore;
   import org.apache.myrmidon.interfaces.service.AntServiceKernel;
   import org.apache.myrmidon.interfaces.workspace.ProjectDescriptor;
  +import org.apache.myrmidon.interfaces.workspace.ProjectRef;
   import org.apache.myrmidon.interfaces.workspace.ProjectRefSet;
  -import org.apache.myrmidon.interfaces.workspace.Workspace;
   import org.apache.myrmidon.interfaces.workspace.TargetSet;
  -import org.apache.myrmidon.interfaces.workspace.ProjectRef;
  +import org.apache.myrmidon.interfaces.workspace.Workspace;
   
   /**
    * This is the default implementation of Workspace.
  @@ -112,7 +112,7 @@
        */
       private String[] splitTargetName( final String name )
       {
  -        final String[] parts = new String[2];
  +        final String[] parts = new String[ 2 ];
           if( name != null )
           {
               final int pos = name.indexOf( "/" );
  @@ -128,7 +128,7 @@
               else
               {
                   parts[ 0 ] = name.substring( 0, pos );
  -                parts[ 1 ] = name.substring( pos+1 );
  +                parts[ 1 ] = name.substring( pos + 1 );
               }
           }
           return parts;
  @@ -218,7 +218,9 @@
               }
               else
               {
  -                return createProject( descriptor );
  +                final Project project = createProject( descriptor );
  +                propertyStore.setProperty( key, project );
  +                return project;
               }
           }
           catch( ServiceException e )
  
  
  

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