Browse Source

Remove unused class.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270732 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
d71bdbed17
2 changed files with 0 additions and 94 deletions
  1. +0
    -47
      proposal/myrmidon/src/main/org/apache/tools/ant/types/Reference.java
  2. +0
    -47
      proposal/myrmidon/src/todo/org/apache/tools/ant/types/Reference.java

+ 0
- 47
proposal/myrmidon/src/main/org/apache/tools/ant/types/Reference.java View File

@@ -1,47 +0,0 @@
/*
* 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.tools.ant.types;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;

/**
* Class to hold a reference to another object in the project.
*
* @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a>
*/
public class Reference
{
private String refid;

public void setRefId( String id )
{
refid = id;
}

public String getRefId()
{
return refid;
}

public Object getReferencedObject( Project project )
throws TaskException
{
if( refid == null )
{
throw new TaskException( "No reference specified" );
}

Object o = project.getReference( refid );
if( o == null )
{
throw new TaskException( "Reference " + refid + " not found." );
}
return o;
}
}

+ 0
- 47
proposal/myrmidon/src/todo/org/apache/tools/ant/types/Reference.java View File

@@ -1,47 +0,0 @@
/*
* 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.tools.ant.types;

import org.apache.myrmidon.api.TaskException;
import org.apache.tools.ant.Project;

/**
* Class to hold a reference to another object in the project.
*
* @author <a href="mailto:stefan.bodewig@epost.de">Stefan Bodewig</a>
*/
public class Reference
{
private String refid;

public void setRefId( String id )
{
refid = id;
}

public String getRefId()
{
return refid;
}

public Object getReferencedObject( Project project )
throws TaskException
{
if( refid == null )
{
throw new TaskException( "No reference specified" );
}

Object o = project.getReference( refid );
if( o == null )
{
throw new TaskException( "Reference " + refid + " not found." );
}
return o;
}
}

Loading…
Cancel
Save