diff options
author | Gintas Grigelionis <gintas@apache.org> | 2018-02-28 20:26:50 +0100 |
---|---|---|
committer | Gintas Grigelionis <gintas@apache.org> | 2018-02-28 20:26:50 +0100 |
commit | 2973ddaddd7fa9e6b51fe47225b52ae99a7663ca (patch) | |
tree | bd19b5a804cfa182c53e162645f3389148dff2c2 /manual/tutorial-tasks-filesets-properties.html | |
parent | c7fcbef13ae9f5003d514e07d52739ec88f57f26 (diff) | |
download | ant-2973ddaddd7fa9e6b51fe47225b52ae99a7663ca.tar.gz |
Adjust formatting
Diffstat (limited to 'manual/tutorial-tasks-filesets-properties.html')
-rw-r--r-- | manual/tutorial-tasks-filesets-properties.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manual/tutorial-tasks-filesets-properties.html b/manual/tutorial-tasks-filesets-properties.html index 88f46d951..ac9a80b88 100644 --- a/manual/tutorial-tasks-filesets-properties.html +++ b/manual/tutorial-tasks-filesets-properties.html @@ -477,7 +477,7 @@ reuse later (<strong>*3</strong>). for (File includedFile : path.list()) { String filename = includedFile.replace('\\','/'); filename = filename.substring(filename.lastIndexOf("/")+1); - if (file.equals(filename) && <b>!foundFiles.contains(includedFile)</b>) { // 1 + if (file.equals(filename) && <b>!foundFiles.contains(includedFile)</b>) { // 1 foundFiles.add(includedFile); } } @@ -485,16 +485,16 @@ reuse later (<strong>*3</strong>). // create the return value (list/single) String rv = null; - if (!foundFiles.isEmpty()) { // 2 + if (!foundFiles.isEmpty()) { // 2 if (delimiter == null) { // only the first rv = foundFiles.get(0); } else { // create list StringBuilder list = new StringBuilder(); - for (String file : foundFiles) { // 3 + for (String file : foundFiles) { // 3 list.append(it.next()); - if (<b>list.length() > 0</b>) list.append(delimiter); // 4 + if (<b>list.length() > 0</b>) list.append(delimiter); // 4 } rv = list.toString(); } |