Browse Source

Add an abstract base class for all file sets

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270934 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
d20cd4d2dd
1 changed files with 42 additions and 0 deletions
  1. +42
    -0
      proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractFileSet.java

+ 42
- 0
proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractFileSet.java View File

@@ -0,0 +1,42 @@
/*
* 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;

/**
* An abstract base class for all FileSets.
* FileSets represent a pattern anchored by a root.
*
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @version $Revision$ $Date$
*/
public class AbstractFileSet
extends PatternSet
{
private boolean m_defaultExcludes = true;

/**
* Add the default excludes to FileSet.
*/
public final void setDefaultExcludes( final boolean defaultExcludes )
{
m_defaultExcludes = defaultExcludes;
}

public final boolean includeDefaultExcludes()
{
return m_defaultExcludes;
}

/**
* Merge specified PatternSet into this patternSet.
*/
public final void addPatternSet( final PatternSet set )
{
append( set );
}
}

Loading…
Cancel
Save