1   /*
2    * Copyright (C) The MetaClass Group. All rights reserved.
3    *
4    * This software is published under the terms of the Spice
5    * Software License version 1.1, a copy of which has been included
6    * with this distribution in the LICENSE.txt file.
7    */
8   package org.codehaus.metaclass.tools.tasks;
9   
10  import java.util.HashMap;
11  import org.apache.tools.ant.Project;
12  
13  /***
14   * @author Peter Donald
15   * @version $Revision: 1.3 $ $Date: 2003/11/28 11:14:55 $
16   */
17  class MockProject
18      extends Project
19  {
20      private final HashMap m_references = new HashMap();
21  
22      void bindReference( final String key,
23                          final Object value )
24      {
25          m_references.put( key, value );
26      }
27  
28      public Object getReference( final String key )
29      {
30          return m_references.get( key );
31      }
32  }