donaldp 02/02/14 02:34:25
Added: proposal/myrmidon/src/java/org/apache/myrmidon/framework
AbstractMatchingTask.java
Log:
Add an abstract task that will eventually take over the role of the original
Matching task
Revision Changes Path
1.1
jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractMatchingTask.java
Index: AbstractMatchingTask.java
===================================================================
/*
* 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.myrmidon.framework;
import org.apache.myrmidon.api.AbstractTask;
import org.apache.tools.ant.types.FileSet;
/**
* An abstract base class for tasks that wish to operate on
* a set of files. This class is based on the ant1.x MatchingTask and
* should fullfill similar requirements.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/02/14 10:34:25 $
*/
public abstract class AbstractMatchingTask
extends AbstractTask
{
private FileSet m_fileset = new FileSet();
/**
* The attribute that contains a list of itesm to be included.
*/
public void setIncludes( final String includes )
{
m_fileset.setIncludes( includes );
}
/**
* The attribute that contains a list of items to be excluded.
*/
public void setExcludes( final String excludes )
{
m_fileset.setExcludes( excludes );
}
/**
* Set this to true to use the defaul exclude patterns.
*/
public void setDefaultexcludes( final boolean useDefaultExcludes )
{
m_fileset.setDefaultExcludes( useDefaultExcludes );
}
public void addInclude( final Pattern pattern )
{
m_fileset.addInclude( pattern );
}
public void addExclude( final Pattern pattern )
{
m_fileset.addExclude( pattern );
}
public void addPatternSet( final PatternSet set )
{
m_fileset.addPatternSet( set );
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>