Java Doc for AbstractFileSet.java in  » Build » ANT » org » apache » tools » ant » types » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant.types 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tools.ant.types.DataType
   org.apache.tools.ant.types.AbstractFileSet

All known Subclasses:   org.apache.tools.ant.types.FileSet,  org.apache.tools.ant.types.DirSet,
AbstractFileSet
abstract public class AbstractFileSet extends DataType implements Cloneable,SelectorContainer(Code)
Class that holds an implicit patternset and supports nested patternsets and creates a DirectoryScanner using these patterns.

Common base class for DirSet and FileSet.




Constructor Summary
public  AbstractFileSet()
     Construct a new AbstractFileSet.
protected  AbstractFileSet(AbstractFileSet fileset)
     Construct a new AbstractFileSet, shallowly cloned from the specified AbstractFileSet.

Method Summary
public  voidadd(FileSelector selector)
     Add an arbitary selector.
public  voidaddAnd(AndSelector selector)
     Add an "And" selector entry on the selector list.
public  voidaddContains(ContainsSelector selector)
     Add a contains selector entry on the selector list.
public  voidaddContainsRegexp(ContainsRegexpSelector selector)
     Add a regular expression selector entry on the selector list.
public  voidaddCustom(ExtendSelector selector)
     Add an extended selector entry on the selector list.
public  voidaddDate(DateSelector selector)
     Add a selector date entry on the selector list.
public  voidaddDepend(DependSelector selector)
     Add a depends selector entry on the selector list.
public  voidaddDepth(DepthSelector selector)
     Add a depth selector entry on the selector list.
public  voidaddDifferent(DifferentSelector selector)
     Add a DifferentSelector entry on the selector list.
public  voidaddFilename(FilenameSelector selector)
     Add a selector filename entry on the selector list.
public  voidaddMajority(MajoritySelector selector)
     Add a majority selector entry on the selector list.
public  voidaddModified(ModifiedSelector selector)
     Add the modified selector.
public  voidaddNone(NoneSelector selector)
     Add a "None" selector entry on the selector list.
public  voidaddNot(NotSelector selector)
     Add a "Not" selector entry on the selector list.
public  voidaddOr(OrSelector selector)
     Add an "Or" selector entry on the selector list.
public  voidaddPresent(PresentSelector selector)
     Add a present selector entry on the selector list.
public  voidaddSelector(SelectSelector selector)
     Add a "Select" selector entry on the selector list.
public  voidaddSize(SizeSelector selector)
     Add a selector size entry on the selector list.
public  voidaddType(TypeSelector selector)
     Add a selector type entry on the selector list.
public synchronized  voidappendExcludes(String[] excludes)
     Appends excludes to the current list of include patterns.
public synchronized  voidappendIncludes(String[] includes)
     Appends includes to the current list of include patterns.
public synchronized  voidappendSelector(FileSelector selector)
     Add a new selector into this container.
public synchronized  Objectclone()
     Creates a deep clone of this instance, except for the nested selectors (the list of selectors is a shallow clone of this instance's list).
public synchronized  PatternSet.NameEntrycreateExclude()
     Add a name entry to the exclude list.
public synchronized  PatternSet.NameEntrycreateExcludesFile()
     Add a name entry to the excludes files list.
public synchronized  PatternSet.NameEntrycreateInclude()
     Add a name entry to the include list.
public synchronized  PatternSet.NameEntrycreateIncludesFile()
     Add a name entry to the include files list.
public synchronized  PatternSetcreatePatternSet()
     Creates a nested patternset.
public synchronized  booleangetDefaultexcludes()
     Whether default exclusions should be used or not.
public  FilegetDir()
     Retrieves the base-directory for this instance.
public synchronized  FilegetDir(Project p)
     Retrieves the base-directory for this instance.
Parameters:
  p - the Project against which thereference is resolved, if set.
public  DirectoryScannergetDirectoryScanner()
     Returns the directory scanner needed to access the files to process.
public  DirectoryScannergetDirectoryScanner(Project p)
     Returns the directory scanner needed to access the files to process.
Parameters:
  p - the Project against which the DirectoryScanner should be configured.
protected  AbstractFileSetgetRef(Project p)
     Performs the check for circular references and returns the referenced FileSet.
public synchronized  FileSelector[]getSelectors(Project p)
     Returns the set of selectors as an array.
public synchronized  booleanhasPatterns()
     Indicates whether there are any patterns here.
public synchronized  booleanhasSelectors()
     Indicates whether there are any selectors here.
public synchronized  booleanisCaseSensitive()
     Find out if the fileset is case sensitive.
public synchronized  booleanisFollowSymlinks()
     Find out if the fileset wants to follow symbolic links.
public  String[]mergeExcludes(Project p)
     Get the merged exclude patterns for this AbstractFileSet.
Parameters:
  p - the project to use.
public  String[]mergeIncludes(Project p)
     Get the merged include patterns for this AbstractFileSet.
Parameters:
  p - the project to use.
public synchronized  PatternSetmergePatterns(Project p)
     Get the merged patterns for this AbstractFileSet.
Parameters:
  p - the project to use.
public synchronized  intselectorCount()
     Gives the count of the number of selectors in this container.
public synchronized  EnumerationselectorElements()
     Returns an enumerator for accessing the set of selectors.
public synchronized  voidsetCaseSensitive(boolean caseSensitive)
     Sets case sensitivity of the file system.
public synchronized  voidsetDefaultexcludes(boolean useDefaultExcludes)
     Sets whether default exclusions should be used or not.
public synchronized  voidsetDir(File dir)
     Sets the base-directory for this instance.
public synchronized  voidsetExcludes(String excludes)
     Appends excludes to the current list of exclude patterns.
public synchronized  voidsetExcludesfile(File excl)
     Sets the File containing the excludes patterns.
public synchronized  voidsetFile(File file)
     Creates a single file fileset.
public synchronized  voidsetFollowSymlinks(boolean followSymlinks)
     Sets whether or not symbolic links should be followed.
public synchronized  voidsetIncludes(String includes)
     Appends includes to the current list of include patterns.
public synchronized  voidsetIncludesfile(File incl)
     Sets the File containing the includes patterns.
public  voidsetRefid(Reference r)
     Makes this instance in effect a reference to another instance.
public  voidsetupDirectoryScanner(FileScanner ds)
     Set up the specified directory scanner against this AbstractFileSet's Project.
public synchronized  voidsetupDirectoryScanner(FileScanner ds, Project p)
     Set up the specified directory scanner against the specified project.
public  StringtoString()
     Returns included files as a list of semicolon-separated filenames.


Constructor Detail
AbstractFileSet
public AbstractFileSet()(Code)
Construct a new AbstractFileSet.



AbstractFileSet
protected AbstractFileSet(AbstractFileSet fileset)(Code)
Construct a new AbstractFileSet, shallowly cloned from the specified AbstractFileSet.
Parameters:
  fileset - the AbstractFileSet to use as a template.




Method Detail
add
public void add(FileSelector selector)(Code)
Add an arbitary selector.
Parameters:
  selector - the FileSelector to add.
since:
   Ant 1.6



addAnd
public void addAnd(AndSelector selector)(Code)
Add an "And" selector entry on the selector list.
Parameters:
  selector - the AndSelector to add.



addContains
public void addContains(ContainsSelector selector)(Code)
Add a contains selector entry on the selector list.
Parameters:
  selector - the ContainsSelector to add.



addContainsRegexp
public void addContainsRegexp(ContainsRegexpSelector selector)(Code)
Add a regular expression selector entry on the selector list.
Parameters:
  selector - the ContainsRegexpSelector to add.



addCustom
public void addCustom(ExtendSelector selector)(Code)
Add an extended selector entry on the selector list.
Parameters:
  selector - the ExtendSelector to add.



addDate
public void addDate(DateSelector selector)(Code)
Add a selector date entry on the selector list.
Parameters:
  selector - the DateSelector to add.



addDepend
public void addDepend(DependSelector selector)(Code)
Add a depends selector entry on the selector list.
Parameters:
  selector - the DependSelector to add.



addDepth
public void addDepth(DepthSelector selector)(Code)
Add a depth selector entry on the selector list.
Parameters:
  selector - the DepthSelector to add.



addDifferent
public void addDifferent(DifferentSelector selector)(Code)
Add a DifferentSelector entry on the selector list.
Parameters:
  selector - the DifferentSelector to add.



addFilename
public void addFilename(FilenameSelector selector)(Code)
Add a selector filename entry on the selector list.
Parameters:
  selector - the FilenameSelector to add.



addMajority
public void addMajority(MajoritySelector selector)(Code)
Add a majority selector entry on the selector list.
Parameters:
  selector - the MajoritySelector to add.



addModified
public void addModified(ModifiedSelector selector)(Code)
Add the modified selector.
Parameters:
  selector - the ModifiedSelector to add.
since:
   ant 1.6



addNone
public void addNone(NoneSelector selector)(Code)
Add a "None" selector entry on the selector list.
Parameters:
  selector - the NoneSelector to add.



addNot
public void addNot(NotSelector selector)(Code)
Add a "Not" selector entry on the selector list.
Parameters:
  selector - the NotSelector to add.



addOr
public void addOr(OrSelector selector)(Code)
Add an "Or" selector entry on the selector list.
Parameters:
  selector - the OrSelector to add.



addPresent
public void addPresent(PresentSelector selector)(Code)
Add a present selector entry on the selector list.
Parameters:
  selector - the PresentSelector to add.



addSelector
public void addSelector(SelectSelector selector)(Code)
Add a "Select" selector entry on the selector list.
Parameters:
  selector - the SelectSelector to add.



addSize
public void addSize(SizeSelector selector)(Code)
Add a selector size entry on the selector list.
Parameters:
  selector - the SizeSelector to add.



addType
public void addType(TypeSelector selector)(Code)
Add a selector type entry on the selector list.
Parameters:
  selector - the TypeSelector to add.



appendExcludes
public synchronized void appendExcludes(String[] excludes)(Code)
Appends excludes to the current list of include patterns.
Parameters:
  excludes - array containing the exclude patterns.
since:
   Ant 1.7



appendIncludes
public synchronized void appendIncludes(String[] includes)(Code)
Appends includes to the current list of include patterns.
Parameters:
  includes - array containing the include patterns.
since:
   Ant 1.7



appendSelector
public synchronized void appendSelector(FileSelector selector)(Code)
Add a new selector into this container.
Parameters:
  selector - the new FileSelector to add.



clone
public synchronized Object clone()(Code)
Creates a deep clone of this instance, except for the nested selectors (the list of selectors is a shallow clone of this instance's list). the cloned object
since:
   Ant 1.6



createExclude
public synchronized PatternSet.NameEntry createExclude()(Code)
Add a name entry to the exclude list. PatternSet.NameEntry.



createExcludesFile
public synchronized PatternSet.NameEntry createExcludesFile()(Code)
Add a name entry to the excludes files list. PatternSet.NameEntry.



createInclude
public synchronized PatternSet.NameEntry createInclude()(Code)
Add a name entry to the include list. PatternSet.NameEntry.



createIncludesFile
public synchronized PatternSet.NameEntry createIncludesFile()(Code)
Add a name entry to the include files list. PatternSet.NameEntry.



createPatternSet
public synchronized PatternSet createPatternSet()(Code)
Creates a nested patternset. PatternSet.



getDefaultexcludes
public synchronized boolean getDefaultexcludes()(Code)
Whether default exclusions should be used or not. the default exclusions value.
since:
   Ant 1.6.3



getDir
public File getDir()(Code)
Retrieves the base-directory for this instance. File.



getDir
public synchronized File getDir(Project p)(Code)
Retrieves the base-directory for this instance.
Parameters:
  p - the Project against which thereference is resolved, if set. File.



getDirectoryScanner
public DirectoryScanner getDirectoryScanner()(Code)
Returns the directory scanner needed to access the files to process. a DirectoryScanner instance.



getDirectoryScanner
public DirectoryScanner getDirectoryScanner(Project p)(Code)
Returns the directory scanner needed to access the files to process.
Parameters:
  p - the Project against which the DirectoryScanner should be configured. a DirectoryScanner instance.



getRef
protected AbstractFileSet getRef(Project p)(Code)
Performs the check for circular references and returns the referenced FileSet.
Parameters:
  p - the current project the referenced FileSet



getSelectors
public synchronized FileSelector[] getSelectors(Project p)(Code)
Returns the set of selectors as an array.
Parameters:
  p - the current project a FileSelector[] of the selectors in this container.



hasPatterns
public synchronized boolean hasPatterns()(Code)
Indicates whether there are any patterns here. whether any patterns are in this container.



hasSelectors
public synchronized boolean hasSelectors()(Code)
Indicates whether there are any selectors here. whether any selectors are in this container.



isCaseSensitive
public synchronized boolean isCaseSensitive()(Code)
Find out if the fileset is case sensitive. boolean indicating whether the fileset iscase sensitive.
since:
   Ant 1.7



isFollowSymlinks
public synchronized boolean isFollowSymlinks()(Code)
Find out if the fileset wants to follow symbolic links. boolean indicating whether symbolic linksshould be followed.
since:
   Ant 1.6



mergeExcludes
public String[] mergeExcludes(Project p)(Code)
Get the merged exclude patterns for this AbstractFileSet.
Parameters:
  p - the project to use. the exclude patterns of the default pattern set and allnested patternsets.
since:
   Ant 1.7



mergeIncludes
public String[] mergeIncludes(Project p)(Code)
Get the merged include patterns for this AbstractFileSet.
Parameters:
  p - the project to use. the include patterns of the default pattern set and allnested patternsets.
since:
   Ant 1.7



mergePatterns
public synchronized PatternSet mergePatterns(Project p)(Code)
Get the merged patterns for this AbstractFileSet.
Parameters:
  p - the project to use. the default patternset merged with the additional setsin a new PatternSet instance.
since:
   Ant 1.7



selectorCount
public synchronized int selectorCount()(Code)
Gives the count of the number of selectors in this container. the number of selectors in this container as an int.



selectorElements
public synchronized Enumeration selectorElements()(Code)
Returns an enumerator for accessing the set of selectors. an Enumeration of selectors.



setCaseSensitive
public synchronized void setCaseSensitive(boolean caseSensitive)(Code)
Sets case sensitivity of the file system.
Parameters:
  caseSensitive - boolean.



setDefaultexcludes
public synchronized void setDefaultexcludes(boolean useDefaultExcludes)(Code)
Sets whether default exclusions should be used or not.
Parameters:
  useDefaultExcludes - boolean.



setDir
public synchronized void setDir(File dir) throws BuildException(Code)
Sets the base-directory for this instance.
Parameters:
  dir - the directory's File instance.
throws:
  BuildException - on error



setExcludes
public synchronized void setExcludes(String excludes)(Code)
Appends excludes to the current list of exclude patterns.

Patterns may be separated by a comma or a space.


Parameters:
  excludes - the String containing the exclude patterns.



setExcludesfile
public synchronized void setExcludesfile(File excl) throws BuildException(Code)
Sets the File containing the excludes patterns.
Parameters:
  excl - File instance.
throws:
  BuildException - on error



setFile
public synchronized void setFile(File file)(Code)
Creates a single file fileset.
Parameters:
  file - the single File included in thisAbstractFileSet.



setFollowSymlinks
public synchronized void setFollowSymlinks(boolean followSymlinks)(Code)
Sets whether or not symbolic links should be followed.
Parameters:
  followSymlinks - whether or not symbolic links should be followed.



setIncludes
public synchronized void setIncludes(String includes)(Code)
Appends includes to the current list of include patterns.

Patterns may be separated by a comma or a space.


Parameters:
  includes - the String containing the include patterns.



setIncludesfile
public synchronized void setIncludesfile(File incl) throws BuildException(Code)
Sets the File containing the includes patterns.
Parameters:
  incl - File instance.
throws:
  BuildException - on error



setRefid
public void setRefid(Reference r) throws BuildException(Code)
Makes this instance in effect a reference to another instance.

You must not set another attribute or nest elements inside this element if you make it a reference.


Parameters:
  r - the Reference to use.
throws:
  BuildException - on error



setupDirectoryScanner
public void setupDirectoryScanner(FileScanner ds)(Code)
Set up the specified directory scanner against this AbstractFileSet's Project.
Parameters:
  ds - a FileScanner instance.



setupDirectoryScanner
public synchronized void setupDirectoryScanner(FileScanner ds, Project p)(Code)
Set up the specified directory scanner against the specified project.
Parameters:
  ds - a FileScanner instance.
Parameters:
  p - an Ant Project instance.



toString
public String toString()(Code)
Returns included files as a list of semicolon-separated filenames. a String of included filenames.



Fields inherited from org.apache.tools.ant.types.DataType
protected boolean checked(Code)(Java Doc)
protected Reference ref(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.types.DataType
protected void checkAttributesAllowed()(Code)(Java Doc)
protected void checkChildrenAllowed()(Code)(Java Doc)
protected BuildException circularReference()(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
protected void dieOnCircularReference()(Code)(Java Doc)
protected void dieOnCircularReference(Project p)(Code)(Java Doc)
protected void dieOnCircularReference(Stack stack, Project project) throws BuildException(Code)(Java Doc)
protected Object getCheckedRef()(Code)(Java Doc)
protected Object getCheckedRef(Project p)(Code)(Java Doc)
protected Object getCheckedRef(Class requiredClass, String dataTypeName)(Code)(Java Doc)
protected Object getCheckedRef(Class requiredClass, String dataTypeName, Project project)(Code)(Java Doc)
protected String getDataTypeName()(Code)(Java Doc)
public Reference getRefid()(Code)(Java Doc)
public static void invokeCircularReferenceCheck(DataType dt, Stack stk, Project p)(Code)(Java Doc)
protected boolean isChecked()(Code)(Java Doc)
public boolean isReference()(Code)(Java Doc)
protected BuildException noChildrenAllowed()(Code)(Java Doc)
protected void setChecked(boolean checked)(Code)(Java Doc)
public void setRefid(Reference ref)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected BuildException tooManyAttributes()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.