Java Doc for Files.java in  » Build » ANT » org » apache » tools » ant » types » resources » 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.resources 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tools.ant.types.selectors.AbstractSelectorContainer
   org.apache.tools.ant.types.resources.Files

Files
public class Files extends AbstractSelectorContainer implements Cloneable,ResourceCollection(Code)
ResourceCollection implementation; like AbstractFileSet with absolute paths.
since:
   Ant 1.7



Constructor Summary
public  Files()
     Construct a new Files collection.
protected  Files(Files f)
     Construct a new Files collection, shallowly cloned from the specified Files.

Method Summary
public synchronized  voidappendExcludes(String[] excludes)
     Append excludes to the current list of include patterns.
public synchronized  voidappendIncludes(String[] includes)
     Append includes to the current list of include patterns.
public synchronized  voidappendSelector(FileSelector selector)
     Add a new selector into this container.
public synchronized  Objectclone()
     Create 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()
     Create a nested patternset.
public synchronized  booleangetDefaultexcludes()
     Get whether default exclusions should be used or not.
protected  FilesgetRef()
     Perform the check for circular references and return the referenced Files collection.
public synchronized  booleanhasPatterns()
     Find out whether this Files collection has patterns.
public synchronized  booleanisCaseSensitive()
     Find out if this Files collection is case-sensitive.
public  booleanisFilesystemOnly()
     Always returns true.
public synchronized  booleanisFollowSymlinks()
     Find out whether symbolic links should be followed.
public synchronized  Iteratoriterator()
     Fulfill the ResourceCollection contract.
public  String[]mergeExcludes(Project p)
     Get the merged exclude patterns for this Files collection.
Parameters:
  p - Project instance.
public  String[]mergeIncludes(Project p)
     Get the merged include patterns for this Files collection.
Parameters:
  p - Project instance.
public synchronized  PatternSetmergePatterns(Project p)
     Get the merged patterns for this Files collection.
Parameters:
  p - Project instance.
public synchronized  voidsetCaseSensitive(boolean caseSensitive)
     Set case-sensitivity of the Files collection.
public synchronized  voidsetDefaultexcludes(boolean useDefaultExcludes)
     Set whether default exclusions should be used or not.
public synchronized  voidsetExcludes(String excludes)
     Append excludes to the current list of exclude patterns.
public synchronized  voidsetExcludesfile(File excl)
     Set the File containing the excludes patterns.
public synchronized  voidsetFollowSymlinks(boolean followSymlinks)
     Set whether or not symbolic links should be followed.
public synchronized  voidsetIncludes(String includes)
     Append includes to the current list of include patterns.
public synchronized  voidsetIncludesfile(File incl)
     Set the File containing the includes patterns.
public  voidsetRefid(Reference r)
     Make this instance in effect a reference to another instance.
public synchronized  intsize()
     Fulfill the ResourceCollection contract.
public  StringtoString()
     Format this Files collection as a String.


Constructor Detail
Files
public Files()(Code)
Construct a new Files collection.



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




Method Detail
appendExcludes
public synchronized void appendExcludes(String[] excludes)(Code)
Append excludes to the current list of include patterns.
Parameters:
  excludes - array containing the exclude patterns.



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



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)
Create a deep clone of this instance, except for the nested selectors (the list of selectors is a shallow clone of this instance's list). a cloned Object.



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)
Create a nested patternset. PatternSet.



getDefaultexcludes
public synchronized boolean getDefaultexcludes()(Code)
Get whether default exclusions should be used or not. the defaultexclusions value.



getRef
protected Files getRef()(Code)
Perform the check for circular references and return the referenced Files collection. FileCollection.



hasPatterns
public synchronized boolean hasPatterns()(Code)
Find out whether this Files collection has patterns. whether any patterns are in this container.



isCaseSensitive
public synchronized boolean isCaseSensitive()(Code)
Find out if this Files collection is case-sensitive. boolean indicating whether the Filescollection is case-sensitive.



isFilesystemOnly
public boolean isFilesystemOnly()(Code)
Always returns true. true indicating that all elements of a Files collectionwill be FileResources.



isFollowSymlinks
public synchronized boolean isFollowSymlinks()(Code)
Find out whether symbolic links should be followed. boolean indicating whether symbolic linksshould be followed.



iterator
public synchronized Iterator iterator()(Code)
Fulfill the ResourceCollection contract. an Iterator of Resources.



mergeExcludes
public String[] mergeExcludes(Project p)(Code)
Get the merged exclude patterns for this Files collection.
Parameters:
  p - Project instance. the exclude patterns of the default pattern set and allnested patternsets.



mergeIncludes
public String[] mergeIncludes(Project p)(Code)
Get the merged include patterns for this Files collection.
Parameters:
  p - Project instance. the include patterns of the default pattern set and allnested patternsets.



mergePatterns
public synchronized PatternSet mergePatterns(Project p)(Code)
Get the merged patterns for this Files collection.
Parameters:
  p - Project instance. the default patternset merged with the additional setsin a new PatternSet instance.



setCaseSensitive
public synchronized void setCaseSensitive(boolean caseSensitive)(Code)
Set case-sensitivity of the Files collection.
Parameters:
  caseSensitive - boolean.



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



setExcludes
public synchronized void setExcludes(String excludes)(Code)
Append 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)
Set the File containing the excludes patterns.
Parameters:
  excl - File instance.
throws:
  BuildException - if there is a problem.



setFollowSymlinks
public synchronized void setFollowSymlinks(boolean followSymlinks)(Code)
Set 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)
Append 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)
Set the File containing the includes patterns.
Parameters:
  incl - File instance.
throws:
  BuildException - if there is a problem.



setRefid
public void setRefid(Reference r) throws BuildException(Code)
Make 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 - if there is a problem.



size
public synchronized int size()(Code)
Fulfill the ResourceCollection contract. number of elements as int.



toString
public String toString()(Code)
Format this Files collection as a String. a descriptive String.



Methods inherited from org.apache.tools.ant.types.selectors.AbstractSelectorContainer
public void add(FileSelector selector)(Code)(Java Doc)
public void addAnd(AndSelector selector)(Code)(Java Doc)
public void addContains(ContainsSelector selector)(Code)(Java Doc)
public void addContainsRegexp(ContainsRegexpSelector selector)(Code)(Java Doc)
public void addCustom(ExtendSelector selector)(Code)(Java Doc)
public void addDate(DateSelector selector)(Code)(Java Doc)
public void addDepend(DependSelector selector)(Code)(Java Doc)
public void addDepth(DepthSelector selector)(Code)(Java Doc)
public void addDifferent(DifferentSelector selector)(Code)(Java Doc)
public void addFilename(FilenameSelector selector)(Code)(Java Doc)
public void addMajority(MajoritySelector selector)(Code)(Java Doc)
public void addModified(ModifiedSelector selector)(Code)(Java Doc)
public void addNone(NoneSelector selector)(Code)(Java Doc)
public void addNot(NotSelector selector)(Code)(Java Doc)
public void addOr(OrSelector selector)(Code)(Java Doc)
public void addPresent(PresentSelector selector)(Code)(Java Doc)
public void addSelector(SelectSelector selector)(Code)(Java Doc)
public void addSize(SizeSelector selector)(Code)(Java Doc)
public void addType(TypeSelector selector)(Code)(Java Doc)
public void appendSelector(FileSelector selector)(Code)(Java Doc)
public FileSelector[] getSelectors(Project p)(Code)(Java Doc)
public boolean hasSelectors()(Code)(Java Doc)
public int selectorCount()(Code)(Java Doc)
public Enumeration selectorElements()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void validate()(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.