Browse Source

Move filter class into framework

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271337 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
13e89f3197
4 changed files with 3 additions and 79 deletions
  1. +1
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/framework/Filter.java
  2. +1
    -0
      proposal/myrmidon/src/main/org/apache/tools/ant/types/FilterSet.java
  3. +0
    -78
      proposal/myrmidon/src/todo/org/apache/tools/ant/types/Filter.java
  4. +1
    -0
      proposal/myrmidon/src/todo/org/apache/tools/ant/types/FilterSet.java

proposal/myrmidon/src/main/org/apache/tools/ant/types/Filter.java → proposal/myrmidon/src/java/org/apache/myrmidon/framework/Filter.java View File

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

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

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


/** /**


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

@@ -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;
}
}

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

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


/** /**


Loading…
Cancel
Save