Skip to content

Commit 1924c3f

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 6a8bb0d + 73aaa1b commit 1924c3f

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

tika-core/src/main/java/org/apache/tika/config/TikaConfig.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -846,16 +846,18 @@ ConfigurableThreadPoolExecutor createDefault(MimeTypes mimeTypes, ServiceLoader
846846
@Override
847847
ConfigurableThreadPoolExecutor decorate(ConfigurableThreadPoolExecutor created, Element element)
848848
throws IOException, TikaException {
849-
Element coreThreadElement = getChild(element, "core-threads");
850-
if(coreThreadElement != null)
851-
{
852-
created.setCorePoolSize(Integer.parseInt(getText(coreThreadElement)));
853-
}
849+
854850
Element maxThreadElement = getChild(element, "max-threads");
855851
if(maxThreadElement != null)
856852
{
857853
created.setMaximumPoolSize(Integer.parseInt(getText(maxThreadElement)));
858854
}
855+
856+
Element coreThreadElement = getChild(element, "core-threads");
857+
if(coreThreadElement != null)
858+
{
859+
created.setCorePoolSize(Integer.parseInt(getText(coreThreadElement)));
860+
}
859861
return created;
860862
}
861863

tika-core/src/main/java/org/apache/tika/parser/external/ExternalParser.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,13 @@ private void parse(
160160
File output = null;
161161

162162
// Build our command
163-
String[] cmd = command[0].split(" ");
163+
String[] cmd;
164+
if (command.length == 1) {
165+
cmd = command[0].split(" ");
166+
} else {
167+
cmd = new String[command.length];
168+
System.arraycopy(command, 0, cmd, 0, command.length);
169+
}
164170
for(int i=0; i<cmd.length; i++) {
165171
if(cmd[i].indexOf(INPUT_FILE_TOKEN) != -1) {
166172
cmd[i] = cmd[i].replace(INPUT_FILE_TOKEN, stream.getFile().getPath());

tika-parent/pom.xml

+17
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,23 @@
409409
</plugins>
410410
</build>
411411
</profile>
412+
<profile>
413+
<id>doclint-java8-disable</id>
414+
<activation>
415+
<jdk>[1.8,)</jdk>
416+
</activation>
417+
<build>
418+
<plugins>
419+
<plugin>
420+
<groupId>org.apache.maven.plugins</groupId>
421+
<artifactId>maven-javadoc-plugin</artifactId>
422+
<configuration>
423+
<additionalparam>-Xdoclint:none</additionalparam>
424+
</configuration>
425+
</plugin>
426+
</plugins>
427+
</build>
428+
</profile>
412429
</profiles>
413430

414431
<scm>

0 commit comments

Comments
 (0)