Kitxuuu commited on
Commit
0aad240
·
verified ·
1 Parent(s): 275d22b

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/configs/metadata-filter-include.xml +28 -0
  2. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-basic.xml +32 -0
  3. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-emitter.xml +33 -0
  4. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server.xml +32 -0
  5. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/logging/log4j2_forked.xml +45 -0
  6. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/ssl-keys/tika-client-truststore.p12 +0 -0
  7. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/ssl-keys/tika-server-keystore.p12 +0 -0
  8. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/french.txt +1 -0
  9. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/encrypted_document_exception.xml +23 -0
  10. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/fake_oom.xml +24 -0
  11. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/heavy_hang_100.xml +25 -0
  12. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/heavy_hang_30000.xml +25 -0
  13. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/hello_world.xml +26 -0
  14. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/hello_world_long.xml +30 -0
  15. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/real_oom.xml +24 -0
  16. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/system_exit.xml +25 -0
  17. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/testStaticStdOutErr.xml +76 -0
  18. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/thread_interrupt.xml +25 -0
  19. local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/中文.xml +27 -0
  20. local-test-tika-delta-03/afc-tika/tika-server/tika-server-standard/bin/tika.in.sh +80 -0
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/configs/metadata-filter-include.xml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <metadataFilters>
20
+ <metadataFilter class="org.apache.tika.metadata.filter.IncludeFieldMetadataFilter">
21
+ <include>
22
+ <field>X-TIKA:content</field>
23
+ <field>extended-properties:Application</field>
24
+ <field>Content-Type</field>
25
+ </include>
26
+ </metadataFilter>
27
+ </metadataFilters>
28
+ </properties>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-basic.xml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <taskTimeoutMillis>120000</taskTimeoutMillis>
21
+ <minimumTimeoutMillis>10</minimumTimeoutMillis>
22
+ <port>9999</port>
23
+ <maxFiles>1000</maxFiles>
24
+ <forkedJvmArgs>
25
+ <arg>-Xmx512m</arg>
26
+ </forkedJvmArgs>
27
+ <endpoints>
28
+ <endpoint>rmeta</endpoint>
29
+ <endpoint>status</endpoint>
30
+ </endpoints>
31
+ </server>
32
+ </properties>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server-emitter.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <taskTimeoutMillis>120000</taskTimeoutMillis>
21
+ <port>9999</port>
22
+ <maxFiles>1000</maxFiles>
23
+ <forkedJvmArgs>
24
+ <arg>-Xmx512m</arg>
25
+ </forkedJvmArgs>
26
+ <enableUnsecure>true</enableUnsecure>
27
+ <endpoints>
28
+ <endpoint>emit</endpoint>
29
+ <endpoint>async</endpoint>
30
+ <endpoint>status</endpoint>
31
+ </endpoints>
32
+ </server>
33
+ </properties>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/configs/tika-config-server.xml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <server>
20
+ <port>9999</port>
21
+ <taskTimeoutMillis>54321</taskTimeoutMillis>
22
+ <minimumTimeoutMillis>10</minimumTimeoutMillis>
23
+ <enableUnsecureFeatures>true</enableUnsecureFeatures>
24
+ <maxFiles>20</maxFiles>
25
+ <forkedJvmArgs>
26
+ <arg>-Xmx2g</arg>
27
+ </forkedJvmArgs>
28
+ <endpoints>
29
+ <endpoint>rmeta</endpoint>
30
+ </endpoints>
31
+ </server>
32
+ </properties>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/logging/log4j2_forked.xml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
19
+ <log4j:configuration debug="true">
20
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
21
+ <param name="Target" value="System.out"/>
22
+ <layout class="org.apache.log4j.PatternLayout">
23
+ <!-- Pattern to output the caller's file name and line number -->
24
+ <!--<param name="ConversionPattern" value="%5p [%t] (%F:%L) - %m%n"/>-->
25
+ <param name="ConversionPattern" value="%m%n"/>
26
+ </layout>
27
+ </appender>
28
+ <appender name="stderr" class="org.apache.log4j.ConsoleAppender">
29
+ <param name="Target" value="System.err"/>
30
+ <layout class="org.apache.log4j.PatternLayout">
31
+ <!-- Pattern to output the caller's file name and line number -->
32
+ <!--<param name="ConversionPattern" value="%5p [%t] (%F:%L) - %m%n"/>-->
33
+ <param name="ConversionPattern" value="%m%n"/>
34
+ </layout>
35
+ </appender>
36
+ <logger name="org.apache" additivity="true">
37
+ <level value="warn"/>
38
+ <appender-ref ref="stdout"/>
39
+ </logger>
40
+ <logger name="org.apache.cxf" additivity="true">
41
+ <level value="warn"/>
42
+ <appender-ref ref="stderr"/>
43
+ </logger>
44
+
45
+ </log4j:configuration>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/ssl-keys/tika-client-truststore.p12 ADDED
Binary file (3.43 kB). View file
 
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/ssl-keys/tika-server-keystore.p12 ADDED
Binary file (2.51 kB). View file
 
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/french.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ c’est comme ci comme ça
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/encrypted_document_exception.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <throw class="org.apache.tika.exception.EncryptedDocumentException">encrypted document exception</throw>
23
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/fake_oom.xml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <throw class="java.lang.OutOfMemoryError">oom message</throw>
24
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/heavy_hang_100.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <write element="p">some content</write>
24
+ <hang millis="100" heavy="true" pulse_millis="50"/>
25
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/heavy_hang_30000.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <write element="p">some content</write>
24
+ <hang millis="30000" heavy="true" pulse_millis="100"/>
25
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/hello_world.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <metadata action="add" name="title">你好,世界</metadata>
24
+ <metadata action="add" name="my-key">parsers-value</metadata>
25
+ <write element="p">hello world</write>
26
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/hello_world_long.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <metadata action="add" name="title">你好,世界</metadata>
24
+ <metadata action="add" name="my-key">parsers-value</metadata>
25
+ <write element="p">Hello world...</write>
26
+ <write element="p">When in the Course of human events, it becomes necessary for one people to dissolve the
27
+ political bands which have connected them with another, and to assume among the powers of the earth, the
28
+ separate and equal station to which the Laws of Nature and of Nature’s God entitle them, a decent respect
29
+ to the opinions of mankind requires that they should declare the causes which impel them to the separation.</write>
30
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/real_oom.xml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <oom/>
24
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/system_exit.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <write element="p">some content</write>
24
+ <system_exit/>
25
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/testStaticStdOutErr.xml ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+
3
+ <!--
4
+ Licensed to the Apache Software Foundation (ASF) under one
5
+ or more contributor license agreements. See the NOTICE file
6
+ distributed with this work for additional information
7
+ regarding copyright ownership. The ASF licenses this file
8
+ to you under the Apache License, Version 2.0 (the
9
+ "License"); you may not use this file except in compliance
10
+ with the License. You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing,
15
+ software distributed under the License is distributed on an
16
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ KIND, either express or implied. See the License for the
18
+ specific language governing permissions and limitations
19
+ under the License.
20
+ -->
21
+
22
+ <mock>
23
+
24
+
25
+ <!-- action can be "add" or "set" -->
26
+ <metadata action="add" name="dc:creator">Nikolai Lobachevsky</metadata>
27
+ <!-- element is the name of the sax event to write, p=paragraph
28
+ if the element is not specified, the default is <p> -->
29
+ <hang millis="100" heavy="false"/>
30
+ <write element="p">hello world!</write>
31
+ <!-- write something to System.out -->
32
+ <print_out>writing to System.out</print_out>
33
+ <hang millis="10" heavy="false"/>
34
+ <print_out static="true" random="200000"/>
35
+ <hang millis="10" heavy="false"/>
36
+ <print_out static="true" random="200000"/>
37
+ <hang millis="10" heavy="false"/>
38
+ <print_out static="true" random="200000"/>
39
+ <hang millis="10" heavy="false"/>
40
+ <print_err static="true" random="200000"/>
41
+ <hang millis="10" heavy="false"/>
42
+ <print_err static="true" random="200000"/>
43
+ <hang millis="10" heavy="false"/>
44
+ <print_out>writing to System.out</print_out>
45
+ <hang millis="80" heavy="false"/>
46
+ <print_out>writing to System.out</print_out>
47
+ <hang millis="70" heavy="false"/>
48
+ <print_out>writing to System.out</print_out>
49
+ <hang millis="60" heavy="false"/>
50
+ <print_out>writing to System.out</print_out>
51
+ <hang millis="20" heavy="false"/>
52
+ <print_out>writing to System.out</print_out>
53
+ <hang millis="10" heavy="false"/>
54
+ <print_out>writing to System.out</print_out>
55
+ <hang millis="30" heavy="false"/>
56
+ <print_out>writing to System.out</print_out>
57
+ <hang millis="10" heavy="false"/>
58
+ <print_out>writing to System.out</print_out>
59
+ <hang millis="10" heavy="false"/>
60
+ <print_out>writing to System.out</print_out>
61
+ <hang millis="20" heavy="false"/>
62
+ <print_out>writing to System.out</print_out>
63
+ <hang millis="20" heavy="false"/>
64
+ <print_out>writing to System.out</print_out>
65
+ <hang millis="30" heavy="false"/>
66
+ <print_out>writing to System.out</print_out>
67
+ <hang millis="10" heavy="false"/>
68
+ <print_out>writing to System.out</print_out>
69
+ <hang millis="50" heavy="false"/>
70
+ <!-- write something to System.err -->
71
+ <print_err>writing to System.err</print_err>
72
+
73
+ <write element="p">Even after the calls to Sys.out/err...hello world! the quick brown fox jumped over the lazy dog
74
+ </write>
75
+
76
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/thread_interrupt.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <write element="p">some content</write>
24
+ <thread_interrupt/>
25
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-core/src/test/resources/test-documents/mock/中文.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ -->
20
+
21
+ <mock>
22
+ <metadata action="add" name="author">Nikolai Lobachevsky</metadata>
23
+ <metadata action="add" name="title">你好,世界</metadata>
24
+ <metadata action="add" name="my-key">parsers-value</metadata>
25
+ <write element="p">Hello world...</write>
26
+ <write element="p">你好世界</write>
27
+ </mock>
local-test-tika-delta-03/afc-tika/tika-server/tika-server-standard/bin/tika.in.sh ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ # Settings here will override settings in existing env vars or in bin/tika. The default shipped state
17
+ # of this file is completely commented.
18
+
19
+ # By default the script will use JAVA_HOME to determine which java
20
+ # to use, but you can set a specific path for Tika to use without
21
+ # affecting other Java applications on your server/workstation.
22
+ #TIKA_JAVA_HOME=""
23
+
24
+ # This controls the number of seconds that the Tika script will wait for
25
+ # Tika to start. If the start fails, the script will
26
+ # give up waiting and display the last few lines of the logfile.
27
+ #TIKA_STOP_WAIT="180"
28
+
29
+ # Enable verbose GC logging...
30
+ # * If this is unset, various default options will be selected depending on which JVM version is in use
31
+ # * For Java 8: if this is set, additional params will be added to specify the log file & rotation
32
+ # * For Java 9 or higher: each included opt param that starts with '-Xlog:gc', but does not include an
33
+ # output specifier, will have a 'file' output specifier (as well as formatting & rollover options)
34
+ # appended, using the effective value of the TIKA_LOGS_DIR.
35
+ #
36
+ #GC_LOG_OPTS='-Xlog:gc*' # (Java 9+)
37
+ #GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
38
+ # -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"
39
+
40
+ # These GC settings have shown to work well for a number of common Solr workloads. Good for Tika?
41
+ #GC_TUNE=" \
42
+ #-XX:SurvivorRatio=4 \
43
+ #-XX:TargetSurvivorRatio=90 \
44
+ #-XX:MaxTenuringThreshold=8 \
45
+ #-XX:+UseConcMarkSweepGC \
46
+ #-XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 \
47
+ #-XX:+CMSScavengeBeforeRemark \
48
+ #-XX:PretenureSizeThreshold=64m \
49
+ #-XX:+UseCMSInitiatingOccupancyOnly \
50
+ #-XX:CMSInitiatingOccupancyFraction=50 \
51
+ #-XX:CMSMaxAbortablePrecleanTime=6000 \
52
+ #-XX:+CMSParallelRemarkEnabled \
53
+ #-XX:+ParallelRefProcEnabled \
54
+ #-XX:-OmitStackTraceInFastThrow etc.
55
+
56
+ # Anything you add to the TIKA_OPTS variable will be included in the java
57
+ # start command line as-is, in ADDITION to other options. If you specify the
58
+ # -a option on start script, those options will be appended as well. Examples:
59
+ #TIKA_OPTS="$TIKA_OPTS -Dlog4j.configuration=file:log4j_server.xml"
60
+
61
+ # Location where the bin/tika script will save PID files for running instances
62
+ # If not set, the script will create PID files in /var/tika
63
+ #TIKA_PID_DIR=
64
+
65
+ # Tika provides a default Log4J configuration properties file in tika-server.jar
66
+ # however, you may want to customize the log settings and file appender location
67
+ # so you can point the script to use a different log4j2.properties file
68
+ #LOG4J_PROPS=/var/tika/log4j2.properties
69
+
70
+ # Location where Tika should write logs to.
71
+ #TIKA_LOGS_DIR=/var/tika/logs
72
+
73
+ # Sets the port Tika binds to, default is 9998
74
+ #TIKA_PORT=9998
75
+
76
+ # As of Tika 2.0, Tika Server forks a process so that the forked
77
+ # process is more robust to OOMs, Infinite
78
+ # Loops, and Memory Leaks. Learn more at
79
+ # http://wiki.apache.org/tika/TikaJAXRS.
80
+ #TIKA_FORKED_OPTS=-maxFiles 100000 -JXmx4g