Commit 3450e84f authored by Bill Lynch's avatar Bill Lynch Committed by bill

Minor fix


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1106 b35dd754-fafc-0310-a699-88a17e54d16e
parent ab2a5765
......@@ -84,24 +84,26 @@ public class SubDirInfoTask extends Task {
StringBuffer buf = new StringBuffer();
String value = null;
String sep = "";
for (int i=0; i<subdirs.length; i++) {
File subdir = subdirs[i];
boolean add = false;
if (subdir.isDirectory()) {
if (getIfexists() != null) {
File file = new File(subdir, getIfexists());
if (file.exists()) {
if (subdirs != null) {
for (int i=0; i<subdirs.length; i++) {
File subdir = subdirs[i];
boolean add = false;
if (subdir.isDirectory()) {
if (getIfexists() != null) {
File file = new File(subdir, getIfexists());
if (file.exists()) {
add = true;
}
}
else {
add = true;
}
}
else {
add = true;
if (add && !subdir.getName().equals(except)) {
buf.append(sep).append(subdir.getName());
sep = getDelimiter();
}
}
if (add && !subdir.getName().equals(except)) {
buf.append(sep).append(subdir.getName());
sep = getDelimiter();
}
}
if (buf.length() > 0) {
value = buf.toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment