Skip to content

Commit 8c3253d

Browse files
authored
Merge pull request #2262 from adamretter/refactor/xmldb-prov
Improve the provenance of the XML:DB API dependency
2 parents e583a53 + 3814547 commit 8c3253d

File tree

9 files changed

+26
-5
lines changed

9 files changed

+26
-5
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<classpathentry kind="lib" path="lib/core/log4j-jul-2.11.0.jar"/>
6363
<classpathentry kind="lib" path="lib/core/jargo-0.4.14.jar"/>
6464
<classpathentry kind="lib" path="lib/core/multilock-1.0-SNAPSHOT.jar"/>
65-
<classpathentry kind="lib" path="lib/core/xmldb.jar"/>
65+
<classpathentry kind="lib" path="lib/core/xmldb-api-1.1-patched.jar"/>
6666
<classpathentry kind="lib" path="lib/optional/commons-httpclient-3.1.jar"/>
6767
<classpathentry kind="lib" path="lib/core/commons-io-2.6.jar"/>
6868
<classpathentry kind="lib" path="lib/optional/jaxb-api-2.3.0.jar"/>

lib/core/xmldb-api-1.1-patched.jar

13.7 KB
Binary file not shown.
File renamed without changes.

lib/core/xmldb.jar

-9.27 KB
Binary file not shown.

nbproject/project.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
auxiliary.de-markiewb-netbeans-plugins-eclipse-formatter.eclipseFormatterActiveProfile=
1+
xiliary.de-markiewb-netbeans-plugins-eclipse-formatter.eclipseFormatterActiveProfile=
22
auxiliary.de-markiewb-netbeans-plugins-eclipse-formatter.eclipseFormatterEnabled=false
33
auxiliary.de-markiewb-netbeans-plugins-eclipse-formatter.eclipseFormatterLocation=
44
auxiliary.de-markiewb-netbeans-plugins-eclipse-formatter.enableFormatAsSaveAction=false
@@ -238,7 +238,7 @@ debug.test.classpath=${run.test.classpath}
238238
file.reference.existdb-favicon.jar=tools/jetty/lib/existdb-favicon.jar
239239
main.class=
240240
jar.archive.disabled=${jnlp.enabled}
241-
file.reference.xmldb.jar=lib/core/xmldb.jar
241+
file.reference.xmldb-api-1.1-patched.jar=lib/core/xmldb-api-1.1-patched.jar
242242
file.reference.jing-20151127.jar=lib/optional/jing-20151127.jar
243243
file.reference.xml-apis-1.4.01.jar=lib/endorsed/xml-apis-1.4.01.jar
244244
file.reference.jline-0.9.94.jar=lib/core/jline-0.9.94.jar
@@ -292,7 +292,7 @@ javac.classpath=\
292292
${file.reference.slf4j-api-1.7.25.jar}:\
293293
${file.reference.quartz-2.3.0.jar}:\
294294
${file.reference.ws-commons-util-1.0.2.jar}:\
295-
${file.reference.xmldb.jar}:\
295+
${file.reference.xmldb-api-1.1-patched.jar}:\
296296
${file.reference.xmlrpc-client-3.1.3.jar}:\
297297
${file.reference.xmlrpc-common-3.1.3.jar}:\
298298
${file.reference.xmlrpc-server-3.1.3.jar}:\

src/org/exist/start/start.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ lib/core/slf4j-api-%latest%.jar always
5858
lib/core/pkg-java-fork.jar always
5959
lib/core/quartz-%latest%.jar always
6060
lib/core/ws-commons-util-%latest%.jar always
61-
lib/core/xmldb.jar always
61+
lib/core/xmldb-api-%latest%.jar always
6262
lib/core/xmlrpc-client-%latest%.jar always
6363
lib/core/xmlrpc-common-%latest%.jar always
6464
lib/core/xmlrpc-server-%latest%.jar always

src/org/exist/xmldb/LocalResourceSet.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ public void addResource(final Resource resource) throws XMLDBException {
8787
resources.add(resource);
8888
}
8989

90+
@Override
91+
public void addAll(final ResourceSet resourceSet) throws XMLDBException {
92+
for (long i = 0; i < resourceSet.getSize(); i++) {
93+
addResource(resourceSet.getResource(i));
94+
}
95+
}
96+
9097
@Override
9198
public void clear() throws XMLDBException {
9299
//cleanup any binary values

src/org/exist/xmldb/MapResourceSet.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ public void addResource(final Resource resource) throws XMLDBException {
7979
resourcesVector.add(resource);
8080
}
8181

82+
@Override
83+
public void addAll(final ResourceSet resourceSet) throws XMLDBException {
84+
for (long i = 0; i < resourceSet.getSize(); i++) {
85+
addResource(resourceSet.getResource(i));
86+
}
87+
}
88+
8289
/**
8390
* Make the container empty
8491
*

src/org/exist/xmldb/RemoteResourceSet.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ public void addResource(final Resource resource) {
7474
resources.add(resource);
7575
}
7676

77+
@Override
78+
public void addAll(final ResourceSet resourceSet) throws XMLDBException {
79+
for (long i = 0; i < resourceSet.getSize(); i++) {
80+
addResource(resourceSet.getResource(i));
81+
}
82+
}
83+
7784
@Override
7885
public void clear() throws XMLDBException {
7986
if (handle < 0) {

0 commit comments

Comments
 (0)