Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
ab480a24
Commit
ab480a24
authored
Aug 04, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #268 from guusdk/OF-930
OF-930 & OF-935 Fixes
parents
9c8d8887
fdd5bcfe
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
157 additions
and
120 deletions
+157
-120
build.xml
build/build.xml
+146
-118
overlay.html
documentation/docs/overlay.html
+1
-1
SubDirInfoTask.java
src/tools/anttask/org/jivesoftware/ant/SubDirInfoTask.java
+10
-1
No files found.
build/build.xml
View file @
ab480a24
This diff is collapsed.
Click to expand it.
documentation/docs/overlay.html
View file @
ab480a24
...
...
@@ -2,7 +2,7 @@
<html>
<head>
<title>
Openfire:
Database Install
ation Guide
</title>
<title>
Openfire:
Customiz
ation Guide
</title>
<link
href=
"style.css"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<body>
...
...
src/tools/anttask/org/jivesoftware/ant/SubDirInfoTask.java
View file @
ab480a24
...
...
@@ -25,6 +25,9 @@ import org.apache.tools.ant.BuildException;
import
org.apache.tools.ant.Project
;
import
java.io.File
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.List
;
/**
* A simple ant task to return the sub directories of a given dir as a comma delimited string.
...
...
@@ -89,6 +92,12 @@ public class SubDirInfoTask extends Task {
public
void
execute
()
throws
BuildException
{
// Get the siblings of the given directory, add sub directory names to the property
List
excepts
;
if
(
except
!=
null
)
{
excepts
=
Arrays
.
asList
(
except
.
split
(
getDelimiter
()
)
);
}
else
{
excepts
=
Collections
.
EMPTY_LIST
;
}
File
[]
subdirs
=
dir
.
listFiles
();
StringBuffer
buf
=
new
StringBuffer
();
String
value
=
null
;
...
...
@@ -108,7 +117,7 @@ public class SubDirInfoTask extends Task {
add
=
true
;
}
}
if
(
add
&&
!
subdir
.
getName
().
equals
(
except
))
{
if
(
add
&&
!
excepts
.
contains
(
subdir
.
getName
()
))
{
buf
.
append
(
sep
).
append
(
subdir
.
getName
());
sep
=
getDelimiter
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment