1 | void setDefaultexcludes(boolean useDefaultExcludes) {↵ | | 1 | void setCaseSensitive(boolean caseSensitive) {↵
|
2 | if (isReference()) {↵ | | 2 | if (isReference()) {↵
|
3 | throw tooManyAttributes();↵ | | 3 | throw tooManyAttributes();↵
|
4 | }↵ | | 4 | }↵
|
5 | this.useDefaultExcludes = useDefaultExcludes;↵ | | 5 | this.caseSensitive = caseSensitive;↵
|
6 | directoryScanner = null;↵ | | 6 | directoryScanner = null;↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * Whether default exclusions should be used or not.↵ | | 9 | * Find out if the fileset is case sensitive.↵
|
| | | 10 | *↵
|
10 | * @return the default exclusions valu↵ | | 11 | * @return <code>boolean</code> indicating whether the fileset is↵
|
11 | e.↵ | | 12 | * case sensitive.↵
|
| | | 13 | *↵
|
12 | * @since Ant 1.6.3↵ | | 14 | * @since Ant 1.7↵
|
13 | */↵ | | 15 | */↵
|
14 | public synchronized boolean getDefaultexcludes() {↵ | | 16 | public synchronized boolean isCaseSensitive() {↵
|
15 | return (isReference())↵ | | 17 | return (isReference())↵
|
16 | ? getRef(getProject()).getDefaultexcludes() : useDefaultExcludes;↵ | | 18 | ? getRef(getProject()).isCaseSensitive() : caseSensitive;↵
|
17 | }↵ | | 19 | }↵
|
|
18 | /**↵ | | 20 | /**↵
|
19 | * Sets case sensitivity of the file system.↵ | | 21 | * Sets ↵
|
20 | *↵ | | |
|
21 | * @param caseSensitive <code>boolean</code>↵ | | 22 | whether or not symbolic links should be followed.↵
|
| | | 23 | *↵
|
22 | .↵ | | 24 | * @param followSymlinks whether or not symbolic links should be followed.↵
|
23 | */↵ | | 25 | */↵
|
24 | public synchronized void setCaseSensitive(boolean caseSensitive) {↵ | | 26 | public synchronized void setFollowSymlinks(boolean followSymlinks) {↵
|
25 | if (isReference()) {↵ | | 27 | if (isReference()) {↵
|
26 | throw tooManyAttributes();↵ | | 28 | throw tooManyAttributes();↵
|
27 | }↵ | | 29 | }↵
|
28 | this.caseSensitive = caseSensitive;↵ | | 30 | this.followSymlinks = followSymlinks;↵
|
29 | directoryScanner = null;↵ | | 31 | directoryScanner = null;↵
|
30 | }↵ | | 32 | }↵
|
|
31 | /**↵ | | 33 | /**↵
|
32 | * Find out if the fileset is case sensitive.↵ | | 34 | * Find out if the fileset wants to follow symbolic links.↵
|
33 | *↵ | | 35 | *↵
|
34 | * @return <code>boolean</code> indicating whether the fileset is↵ | | 36 | * @return <code>boolean</code> indicating whether ↵
|
35 | * case sensitive↵ | | 37 | symbolic links↵
|
36 | .↵ | | 38 | * should be followed.↵
|
37 | *↵ | | 39 | *↵
|
38 | * @since Ant 1.7↵ | | 40 | * @since Ant 1.6↵
|
39 | */↵ | | 41 | */↵
|
40 | public synchronized boolean isCaseSensitive() {↵ | | 42 | public synchronized boolean isFollowSymlinks() {↵
|
41 | return (isReference())↵ | | 43 | return (isReference())↵
|
42 | ? getRef(getProject()).isCaseSensitive() : caseSensitive;↵ | | 44 | ? getRef(getProject()).isFollowSymlinks() : followSymlinks;↵
|
43 | | | 45 |
|