diff --git a/proposal/myrmidon/src/main/org/apache/tools/ant/types/Reference.java b/proposal/myrmidon/src/main/org/apache/tools/ant/types/Reference.java deleted file mode 100644 index 9b1003ab7..000000000 --- a/proposal/myrmidon/src/main/org/apache/tools/ant/types/Reference.java +++ /dev/null @@ -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 Stefan Bodewig - */ -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; - } -} diff --git a/proposal/myrmidon/src/todo/org/apache/tools/ant/types/Reference.java b/proposal/myrmidon/src/todo/org/apache/tools/ant/types/Reference.java deleted file mode 100644 index 9b1003ab7..000000000 --- a/proposal/myrmidon/src/todo/org/apache/tools/ant/types/Reference.java +++ /dev/null @@ -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 Stefan Bodewig - */ -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; - } -}