From d20cd4d2ddc39edb1c3eb1502f58bfe9c8ea67fb Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sun, 27 Jan 2002 09:36:48 +0000 Subject: [PATCH] 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 --- .../myrmidon/framework/AbstractFileSet.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractFileSet.java diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractFileSet.java b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractFileSet.java new file mode 100644 index 000000000..cf99bf0ac --- /dev/null +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractFileSet.java @@ -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 Peter Donald + * @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 ); + } +}