git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271337 13f79535-47bb-0310-9956-ffa450edef68master
@@ -5,7 +5,7 @@ | |||||
* version 1.1, a copy of which has been included with this distribution in | * version 1.1, a copy of which has been included with this distribution in | ||||
* the LICENSE.txt file. | * the LICENSE.txt file. | ||||
*/ | */ | ||||
package org.apache.tools.ant.types; | |||||
package org.apache.myrmidon.framework; | |||||
/** | /** | ||||
* Individual filter component of filterset | * Individual filter component of filterset |
@@ -16,6 +16,7 @@ import java.util.Hashtable; | |||||
import java.util.Iterator; | import java.util.Iterator; | ||||
import java.util.Properties; | import java.util.Properties; | ||||
import org.apache.myrmidon.api.TaskException; | import org.apache.myrmidon.api.TaskException; | ||||
import org.apache.myrmidon.framework.Filter; | |||||
import org.apache.tools.ant.ProjectComponent; | import org.apache.tools.ant.ProjectComponent; | ||||
/** | /** | ||||
@@ -1,78 +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; | |||||
/** | |||||
* Individual filter component of filterset | |||||
* | |||||
* @author Michael McCallum | |||||
* @created 14 March 2001 | |||||
*/ | |||||
public class Filter | |||||
{ | |||||
/** | |||||
* Token which will be replaced in the filter operation | |||||
*/ | |||||
private String m_token; | |||||
/** | |||||
* The value which will replace the token in the filtering operation | |||||
*/ | |||||
private String m_value; | |||||
/** | |||||
* Constructor for the Filter object | |||||
* | |||||
* @param token The token which will be replaced when filtering | |||||
* @param value The value which will replace the token when filtering | |||||
*/ | |||||
public Filter( final String token, final String value ) | |||||
{ | |||||
m_token = token; | |||||
m_value = value; | |||||
} | |||||
/** | |||||
* No argument conmstructor | |||||
*/ | |||||
public Filter() | |||||
{ | |||||
} | |||||
/** | |||||
* Sets the Token attribute of the Filter object | |||||
*/ | |||||
public void setToken( final String token ) | |||||
{ | |||||
m_token = token; | |||||
} | |||||
/** | |||||
* Sets the Value attribute of the Filter object | |||||
*/ | |||||
public void setValue( final String value ) | |||||
{ | |||||
m_value = value; | |||||
} | |||||
/** | |||||
* Gets the Token attribute of the Filter object | |||||
*/ | |||||
public String getToken() | |||||
{ | |||||
return m_token; | |||||
} | |||||
/** | |||||
* Gets the Value attribute of the Filter object | |||||
*/ | |||||
public String getValue() | |||||
{ | |||||
return m_value; | |||||
} | |||||
} |
@@ -16,6 +16,7 @@ import java.util.Hashtable; | |||||
import java.util.Iterator; | import java.util.Iterator; | ||||
import java.util.Properties; | import java.util.Properties; | ||||
import org.apache.myrmidon.api.TaskException; | import org.apache.myrmidon.api.TaskException; | ||||
import org.apache.myrmidon.framework.Filter; | |||||
import org.apache.tools.ant.ProjectComponent; | import org.apache.tools.ant.ProjectComponent; | ||||
/** | /** | ||||