Browse Source

Extend the framework fileset

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270936 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
7c59613e55
2 changed files with 2 additions and 150 deletions
  1. +1
    -75
      proposal/myrmidon/src/main/org/apache/tools/ant/types/FileSet.java
  2. +1
    -75
      proposal/myrmidon/src/todo/org/apache/tools/ant/types/FileSet.java

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

@@ -25,10 +25,8 @@ import org.apache.myrmidon.framework.PatternSet;
* @author <a href="mailto:umagesh@rediffmail.com">Magesh Umasankar</a> * @author <a href="mailto:umagesh@rediffmail.com">Magesh Umasankar</a>
*/ */
public class FileSet public class FileSet
extends org.apache.myrmidon.framework.FileSet
{ {
private File m_dir;
private PatternSet m_patternSet = new PatternSet();
private boolean m_useDefaultExcludes = true;
private boolean m_isCaseSensitive = true; private boolean m_isCaseSensitive = true;


/** /**
@@ -39,80 +37,8 @@ public class FileSet
m_isCaseSensitive = isCaseSensitive; m_isCaseSensitive = isCaseSensitive;
} }


/**
* Sets whether default exclusions should be used or not.
*/
public void setDefaultexcludes( final boolean useDefaultExcludes )
{
m_useDefaultExcludes = useDefaultExcludes;
}

public void setDir( final File dir )
throws TaskException
{
m_dir = dir;
}

/**
* Sets the set of exclude patterns. Patterns may be separated by a comma or
* a space.
*
* @param excludes the string containing the exclude patterns
*/
public void setExcludes( final String excludes )
{
m_patternSet.setExcludes( excludes );
}

/**
* add a name entry on the exclude list
*/
public void addExclude( final Pattern pattern )
{
m_patternSet.addExclude( pattern );
}

/**
* add a name entry on the include list
*/
public void addInclude( final Pattern pattern )
{
m_patternSet.addInclude( pattern );
}

public void addPatternSet( final PatternSet set )
{
m_patternSet.append( set );
}

/**
* Sets the set of include patterns. Patterns may be separated by a comma or
* a space.
*
* @param includes the string containing the include patterns
*/
public void setIncludes( final String includes )
{
m_patternSet.setIncludes( includes );
}

public final PatternSet getPatternSet()
{
return m_patternSet;
}

public boolean isCaseSensitive() public boolean isCaseSensitive()
{ {
return m_isCaseSensitive; return m_isCaseSensitive;
} }

public boolean useDefaultExcludes()
{
return m_useDefaultExcludes;
}

public File getDir()
{
return m_dir;
}
} }

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

@@ -25,10 +25,8 @@ import org.apache.myrmidon.framework.PatternSet;
* @author <a href="mailto:umagesh@rediffmail.com">Magesh Umasankar</a> * @author <a href="mailto:umagesh@rediffmail.com">Magesh Umasankar</a>
*/ */
public class FileSet public class FileSet
extends org.apache.myrmidon.framework.FileSet
{ {
private File m_dir;
private PatternSet m_patternSet = new PatternSet();
private boolean m_useDefaultExcludes = true;
private boolean m_isCaseSensitive = true; private boolean m_isCaseSensitive = true;


/** /**
@@ -39,80 +37,8 @@ public class FileSet
m_isCaseSensitive = isCaseSensitive; m_isCaseSensitive = isCaseSensitive;
} }


/**
* Sets whether default exclusions should be used or not.
*/
public void setDefaultexcludes( final boolean useDefaultExcludes )
{
m_useDefaultExcludes = useDefaultExcludes;
}

public void setDir( final File dir )
throws TaskException
{
m_dir = dir;
}

/**
* Sets the set of exclude patterns. Patterns may be separated by a comma or
* a space.
*
* @param excludes the string containing the exclude patterns
*/
public void setExcludes( final String excludes )
{
m_patternSet.setExcludes( excludes );
}

/**
* add a name entry on the exclude list
*/
public void addExclude( final Pattern pattern )
{
m_patternSet.addExclude( pattern );
}

/**
* add a name entry on the include list
*/
public void addInclude( final Pattern pattern )
{
m_patternSet.addInclude( pattern );
}

public void addPatternSet( final PatternSet set )
{
m_patternSet.append( set );
}

/**
* Sets the set of include patterns. Patterns may be separated by a comma or
* a space.
*
* @param includes the string containing the include patterns
*/
public void setIncludes( final String includes )
{
m_patternSet.setIncludes( includes );
}

public final PatternSet getPatternSet()
{
return m_patternSet;
}

public boolean isCaseSensitive() public boolean isCaseSensitive()
{ {
return m_isCaseSensitive; return m_isCaseSensitive;
} }

public boolean useDefaultExcludes()
{
return m_useDefaultExcludes;
}

public File getDir()
{
return m_dir;
}
} }

Loading…
Cancel
Save