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/interfaces/workspace ProjectRef.java
Date Sat, 08 Jun 2002 07:43:26 GMT
donaldp     2002/06/08 00:43:26

  Added:       container/src/java/org/apache/myrmidon/interfaces/workspace
                        ProjectRef.java
  Log:
  Start to move ProectRef to Workspace
  
  Revision  Changes    Path
  1.1                  jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/workspace/ProjectRef.java
  
  Index: ProjectRef.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.interfaces.workspace;
  
  import org.apache.myrmidon.interfaces.workspace.ProjectDescriptor;
  
  /**
   * A object modeling a project reference.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/06/08 07:43:26 $
   */
  public class ProjectRef
  {
      private final String m_name;
      private final ProjectDescriptor m_project;
  
      /**
       * Create a reference.
       *
       * @param name The local name used to refer to project
       * @param project the project descriptor.
       */
      public ProjectRef( final String name,
                         final ProjectDescriptor project )
      {
          m_name = name;
          m_project = project;
      }
  
      /**
       * @return The name of the project containing the depended-on target.
       */
      public String getName()
      {
          return m_name;
      }
  
      /**
       * Return the descriptor for project referred to.
       *
       * @return the descriptor for project referred to.
       */
      public ProjectDescriptor getProject()
      {
          return m_project;
      }
  
      /**
       * Return human readable string for Project reference.
       *
       * @return human readable string.
       */
      public String toString()
      {
          return m_name + ": " + m_project;
      }
  }
  
  
  

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