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 Tue, 21 May 2002 01:08:44 GMT
donaldp     02/05/20 18:08:44

  Modified:    container/src/java/org/apache/myrmidon/components/workspace
                        DefaultWorkspace.java
  Log:
  Store projects in map based on URI
  
  Revision  Changes    Path
  1.60      +3 -5      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.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- DefaultWorkspace.java	12 May 2002 11:18:39 -0000	1.59
  +++ DefaultWorkspace.java	21 May 2002 01:08:44 -0000	1.60
  @@ -31,7 +31,7 @@
    * This is the default implementation of Workspace.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.59 $ $Date: 2002/05/12 11:18:39 $
  + * @version $Revision: 1.60 $ $Date: 2002/05/21 01:08:44 $
    */
   public class DefaultWorkspace
       extends AbstractLogEnabled
  @@ -147,15 +147,14 @@
       private ProjectEntry getProjectEntry( final Project project )
           throws TaskException
       {
  -        ProjectEntry entry = (ProjectEntry)m_entries.get( project );
  -
  +        ProjectEntry entry = (ProjectEntry)m_entries.get( project.getURI() );
           if( null == entry )
           {
               try
               {
                   final ExecutionFrame frame = createExecutionFrame( project );
                   entry = new ProjectEntry( project, frame );
  -                m_entries.put( project, entry );
  +                m_entries.put( project.getURI(), entry );
               }
               catch( Exception e )
               {
  @@ -171,7 +170,6 @@
           throws TaskException
       {
           final Project other = project.getProject( name );
  -
           if( null == other )
           {
               //TODO: Fix this so location information included in description
  
  
  

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