Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/reco/.gitignore b/reco/.gitignore
- new file mode 100644
- index 0000000..ff7271f
- --- /dev/null
- +++ b/reco/.gitignore
- @@ -0,0 +1,2 @@
- +.idea/workspace.xml
- +buildforjetty/tmp
- \ No newline at end of file
- diff --git a/reco/.idea/ant.xml b/reco/.idea/ant.xml
- new file mode 100644
- index 0000000..1e0a221
- --- /dev/null
- +++ b/reco/.idea/ant.xml
- @@ -0,0 +1,6 @@
- +<?xml version="1.0" encoding="UTF-8"?>
- +<project version="4">
- + <component name="AntConfiguration">
- + <buildFile url="file://$PROJECT_DIR$/grrec/build.xml" />
- + </component>
- +</project>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/CSSBox.xml b/reco/.idea/libraries/CSSBox.xml
- new file mode 100644
- index 0000000..97f9193
- --- /dev/null
- +++ b/reco/.idea/libraries/CSSBox.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="CSSBox">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/cssbox/CSSBox.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/Jama_1_0_2.xml b/reco/.idea/libraries/Jama_1_0_2.xml
- new file mode 100644
- index 0000000..6da441b
- --- /dev/null
- +++ b/reco/.idea/libraries/Jama_1_0_2.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="Jama-1.0.2">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/Jama-1.0.2.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/Mesp.xml b/reco/.idea/libraries/Mesp.xml
- new file mode 100644
- index 0000000..ca2877d
- --- /dev/null
- +++ b/reco/.idea/libraries/Mesp.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="Mesp">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/Mesp.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/Mespbulk.xml b/reco/.idea/libraries/Mespbulk.xml
- new file mode 100644
- index 0000000..b90b1ff
- --- /dev/null
- +++ b/reco/.idea/libraries/Mespbulk.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="Mespbulk">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/Mespbulk.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/antlr4_4_2.xml b/reco/.idea/libraries/antlr4_4_2.xml
- new file mode 100644
- index 0000000..4d8ab7c
- --- /dev/null
- +++ b/reco/.idea/libraries/antlr4_4_2.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="antlr4-4.2">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/antlr4-4.2.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/antlr4_annotations_4_2.xml b/reco/.idea/libraries/antlr4_annotations_4_2.xml
- new file mode 100644
- index 0000000..b1cac37
- --- /dev/null
- +++ b/reco/.idea/libraries/antlr4_annotations_4_2.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="antlr4-annotations-4.2">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/antlr4-annotations-4.2.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/antlr4_runtime_4_2.xml b/reco/.idea/libraries/antlr4_runtime_4_2.xml
- new file mode 100644
- index 0000000..ccd3434
- --- /dev/null
- +++ b/reco/.idea/libraries/antlr4_runtime_4_2.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="antlr4-runtime-4.2">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/antlr4-runtime-4.2.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/antlr_4_2_complete.xml b/reco/.idea/libraries/antlr_4_2_complete.xml
- new file mode 100644
- index 0000000..2837506
- --- /dev/null
- +++ b/reco/.idea/libraries/antlr_4_2_complete.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="antlr-4.2-complete">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/antlr-4.2-complete.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/antlr_runtime_3_1.xml b/reco/.idea/libraries/antlr_runtime_3_1.xml
- new file mode 100644
- index 0000000..4856f82
- --- /dev/null
- +++ b/reco/.idea/libraries/antlr_runtime_3_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="antlr-runtime-3.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/cssbox/antlr-runtime-3.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/base64decode.xml b/reco/.idea/libraries/base64decode.xml
- new file mode 100644
- index 0000000..70852b6
- --- /dev/null
- +++ b/reco/.idea/libraries/base64decode.xml
- @@ -0,0 +1,11 @@
- +<component name="libraryTable">
- + <library name="base64decode">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/base64decode.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/base64decode.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/c3p0_0_9_2_1.xml b/reco/.idea/libraries/c3p0_0_9_2_1.xml
- new file mode 100644
- index 0000000..c19e70b
- --- /dev/null
- +++ b/reco/.idea/libraries/c3p0_0_9_2_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="c3p0-0.9.2.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/c3p0/c3p0-0.9.2.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/cassandra_driver_core_3_0_0.xml b/reco/.idea/libraries/cassandra_driver_core_3_0_0.xml
- new file mode 100644
- index 0000000..eda6f80
- --- /dev/null
- +++ b/reco/.idea/libraries/cassandra_driver_core_3_0_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="cassandra-driver-core-3.0.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/cassandra_v7/cassandra-driver-core-3.0.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/codecover.xml b/reco/.idea/libraries/codecover.xml
- new file mode 100644
- index 0000000..8383f4f
- --- /dev/null
- +++ b/reco/.idea/libraries/codecover.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="codecover">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/codecover.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_beanutils_1_7_0.xml b/reco/.idea/libraries/commons_beanutils_1_7_0.xml
- new file mode 100644
- index 0000000..3d2033f
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_beanutils_1_7_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-beanutils-1.7.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/commons-beanutils-1.7.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_cli_1_2.xml b/reco/.idea/libraries/commons_cli_1_2.xml
- new file mode 100644
- index 0000000..a8f4c09
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_cli_1_2.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-cli-1.2">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/commons-cli-1.2.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_codec_1_4.xml b/reco/.idea/libraries/commons_codec_1_4.xml
- new file mode 100644
- index 0000000..444338b
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_codec_1_4.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-codec-1.4">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/commons-codec-1.4.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_collections_3_2_1.xml b/reco/.idea/libraries/commons_collections_3_2_1.xml
- new file mode 100644
- index 0000000..d0131a5
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_collections_3_2_1.xml
- @@ -0,0 +1,10 @@
- +<component name="libraryTable">
- + <library name="commons-collections-3.2.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/commons-collections-3.2.1.jar!/" />
- + <root url="jar://$PROJECT_DIR$/lib/commons-compress-1.4.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_compress_1_4_1.xml b/reco/.idea/libraries/commons_compress_1_4_1.xml
- new file mode 100644
- index 0000000..59e6f1d
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_compress_1_4_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-compress-1.4.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/commons-compress-1.4.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_csv_1_0_SNAPSHOT_r966014.xml b/reco/.idea/libraries/commons_csv_1_0_SNAPSHOT_r966014.xml
- new file mode 100644
- index 0000000..891eec6
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_csv_1_0_SNAPSHOT_r966014.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-csv-1.0-SNAPSHOT-r966014">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/commons-csv-1.0-SNAPSHOT-r966014.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_fileupload_1_2_1.xml b/reco/.idea/libraries/commons_fileupload_1_2_1.xml
- new file mode 100644
- index 0000000..c624735
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_fileupload_1_2_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-fileupload-1.2.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/commons-fileupload-1.2.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_httpclient_3_1.xml b/reco/.idea/libraries/commons_httpclient_3_1.xml
- new file mode 100644
- index 0000000..8014385
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_httpclient_3_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-httpclient-3.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/commons-httpclient-3.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_io_2_4.xml b/reco/.idea/libraries/commons_io_2_4.xml
- new file mode 100644
- index 0000000..20a3a0c
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_io_2_4.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-io-2.4">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/commons-io-2.4.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_lang_2_4.xml b/reco/.idea/libraries/commons_lang_2_4.xml
- new file mode 100644
- index 0000000..c0b61e1
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_lang_2_4.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-lang-2.4">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/commons-lang-2.4.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_logging.xml b/reco/.idea/libraries/commons_logging.xml
- new file mode 100644
- index 0000000..f6c4ca7
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_logging.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-logging">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/commons-logging.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_net_2_2.xml b/reco/.idea/libraries/commons_net_2_2.xml
- new file mode 100644
- index 0000000..1c5fdbb
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_net_2_2.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-net-2.2">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/file/commons-net-2.2.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_pool_1_6.xml b/reco/.idea/libraries/commons_pool_1_6.xml
- new file mode 100644
- index 0000000..78f08db
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_pool_1_6.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-pool-1.6">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/commons-pool-1.6.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/commons_vfs_2_0.xml b/reco/.idea/libraries/commons_vfs_2_0.xml
- new file mode 100644
- index 0000000..4757518
- --- /dev/null
- +++ b/reco/.idea/libraries/commons_vfs_2_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="commons-vfs-2.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/file/commons-vfs-2.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/fastmultiply.xml b/reco/.idea/libraries/fastmultiply.xml
- new file mode 100644
- index 0000000..09abd49
- --- /dev/null
- +++ b/reco/.idea/libraries/fastmultiply.xml
- @@ -0,0 +1,13 @@
- +<component name="libraryTable">
- + <library name="fastmultiply">
- + <CLASSES>
- + <root url="file://$PROJECT_DIR$/lib/fastmultiply" />
- + </CLASSES>
- + <JAVADOC />
- + <NATIVE>
- + <root url="file://$PROJECT_DIR$/lib/fastmultiply" />
- + </NATIVE>
- + <SOURCES />
- + <jarDirectory url="file://$PROJECT_DIR$/lib/fastmultiply" recursive="false" />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/findbugs_annotations_2_0_2_rc2.xml b/reco/.idea/libraries/findbugs_annotations_2_0_2_rc2.xml
- new file mode 100644
- index 0000000..68400eb
- --- /dev/null
- +++ b/reco/.idea/libraries/findbugs_annotations_2_0_2_rc2.xml
- @@ -0,0 +1,11 @@
- +<component name="libraryTable">
- + <library name="findbugs-annotations-2.0.2-rc2">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/findbugs-annotations-2.0.2-rc2.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/findbugs-annotations-2.0.2-rc2.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/freemarker.xml b/reco/.idea/libraries/freemarker.xml
- new file mode 100644
- index 0000000..75ec5f2
- --- /dev/null
- +++ b/reco/.idea/libraries/freemarker.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="freemarker">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/freemarker.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/geronimo_stax_api_1_0_spec_1_0_1.xml b/reco/.idea/libraries/geronimo_stax_api_1_0_spec_1_0_1.xml
- new file mode 100644
- index 0000000..4db5077
- --- /dev/null
- +++ b/reco/.idea/libraries/geronimo_stax_api_1_0_spec_1_0_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="geronimo-stax-api_1.0_spec-1.0.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/geronimo-stax-api_1.0_spec-1.0.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/getinstrumentationagent.xml b/reco/.idea/libraries/getinstrumentationagent.xml
- new file mode 100644
- index 0000000..161a385
- --- /dev/null
- +++ b/reco/.idea/libraries/getinstrumentationagent.xml
- @@ -0,0 +1,11 @@
- +<component name="libraryTable">
- + <library name="getinstrumentationagent">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/getinstrumentationagent.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/getinstrumentationagent.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/guava_18_0.xml b/reco/.idea/libraries/guava_18_0.xml
- new file mode 100644
- index 0000000..c387291
- --- /dev/null
- +++ b/reco/.idea/libraries/guava_18_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="guava-18.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/guava-18.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/gwt_api_checker.xml b/reco/.idea/libraries/gwt_api_checker.xml
- new file mode 100644
- index 0000000..30eb665
- --- /dev/null
- +++ b/reco/.idea/libraries/gwt_api_checker.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="gwt-api-checker">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/gwt-2.1.1/gwt-api-checker.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/gwt_benchmark_viewer.xml b/reco/.idea/libraries/gwt_benchmark_viewer.xml
- new file mode 100644
- index 0000000..32ba3b6
- --- /dev/null
- +++ b/reco/.idea/libraries/gwt_benchmark_viewer.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="gwt-benchmark-viewer">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/gwt-2.1.1/gwt-benchmark-viewer.war!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/gwt_dev.xml b/reco/.idea/libraries/gwt_dev.xml
- new file mode 100644
- index 0000000..a961e8c
- --- /dev/null
- +++ b/reco/.idea/libraries/gwt_dev.xml
- @@ -0,0 +1,11 @@
- +<component name="libraryTable">
- + <library name="gwt-dev">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/gwt-2.1.1/gwt-dev.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/gwt-2.1.1/gwt-dev.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/gwt_servlet.xml b/reco/.idea/libraries/gwt_servlet.xml
- new file mode 100644
- index 0000000..02a3b38
- --- /dev/null
- +++ b/reco/.idea/libraries/gwt_servlet.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="gwt-servlet">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/gwt-2.1.1/gwt-servlet.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/gwt_servlet_deps.xml b/reco/.idea/libraries/gwt_servlet_deps.xml
- new file mode 100644
- index 0000000..1ceb5e5
- --- /dev/null
- +++ b/reco/.idea/libraries/gwt_servlet_deps.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="gwt-servlet-deps">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/gwt-2.1.1/gwt-servlet-deps.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/gwt_soyc_vis.xml b/reco/.idea/libraries/gwt_soyc_vis.xml
- new file mode 100644
- index 0000000..301f49e
- --- /dev/null
- +++ b/reco/.idea/libraries/gwt_soyc_vis.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="gwt-soyc-vis">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/gwt-2.1.1/gwt-soyc-vis.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/gwt_user.xml b/reco/.idea/libraries/gwt_user.xml
- new file mode 100644
- index 0000000..c24db92
- --- /dev/null
- +++ b/reco/.idea/libraries/gwt_user.xml
- @@ -0,0 +1,11 @@
- +<component name="libraryTable">
- + <library name="gwt-user">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/gwt-2.1.1/gwt-user.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/gwt-2.1.1/gwt-user.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jStyleParser_SNAPSHOT.xml b/reco/.idea/libraries/jStyleParser_SNAPSHOT.xml
- new file mode 100644
- index 0000000..aa703e8
- --- /dev/null
- +++ b/reco/.idea/libraries/jStyleParser_SNAPSHOT.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jStyleParser_SNAPSHOT">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/cssbox/jStyleParser_SNAPSHOT.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jackson_annotations_2_3_0.xml b/reco/.idea/libraries/jackson_annotations_2_3_0.xml
- new file mode 100644
- index 0000000..d6bf042
- --- /dev/null
- +++ b/reco/.idea/libraries/jackson_annotations_2_3_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jackson-annotations-2.3.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/jackson/jackson-annotations-2.3.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jackson_core_2_3_0.xml b/reco/.idea/libraries/jackson_core_2_3_0.xml
- new file mode 100644
- index 0000000..2d6d751
- --- /dev/null
- +++ b/reco/.idea/libraries/jackson_core_2_3_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jackson-core-2.3.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/jackson/jackson-core-2.3.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jackson_databind_2_3_0.xml b/reco/.idea/libraries/jackson_databind_2_3_0.xml
- new file mode 100644
- index 0000000..f204ba1
- --- /dev/null
- +++ b/reco/.idea/libraries/jackson_databind_2_3_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jackson-databind-2.3.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/jackson/jackson-databind-2.3.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jarjar_1_0.xml b/reco/.idea/libraries/jarjar_1_0.xml
- new file mode 100644
- index 0000000..2c1d3e4
- --- /dev/null
- +++ b/reco/.idea/libraries/jarjar_1_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jarjar-1.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/jar/jarjar-1.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/java_xmlbuilder_0_4.xml b/reco/.idea/libraries/java_xmlbuilder_0_4.xml
- new file mode 100644
- index 0000000..2d9c3a6
- --- /dev/null
- +++ b/reco/.idea/libraries/java_xmlbuilder_0_4.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="java-xmlbuilder-0.4">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/java-xmlbuilder-0.4.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/javax_ejb.xml b/reco/.idea/libraries/javax_ejb.xml
- new file mode 100644
- index 0000000..ac68bd0
- --- /dev/null
- +++ b/reco/.idea/libraries/javax_ejb.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="javax.ejb">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/javax.ejb.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jboss_logging_log4j.xml b/reco/.idea/libraries/jboss_logging_log4j.xml
- new file mode 100644
- index 0000000..6eecbd2
- --- /dev/null
- +++ b/reco/.idea/libraries/jboss_logging_log4j.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jboss-logging-log4j">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/jboss-logging-log4j.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jcl_over_slf4j_1_7_5_sources.xml b/reco/.idea/libraries/jcl_over_slf4j_1_7_5_sources.xml
- new file mode 100644
- index 0000000..b68a9bd
- --- /dev/null
- +++ b/reco/.idea/libraries/jcl_over_slf4j_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jcl-over-slf4j-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/jcl-over-slf4j-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/joda_time_2_1.xml b/reco/.idea/libraries/joda_time_2_1.xml
- new file mode 100644
- index 0000000..9d8d4dc
- --- /dev/null
- +++ b/reco/.idea/libraries/joda_time_2_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="joda-time-2.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/joda-time/joda-time-2.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jopt_simple_3_2.xml b/reco/.idea/libraries/jopt_simple_3_2.xml
- new file mode 100644
- index 0000000..24b6ea9
- --- /dev/null
- +++ b/reco/.idea/libraries/jopt_simple_3_2.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jopt-simple-3.2">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/kafka/jopt-simple-3.2.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jsch_0_1_45.xml b/reco/.idea/libraries/jsch_0_1_45.xml
- new file mode 100644
- index 0000000..8a2854c
- --- /dev/null
- +++ b/reco/.idea/libraries/jsch_0_1_45.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jsch-0.1.45">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/file/jsch-0.1.45.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jsonrpc4j_1_0.xml b/reco/.idea/libraries/jsonrpc4j_1_0.xml
- new file mode 100644
- index 0000000..ba09734
- --- /dev/null
- +++ b/reco/.idea/libraries/jsonrpc4j_1_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jsonrpc4j-1.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/jsonrpc4j/jsonrpc4j-1.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jsr305_0_1.xml b/reco/.idea/libraries/jsr305_0_1.xml
- new file mode 100644
- index 0000000..46dc2c7
- --- /dev/null
- +++ b/reco/.idea/libraries/jsr305_0_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jsr305-0.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/annotation/jsr305-0.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/jul_to_slf4j_1_7_5_sources.xml b/reco/.idea/libraries/jul_to_slf4j_1_7_5_sources.xml
- new file mode 100644
- index 0000000..68d5f82
- --- /dev/null
- +++ b/reco/.idea/libraries/jul_to_slf4j_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="jul-to-slf4j-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/jul-to-slf4j-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/junit_4_11.xml b/reco/.idea/libraries/junit_4_11.xml
- new file mode 100644
- index 0000000..8bc92e2
- --- /dev/null
- +++ b/reco/.idea/libraries/junit_4_11.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="junit-4.11">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/junit-4.11.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/kafka_2_10_0_8_1.xml b/reco/.idea/libraries/kafka_2_10_0_8_1.xml
- new file mode 100644
- index 0000000..b5e1084
- --- /dev/null
- +++ b/reco/.idea/libraries/kafka_2_10_0_8_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="kafka_2.10-0.8.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/kafka/kafka_2.10-0.8.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/kryo_2_22_all.xml b/reco/.idea/libraries/kryo_2_22_all.xml
- new file mode 100644
- index 0000000..13343ff
- --- /dev/null
- +++ b/reco/.idea/libraries/kryo_2_22_all.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="kryo-2.22-all">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/kryo-2.22-all.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/log4j_1_2_16.xml b/reco/.idea/libraries/log4j_1_2_16.xml
- new file mode 100644
- index 0000000..09db861
- --- /dev/null
- +++ b/reco/.idea/libraries/log4j_1_2_16.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="log4j-1.2.16">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/log4j-1.2.16.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/log4j_over_slf4j_1_7_5_sources.xml b/reco/.idea/libraries/log4j_over_slf4j_1_7_5_sources.xml
- new file mode 100644
- index 0000000..07bd5ba
- --- /dev/null
- +++ b/reco/.idea/libraries/log4j_over_slf4j_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="log4j-over-slf4j-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/log4j-over-slf4j-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/lucene_analyzers_common_4_3_0.xml b/reco/.idea/libraries/lucene_analyzers_common_4_3_0.xml
- new file mode 100644
- index 0000000..eafe4c0
- --- /dev/null
- +++ b/reco/.idea/libraries/lucene_analyzers_common_4_3_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="lucene-analyzers-common-4.3.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/lucene-analyzers-common-4.3.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/lucene_core_4_3_0.xml b/reco/.idea/libraries/lucene_core_4_3_0.xml
- new file mode 100644
- index 0000000..e7f9020
- --- /dev/null
- +++ b/reco/.idea/libraries/lucene_core_4_3_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="lucene-core-4.3.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/lucene-core-4.3.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/lucene_grouping_4_3_0.xml b/reco/.idea/libraries/lucene_grouping_4_3_0.xml
- new file mode 100644
- index 0000000..eb69b3b
- --- /dev/null
- +++ b/reco/.idea/libraries/lucene_grouping_4_3_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="lucene-grouping-4.3.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/lucene-grouping-4.3.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/lucene_queryparser_4_3_0.xml b/reco/.idea/libraries/lucene_queryparser_4_3_0.xml
- new file mode 100644
- index 0000000..c694d33
- --- /dev/null
- +++ b/reco/.idea/libraries/lucene_queryparser_4_3_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="lucene-queryparser-4.3.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/lucene-queryparser-4.3.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/lucene_suggest_4_3_0.xml b/reco/.idea/libraries/lucene_suggest_4_3_0.xml
- new file mode 100644
- index 0000000..f0e1e25
- --- /dev/null
- +++ b/reco/.idea/libraries/lucene_suggest_4_3_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="lucene-suggest-4.3.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/lucene-suggest-4.3.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/lzma_4_63_jio_0_94.xml b/reco/.idea/libraries/lzma_4_63_jio_0_94.xml
- new file mode 100644
- index 0000000..8e6cf99
- --- /dev/null
- +++ b/reco/.idea/libraries/lzma_4_63_jio_0_94.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="lzma-4.63-jio-0.94">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/file/lzma-4.63-jio-0.94.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/mchange_commons_java_0_2_3_4.xml b/reco/.idea/libraries/mchange_commons_java_0_2_3_4.xml
- new file mode 100644
- index 0000000..058fc11
- --- /dev/null
- +++ b/reco/.idea/libraries/mchange_commons_java_0_2_3_4.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="mchange-commons-java-0.2.3.4">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/c3p0/mchange-commons-java-0.2.3.4.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/metrics_annotation_2_2_0.xml b/reco/.idea/libraries/metrics_annotation_2_2_0.xml
- new file mode 100644
- index 0000000..c5fb10d
- --- /dev/null
- +++ b/reco/.idea/libraries/metrics_annotation_2_2_0.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="metrics-annotation-2.2.0">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/kafka/metrics-annotation-2.2.0.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/metrics_core_3_0_1.xml b/reco/.idea/libraries/metrics_core_3_0_1.xml
- new file mode 100644
- index 0000000..abf193d
- --- /dev/null
- +++ b/reco/.idea/libraries/metrics_core_3_0_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="metrics-core-3.0.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/metrics-core-3.0.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/mysql_connector_java_5_1_25_bin.xml b/reco/.idea/libraries/mysql_connector_java_5_1_25_bin.xml
- new file mode 100644
- index 0000000..adbf145
- --- /dev/null
- +++ b/reco/.idea/libraries/mysql_connector_java_5_1_25_bin.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="mysql-connector-java-5.1.25-bin">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/cmdline/additional_lib/mysql-connector-java-5.1.25-bin.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/nekohtml.xml b/reco/.idea/libraries/nekohtml.xml
- new file mode 100644
- index 0000000..20445ac
- --- /dev/null
- +++ b/reco/.idea/libraries/nekohtml.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="nekohtml">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/cssbox/nekohtml.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/netty_all_4_0_33_Final.xml b/reco/.idea/libraries/netty_all_4_0_33_Final.xml
- new file mode 100644
- index 0000000..a9168a1
- --- /dev/null
- +++ b/reco/.idea/libraries/netty_all_4_0_33_Final.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="netty-all-4.0.33.Final">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/netty-all-4.0.33.Final.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/ojdbc6.xml b/reco/.idea/libraries/ojdbc6.xml
- new file mode 100644
- index 0000000..78dfdcd
- --- /dev/null
- +++ b/reco/.idea/libraries/ojdbc6.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="ojdbc6">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/ojdbc6.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/org_netbeans_modules_java_j2seproject_copylibstask.xml b/reco/.idea/libraries/org_netbeans_modules_java_j2seproject_copylibstask.xml
- new file mode 100644
- index 0000000..7e7482e
- --- /dev/null
- +++ b/reco/.idea/libraries/org_netbeans_modules_java_j2seproject_copylibstask.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="org-netbeans-modules-java-j2seproject-copylibstask">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/netbeans/org-netbeans-modules-java-j2seproject-copylibstask.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/portlet_api_2_0_r12.xml b/reco/.idea/libraries/portlet_api_2_0_r12.xml
- new file mode 100644
- index 0000000..c9c207a
- --- /dev/null
- +++ b/reco/.idea/libraries/portlet_api_2_0_r12.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="portlet-api-2.0-r12">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/jsonrpc4j/portlet-api-2.0-r12.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/sam_1_84.xml b/reco/.idea/libraries/sam_1_84.xml
- new file mode 100644
- index 0000000..f0f14d7
- --- /dev/null
- +++ b/reco/.idea/libraries/sam_1_84.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="sam-1.84">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/sam-1.84.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/scala_library_2_10_1.xml b/reco/.idea/libraries/scala_library_2_10_1.xml
- new file mode 100644
- index 0000000..9c91469
- --- /dev/null
- +++ b/reco/.idea/libraries/scala_library_2_10_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="scala-library-2.10.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/kafka/scala-library-2.10.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/serializer.xml b/reco/.idea/libraries/serializer.xml
- new file mode 100644
- index 0000000..d0f026b
- --- /dev/null
- +++ b/reco/.idea/libraries/serializer.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="serializer">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/serializer.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/slf4j_api_1_7_5_sources.xml b/reco/.idea/libraries/slf4j_api_1_7_5_sources.xml
- new file mode 100644
- index 0000000..adeb24b
- --- /dev/null
- +++ b/reco/.idea/libraries/slf4j_api_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="slf4j-api-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/slf4j-api-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/slf4j_ext_1_7_5_sources.xml b/reco/.idea/libraries/slf4j_ext_1_7_5_sources.xml
- new file mode 100644
- index 0000000..0eabaff
- --- /dev/null
- +++ b/reco/.idea/libraries/slf4j_ext_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="slf4j-ext-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/slf4j-ext-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/slf4j_jcl_1_7_5_sources.xml b/reco/.idea/libraries/slf4j_jcl_1_7_5_sources.xml
- new file mode 100644
- index 0000000..828d10b
- --- /dev/null
- +++ b/reco/.idea/libraries/slf4j_jcl_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="slf4j-jcl-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/slf4j-jcl-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/slf4j_jdk14_1_7_5_sources.xml b/reco/.idea/libraries/slf4j_jdk14_1_7_5_sources.xml
- new file mode 100644
- index 0000000..85ebef3
- --- /dev/null
- +++ b/reco/.idea/libraries/slf4j_jdk14_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="slf4j-jdk14-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/slf4j-jdk14-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/slf4j_log4j12_1_7_5_sources.xml b/reco/.idea/libraries/slf4j_log4j12_1_7_5_sources.xml
- new file mode 100644
- index 0000000..3ca1a7d
- --- /dev/null
- +++ b/reco/.idea/libraries/slf4j_log4j12_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="slf4j-log4j12-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/slf4j-log4j12-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/slf4j_migrator_1_7_5.xml b/reco/.idea/libraries/slf4j_migrator_1_7_5.xml
- new file mode 100644
- index 0000000..0f40644
- --- /dev/null
- +++ b/reco/.idea/libraries/slf4j_migrator_1_7_5.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="slf4j-migrator-1.7.5">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/slf4j-migrator-1.7.5.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/slf4j_nop_1_7_5_sources.xml b/reco/.idea/libraries/slf4j_nop_1_7_5_sources.xml
- new file mode 100644
- index 0000000..46d2cec
- --- /dev/null
- +++ b/reco/.idea/libraries/slf4j_nop_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="slf4j-nop-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/slf4j-nop-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/slf4j_simple_1_7_5_sources.xml b/reco/.idea/libraries/slf4j_simple_1_7_5_sources.xml
- new file mode 100644
- index 0000000..dce1a74
- --- /dev/null
- +++ b/reco/.idea/libraries/slf4j_simple_1_7_5_sources.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="slf4j-simple-1.7.5-sources">
- + <CLASSES />
- + <JAVADOC />
- + <SOURCES>
- + <root url="jar://$PROJECT_DIR$/lib/slf4j/slf4j-1.7.5/slf4j-simple-1.7.5-sources.jar!/" />
- + </SOURCES>
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/snappy_java_1_1_0_1.xml b/reco/.idea/libraries/snappy_java_1_1_0_1.xml
- new file mode 100644
- index 0000000..c01e4c9
- --- /dev/null
- +++ b/reco/.idea/libraries/snappy_java_1_1_0_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="snappy-java-1.1.0.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/snappy-java-1.1.0.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/stax_utils.xml b/reco/.idea/libraries/stax_utils.xml
- new file mode 100644
- index 0000000..8ad73de
- --- /dev/null
- +++ b/reco/.idea/libraries/stax_utils.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="stax-utils">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/stax-utils.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/trove.xml b/reco/.idea/libraries/trove.xml
- new file mode 100644
- index 0000000..f7e68e9
- --- /dev/null
- +++ b/reco/.idea/libraries/trove.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="trove">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/trove.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/trove_3_0_3.xml b/reco/.idea/libraries/trove_3_0_3.xml
- new file mode 100644
- index 0000000..6f7c208
- --- /dev/null
- +++ b/reco/.idea/libraries/trove_3_0_3.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="trove-3.0.3">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/trove-3.0.3.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/velocity_1_6_1.xml b/reco/.idea/libraries/velocity_1_6_1.xml
- new file mode 100644
- index 0000000..fd9bf01
- --- /dev/null
- +++ b/reco/.idea/libraries/velocity_1_6_1.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="velocity-1.6.1">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/velocity-1.6.1.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/velocity_tools_2_0_beta3.xml b/reco/.idea/libraries/velocity_tools_2_0_beta3.xml
- new file mode 100644
- index 0000000..359fdcc
- --- /dev/null
- +++ b/reco/.idea/libraries/velocity_tools_2_0_beta3.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="velocity-tools-2.0-beta3">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/velocity-tools-2.0-beta3.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/wstx_asl_3_2_7.xml b/reco/.idea/libraries/wstx_asl_3_2_7.xml
- new file mode 100644
- index 0000000..b5841da
- --- /dev/null
- +++ b/reco/.idea/libraries/wstx_asl_3_2_7.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="wstx-asl-3.2.7">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/solr_lib/wstx-asl-3.2.7.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/xercesImpl.xml b/reco/.idea/libraries/xercesImpl.xml
- new file mode 100644
- index 0000000..ad6226c
- --- /dev/null
- +++ b/reco/.idea/libraries/xercesImpl.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="xercesImpl">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/cssbox/xercesImpl.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/xmemcached_1_4_3.xml b/reco/.idea/libraries/xmemcached_1_4_3.xml
- new file mode 100644
- index 0000000..f6014b1
- --- /dev/null
- +++ b/reco/.idea/libraries/xmemcached_1_4_3.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="xmemcached-1.4.3">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/xmemcached-1.4.3.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/xml_apis.xml b/reco/.idea/libraries/xml_apis.xml
- new file mode 100644
- index 0000000..7edd46e
- --- /dev/null
- +++ b/reco/.idea/libraries/xml_apis.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="xml-apis">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/cssbox/xml-apis.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/zkclient_0_3.xml b/reco/.idea/libraries/zkclient_0_3.xml
- new file mode 100644
- index 0000000..b910be2
- --- /dev/null
- +++ b/reco/.idea/libraries/zkclient_0_3.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="zkclient-0.3">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/kafka/zkclient-0.3.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/libraries/zookeeper_3_3_4.xml b/reco/.idea/libraries/zookeeper_3_3_4.xml
- new file mode 100644
- index 0000000..201b74c
- --- /dev/null
- +++ b/reco/.idea/libraries/zookeeper_3_3_4.xml
- @@ -0,0 +1,9 @@
- +<component name="libraryTable">
- + <library name="zookeeper-3.3.4">
- + <CLASSES>
- + <root url="jar://$PROJECT_DIR$/lib/kafka/zookeeper-3.3.4.jar!/" />
- + </CLASSES>
- + <JAVADOC />
- + <SOURCES />
- + </library>
- +</component>
- \ No newline at end of file
- diff --git a/reco/.idea/misc.xml b/reco/.idea/misc.xml
- new file mode 100644
- index 0000000..0501769
- --- /dev/null
- +++ b/reco/.idea/misc.xml
- @@ -0,0 +1,9 @@
- +<?xml version="1.0" encoding="UTF-8"?>
- +<project version="4">
- + <component name="JavaScriptSettings">
- + <option name="languageLevel" value="ES6" />
- + </component>
- + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK">
- + <output url="file://$PROJECT_DIR$/grrec/build" />
- + </component>
- +</project>
- \ No newline at end of file
- diff --git a/reco/.idea/modules.xml b/reco/.idea/modules.xml
- new file mode 100644
- index 0000000..b2ea706
- --- /dev/null
- +++ b/reco/.idea/modules.xml
- @@ -0,0 +1,8 @@
- +<?xml version="1.0" encoding="UTF-8"?>
- +<project version="4">
- + <component name="ProjectModuleManager">
- + <modules>
- + <module fileurl="file://$PROJECT_DIR$/.idea/reco.iml" filepath="$PROJECT_DIR$/.idea/reco.iml" />
- + </modules>
- + </component>
- +</project>
- \ No newline at end of file
- diff --git a/reco/.idea/vcs.xml b/reco/.idea/vcs.xml
- new file mode 100644
- index 0000000..6c0b863
- --- /dev/null
- +++ b/reco/.idea/vcs.xml
- @@ -0,0 +1,6 @@
- +<?xml version="1.0" encoding="UTF-8"?>
- +<project version="4">
- + <component name="VcsDirectoryMappings">
- + <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
- + </component>
- +</project>
- \ No newline at end of file
- diff --git a/reco/buildforjetty/build_war.sh b/reco/buildforjetty/build_war.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/createLocalForCustomer.sh b/reco/buildforjetty/createLocalForCustomer.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/ear2war.sh b/reco/buildforjetty/ear2war.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/hotswap_exploded_localhost.sh b/reco/buildforjetty/hotswap_exploded_localhost.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/install_jetty.sh b/reco/buildforjetty/install_jetty.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/jetty_functions.sh b/reco/buildforjetty/jetty_functions.sh
- old mode 100644
- new mode 100755
- index 59c16b7..9899322
- --- a/reco/buildforjetty/jetty_functions.sh
- +++ b/reco/buildforjetty/jetty_functions.sh
- @@ -4,14 +4,12 @@
- # If not, then asks for permission and then downloads and extracts it.
- #export url=http://download.eclipse.org/jetty/8.1.5.v20120716/dist/jetty-distribution-8.1.5.v20120716.zip #http://download.eclipse.org/jetty/stable-8/dist/jetty-distribution-8.1.5.v20120716.zip
- -export url=http://devserver1/pila/jetty/jetty-distribution-8.1.5.v20120716.zip
- -export md5value=8e208fdf5d2c7b114cfe0fdbd1247d76 # md5sum for the above url
- +export url=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/8.1.5.v20120716/jetty-distribution-8.1.5.v20120716.zip
- export d="$(basename "$url" .zip)"
- function install_jetty {
- rm -f "$d.zip"
- wget "$url" || return
- - if [ "$(md5sum jetty-distribution-8.1.5.v20120716.zip | awk '{print $1}')" != "$md5value" ]; then echo "ERROR: md5sum of jetty-distribution-8.1.5.v20120716.zip is not $md5value; exiting"; fi
- unzip "$d.zip" || return
- }
- diff --git a/reco/buildforjetty/lib.sh b/reco/buildforjetty/lib.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/lib_win.sh b/reco/buildforjetty/lib_win.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/run_ear.sh b/reco/buildforjetty/run_ear.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/run_exploded.sh b/reco/buildforjetty/run_exploded.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/run_exploded_ant.sh b/reco/buildforjetty/run_exploded_ant.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/run_exploded_win.sh b/reco/buildforjetty/run_exploded_win.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/run_main.sh b/reco/buildforjetty/run_main.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/run_main_ant.sh b/reco/buildforjetty/run_main_ant.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/buildforjetty/run_war.sh b/reco/buildforjetty/run_war.sh
- old mode 100644
- new mode 100755
- diff --git a/reco/src/test/com/gravityrd/test/unittest/importer/ImporterCpTest.java b/reco/src/test/com/gravityrd/test/unittest/importer/ImporterCpTest.java
- deleted file mode 100644
- index 1db1aa1..0000000
- --- a/reco/src/test/com/gravityrd/test/unittest/importer/ImporterCpTest.java
- +++ /dev/null
- @@ -1,515 +0,0 @@
- -package com.gravityrd.test.unittest.importer;
- -
- -import com.gravityrd.receng.client.rpc.importer.EntityType;
- -import com.gravityrd.receng.client.rpc.importer.ImportParam;
- -import com.gravityrd.receng.client.rpc.importer.ImportSource;
- -import com.gravityrd.receng.main.Settings;
- -import com.gravityrd.receng.main.importer.ImportProcess;
- -import com.gravityrd.receng.main.schema.Schema;
- -import com.gravityrd.receng.main.util.StringUtil;
- -import com.gravityrd.receng.main.validation.Validators;
- -import com.gravityrd.recenginterface.main.FaultCode;
- -import com.gravityrd.recenginterface.main.FaultTrace;
- -import com.gravityrd.test.unittest.UnitTest;
- -import com.gravityrd.test.unittest.main.MyLog4jTestLogger;
- -import com.gravityrd.test.unittest.main.MyLoggingEvent;
- -import com.gravityrd.test.unittest.main.filesystem.IServer;
- -import com.gravityrd.test.unittest.main.filesystem.MyFtpServer;
- -import com.gravityrd.test.unittest.main.filesystem.MyHttpServer;
- -
- -import java.io.File;
- -import java.io.PrintWriter;
- -import java.util.ArrayList;
- -import java.util.Arrays;
- -import java.util.List;
- -
- -import org.apache.log4j.Level;
- -
- -import static org.junit.Assert.assertEquals;
- -
- -import org.junit.After;
- -import org.junit.Before;
- -import org.junit.Test;
- -
- -public class ImporterCpTest extends UnitTest {
- -
- - static {
- - Schema.init();
- - Validators.init();
- - com.gravityrd.receng.main.ConfigureLogging2.configureLogging();
- - MyLog4jTestLogger.setFilter("org\\.apache\\.ftpserver.*|org\\.apache\\.commons\\.httpclient.*");
- - }
- -
- - IServer[] testServers;
- - MyHttpServer testHttpServer;
- -
- - private int HTTP_PORT = 8998;
- - private int FTP_PORT = 8997;
- -
- - @Override
- - @Before
- - public void before() {
- - super.before();
- -
- - try {
- - IServer ftpServer = new MyFtpServer(unitTestBaseFolder);
- - IServer httpServer = new MyHttpServer(false);
- - testHttpServer = (MyHttpServer)httpServer;
- - testServers = new IServer[] { ftpServer.start(FTP_PORT), httpServer.start(HTTP_PORT) };
- - ((MyHttpServer) httpServer).setHomeDirectory(new java.io.File(unitTestBaseFolder, "importer/ImporterCpTest/inputs").getAbsolutePath());
- - logger.info("Http server home directory is " + ((MyHttpServer) httpServer).getHomeDirectory());
- - } catch (Exception ex) {
- - throw new RuntimeException("Server could not be started.", ex);
- - }
- - }
- -
- - @Override
- - @After
- - public void after() {
- - super.after();
- - try {
- - for (IServer server : testServers) {
- - server.stop();
- - }
- - } catch (Exception re) {
- - throw new RuntimeException("Server could not be stopped.", re);
- - }
- - }
- -
- -
- - private String[] userInputs = {
- - "UserId Country Zip Hidden UserType\n" +
- - "User001 HU 9225 0 CUSTOMER\n" +
- - "User002 HU 9225 1 CUSTOMER\n" +
- - "User003 HU 9225 true CUSTOMER \n" +
- - "User004 HU 9225 false CUSTOMER"
- - , //unknown element
- - "UserId Country Zip Hidden UserType Unknown\n" +
- - "User001 HU 9225 0 CUSTOMER\n" +
- - "User002 HU 9225 1 CUSTOMER\n" +
- - "User003 HU 9225 true CUSTOMER \n" +
- - "User004 HU 9225 false CUSTOMER"
- - , //unique id
- - "UserId Country Zip Hidden UserType\n" +
- - "User001 HU 9225 0 CUSTOMER\n" +
- - "User002 HU 9225 1 CUSTOMER\n" +
- - "User003 HU 9225 true CUSTOMER \n" +
- - "User002 HU 9225 false CUSTOMER"
- - , //constant value
- - "UserId Country Zip Hidden UserType\n" +
- - "User001 HU 9225 0 CUSTOMER\n" +
- - "User002 HU 9225 1 CUSTOMER\n" +
- - "User003 HU 9223 true CUSTOMER \n" +
- - "User004 HU 9225 false CUSTOMER"
- - , //Hidden
- - "UserId Country Zip Hidden UserType\n" +
- - "User001 HU 9225 0 CUSTOMER\n" +
- - "User002 HU 9225 1 CUSTOMER\n" +
- - "User003 HU 9225 True CUSTOMER \n" +
- - "User0041 HU 9225 false1 CUSTOMER"
- - , //Hidden
- - "UserId Country Zip Hidden UserType\n" +
- - "User001 HU 9225 0 CUSTOMER\n" +
- - "AUser0022 HU 9225 1 CUSTOMER\n" +
- - "User003 HU 9225 true CUSTOMER \n" +
- - "User004 HU 9225 false CUSTOMER"
- - ,
- - "UserId Country Zip Hidden UserType\n" +
- - "User001 HU 9225 0 CUSTOMER\n" +
- - "User002 HU 9225 1 CUSTOMER\n" +
- - "User003 HU 9225 true CUSTOMER \n" +
- - "User004 HU 9225 false CUSTOMER"
- - ,
- - "UserId Country Zip Hidden UserType\n" +
- - "User001 HU 9225 false CUSTOMER\n" +
- - "User002 HU 9225 false CUSTOMER\n" +
- - "User003 HU 9225 false CUSTOMER\n" +
- - "User004 HU 9225 false CUSTOMER NotSpecified Value\n" +
- - "User005 HU 9225 true CUSTOMER\n" +
- - "User006 HU 9225 true1 CUSTOMER"
- - };
- -
- -
- - @Test
- - public void testImporter1() throws Exception {
- - MyLoggingEvent[][] expectedEvents = new MyLoggingEvent[][]
- - {
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "MD5 hash value") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.ERROR, FaultCode.FAULT_UNKNOWN_HEADER, new FaultTrace("header", (String[])null )), $(Level.INFO, "MD5 hash value") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.WARN, FaultCode.VIOLATION_DUPLICATED_ID, new FaultTrace("Line 5", new String[] {"UserId"} )), $(Level.INFO, "MD5 hash value"), $(Level.INFO, "Validating completed, starting real import.") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.FATAL, FaultCode.VIOLATION_CONSTANT_FIELD, new FaultTrace("Line 4", new String[] {"Zip"} )) },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.ERROR, FaultCode.VIOLATION_BOOL_VALUE, new FaultTrace("Line 4", new String[] {"Hidden"})), $(Level.ERROR, FaultCode.VIOLATION_BOOL_VALUE, new FaultTrace("Line 5", new String[] {"Hidden"})), $(Level.INFO, "MD5 hash value"), $(Level.INFO, "Validating completed, starting real import.") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.ERROR, FaultCode.VIOLATION_PATTERN, new FaultTrace("Line 3", new String[] { "UserId"} )), $(Level.INFO, "MD5 hash value"), $(Level.INFO, "Validating completed, starting real import.") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "MD5 hash value"), $(Level.INFO, "Validating completed, starting real import.") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.ERROR, FaultCode.FAULT_UNKNOWN_PROPERTY, new FaultTrace("Line 5", new String[] {"NotSpecified"})), $(Level.ERROR, FaultCode.VIOLATION_BOOL_VALUE, new FaultTrace("Line 7", new String[] {"Hidden"})), $(Level.INFO, "MD5 hash value"), $(Level.INFO, "Validating completed, starting real import.") },
- - };
- -
- - MyLoggingEvent[] expcectedStopEvents = new MyLoggingEvent[] {
- - $(Level.INFO, "Validating completed, starting real import."),
- - $(Level.FATAL, "No items could be validated, aborting import."),
- - $(Level.INFO, "Import finished with 1 warnings and 0 errors."),
- - $(Level.INFO, "Finishing state state=VALIDATING_FAILED, validation accepted entries=2, validation skipped entries=1, imported entries=0."),
- - $(Level.INFO, "Import finished with 0 warnings and 2 errors."),
- - $(Level.INFO, "Import finished with 0 warnings and 1 errors."),
- - $(Level.INFO, "Import finished without warnings and errors."),
- - $(Level.INFO, "Import finished with 0 warnings and 2 errors."),
- - };
- -
- - testImporter("testImporter1", "users-test.csv", com.gravityrd.receng.client.rpc.importer.EntityType.USER, $(Level.INFO, "Validating input."), expcectedStopEvents, expectedEvents, userInputs);
- - }
- -
- -
- - private String[] userInputs2 = {
- - "UserId Country Zip Hidden UserType EventType Simple\n" +
- - "User001 HU 9225 0 CUSTOMER BUY OK\n" +
- - "User002 HU 9225 1 CUSTOMER BUY OK\n" +
- - "User003 HU 9225 true CUSTOMER BUY OK \n" +
- - "User004 HU 9225 false CUSTOMER BUY OK"
- - ,
- - "UserId Country Zip Hidden UserType EventType Simple\n" +
- - "User001 HU 9225 0 CUSTOMER BUY2 OK\n" +
- - "User002 HU 9225 1 CUSTOMER BUY OK\n" +
- - "User003 HU 9225 true CUSTOMER BUY OK \n" +
- - "User004 HU 9225 false CUSTOMER BUY"
- - ,
- - "UserId Country Zip Hidden UserType Ts UserZip City\n" +
- - "User001 NZ 9225 0 CUSTOMER 1230123023 100 Mudapest\n" +
- - "User002 NZ 9225 1 CUSTOMER 1230123023 100 Mudapest\n" +
- - "User003 NZ 9225 true CUSTOMER 1230123023 100 Mudapest\n" +
- - "User004 NZ 9225 false CUSTOMER 1230123023 100 Mudapest"
- - };
- -
- - @Test
- - public void testImporter2() throws Exception {
- - MyLoggingEvent[][] expectedEvents = new MyLoggingEvent[][]
- - {
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "Parsing input stream as tab delimited file."), $(Level.INFO, "MD5 hash value") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "Parsing input stream as tab delimited file."), $(Level.ERROR, FaultCode.VIOLATION_ENUM_CONTAINS, new FaultTrace("Line 2", new String[] { "EventType" } )), $(Level.ERROR, FaultCode.FAULT_MISSING_MANDATORY_PROPERTY, new FaultTrace("Line 5", (String[])null )), $(Level.INFO, "MD5 hash value") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "Parsing input stream as tab delimited file."), $(Level.INFO, "MD5 hash value") },
- - };
- -
- - MyLoggingEvent[] expcectedStopEvents = new MyLoggingEvent[] {
- - $(Level.INFO, "Validating completed, starting real import."),
- - $(Level.INFO, "Validating completed, starting real import."),
- - $(Level.INFO, "Validating completed, starting real import."),
- - };
- -
- - testImporter("testImporter2", "items-test.csv", EntityType.ITEM, $(Level.INFO, "Validating input"), expcectedStopEvents, expectedEvents, userInputs2);
- - }
- -
- -
- - private String[] eventInputs = {
- - "UserId ItemId EventId KeyValuesPacked\n" +
- - "User001 Item001 001 Nothing\n"
- - ,
- - "UserId ItemId EventId KeyValuesPacked\n" +
- - "User001 Item001 001 Nothing\n" +
- - "User002 Item002 Event001 Nothing\n"
- - };
- -
- - @Test
- - public void testImporter3() throws Exception {
- - MyLoggingEvent[][] expectedEvents = new MyLoggingEvent[][]
- - {
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "MD5 hash value"), $(Level.INFO, "Validating completed, starting real import.") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.ERROR, FaultCode.VIOLATION_LONG_VALUE, new FaultTrace("Line 3", new String[] { "EventId" } )), $(Level.INFO, "MD5 hash value"), $(Level.INFO, "Validating completed, starting real import.") },
- - };
- -
- - MyLoggingEvent[] expcectedStopEvents = new MyLoggingEvent[] {
- - $(Level.INFO, "Import finished without warnings and errors."),
- - $(Level.INFO, "Import finished with 0 warnings and 1 errors."),
- - };
- -
- - testImporter("testImporter3", "events-test.csv", EntityType.EVENT, $(Level.INFO, "Validating input"), expcectedStopEvents, expectedEvents, eventInputs);
- - }
- -
- -
- - private String[] metaInputs = {
- - "MetaId MetaKey MetaType\n" +
- - "Meta001 Key1 T2\n" +
- - "Meta002 Key2 T2\n"
- - ,
- - "MetaId MetaKey MetaType\n" +
- - "Meta001 Key1 T2\n" +
- - "Meta002 K T2\n"
- -
- - };
- -
- - //meta
- - @Test
- - public void testImporter4() throws Exception {
- -
- - String oldValue = Settings.getString(null, "validator.importerCp.meta");
- -
- - try {
- -
- - Settings.put("validator.importerCp.meta", "metametaInputValidator");
- -
- - MyLoggingEvent[][] expectedEvents = new MyLoggingEvent[][]
- - {
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "MD5 hash value"), $(Level.INFO, "Validating completed, starting real import.") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.ERROR, FaultCode.VIOLATION_STRING_MIN, new FaultTrace("Line 3", new String[] { "MetaKey" } )), $(Level.INFO, "MD5 hash value"), $(Level.INFO, "Validating completed, starting real import.") },
- - };
- -
- - MyLoggingEvent[] expcectedStopEvents = new MyLoggingEvent[] {
- - $(Level.INFO, "Import finished without warnings and errors."),
- - $(Level.INFO, "Import finished with 0 warnings and 1 errors."),
- - };
- -
- - testImporter("testImporter4", "meta-test.csv", EntityType.METAMETADATA, $(Level.INFO, "Validating input"), expcectedStopEvents, expectedEvents, metaInputs);
- -
- - } finally {
- - Settings.remove("validation");
- - if (oldValue != null) Settings.put("validator.importerCp.meta", oldValue);
- - }
- - }
- -
- - @Test
- - public void testImporter5() throws Exception {
- - String oldValue = Settings.getString(null, "validation");
- - logger.info("old value is : " + oldValue);
- - try {
- - Settings.put("validation", "importer.item");
- - Settings.refresh_Local();
- - MyLoggingEvent[][] expectedEvents = new MyLoggingEvent[][]
- - {
- - new MyLoggingEvent[] { $(Level.INFO, "Starting real import"), $(Level.INFO, "MD5 hash value") },
- - new MyLoggingEvent[] { $(Level.INFO, "Starting real import"), $(Level.INFO, "MD5 hash value") }
- - };
- -
- - MyLoggingEvent[] expcectedStopEvents = new MyLoggingEvent[] {
- - $(Level.INFO, "Import finished without warnings and errors."),
- - $(Level.INFO, "Import finished without warnings and errors."),
- - };
- -
- - testImporter("testImporter5", "events-test.csv", EntityType.EVENT, $(Level.INFO, "Skip validation, because validation!=all and does not contain [importerCp|importerCp.event]"), expcectedStopEvents, expectedEvents, eventInputs);
- -
- - } finally {
- - Settings.remove("validation");
- - if (oldValue != null) Settings.put("validation", oldValue);
- - }
- - }
- -
- - private String[] itemXmlInputs = {
- -
- - "<rss xmlns:g=\"http://base.google.com/ns/1.0\" xmlns:c=\"http://base.google.com/cns/1.0\" version=\"2.0\">" +
- - " <channel>" +
- - " <title>Bonuszbrigad item catalog</title>" +
- - " <link>http://www.bonuszbrigad.hu</link>" +
- - " <description>List of items to purchase at Bonuszbrigad Webshop</description>" +
- - " <item>" +
- - " <c:UserId>3627</c:UserId>" +
- - " <c:UserType>CUSTOMER</c:UserType>" +
- - " <c:hidden>0</c:hidden>" +
- - " <c:Country>HU</c:Country>" +
- - " <c:Zip>9225</c:Zip>" +
- - " <c:EventType>BUY</c:EventType>" +
- - " <c:Simple>OK</c:Simple>" +
- - " </item>" +
- - " <item>" +
- - " <c:UserId>3628</c:UserId>" +
- - " <c:UserType>CUSTOMER</c:UserType>" +
- - " <c:hidden>0</c:hidden>" +
- - " <c:Country>HU</c:Country>" +
- - " <c:Zip>9225</c:Zip>" +
- - " <c:EventType>BUY</c:EventType>" +
- - " <c:Simple>OK</c:Simple>" +
- - " </item>" +
- - " </channel>" +
- - "</rss>"
- - ,
- - "<rss xmlns:g=\"http://base.google.com/ns/1.0\" xmlns:c=\"http://base.google.com/cns/1.0\" version=\"2.0\">" +
- - " <channel>" +
- - " <title>Bonuszbrigad item catalog</title>" +
- - " <link>http://www.bonuszbrigad.hu</link>" +
- - " <description>List of items to purchase at Bonuszbrigad Webshop</description>" +
- - " <item>" +
- - " <c:UserId>3627</c:UserId>" +
- - " <c:UserType>CUSTOMER</c:UserType>" +
- - " <c:hidden>0</c:hidden>" +
- - " <c:Country>HU</c:Country>" +
- - " <c:Zip>9225</c:Zip>" +
- - " <c:EventType>BUY</c:EventType>" +
- - " <c:Simple>OK</c:Simple>" +
- - " </item>" +
- - " <item>" +
- - " <c:UserId>3628</c:UserId>" +
- - " <c:UserType>CUSTOMER</c:UserType>" +
- - " <c:hidden>0</c:hidden>" +
- - " <c:Country>HU</c:Country>" +
- - " <c:Zip>9223</c:Zip>" +
- - " <c:EventType>BUY</c:EventType>" +
- - " <c:Simple>OK</c:Simple>" +
- - " </item>" +
- - " </channel>" +
- - "</rss>"
- - };
- -
- - @Test
- - public void testImporterXml() throws Exception {
- - String oldValue = Settings.getString(null, "validation");
- - logger.info("old value is : " + oldValue);
- - try {
- - Settings.put("validation", "importerCp");
- - Settings.refresh_Local();
- - MyLoggingEvent[][] expectedEvents = new MyLoggingEvent[][]
- - {
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "Parsing input stream as xml.") ,$(Level.INFO, "MD5 hash value") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "Parsing input stream as xml.") ,$(Level.FATAL, FaultCode.VIOLATION_CONSTANT_FIELD, new FaultTrace("Item starting at line 1, index of item: 3", new String[] { "Zip" } )) },
- - };
- -
- - MyLoggingEvent[] expcectedStopEvents = new MyLoggingEvent[] {
- - $(Level.INFO, "Validating completed, starting real import."),
- - $(Level.INFO, "Finishing state state=VALIDATING_FAILED"),
- - };
- -
- - testImporter("testImporterXml", "items-test.xml", EntityType.ITEM, $(Level.INFO, "Validating input"), expcectedStopEvents, expectedEvents, itemXmlInputs);
- - } finally {
- - Settings.remove("validation");
- - if (oldValue != null) Settings.put("validation", oldValue);
- - }
- - }
- -
- -
- - @Test
- - public void testImporterBadXml() throws Exception {
- - String oldValue = Settings.getString(null, "validation");
- - logger.info("old value is : " + oldValue);
- - try {
- -
- - testHttpServer.addMaxContentLength(-1);
- - testHttpServer.addMaxContentLength(-1);
- - testHttpServer.addMaxContentLength(700);
- - testHttpServer.addMaxContentLength(700);
- -
- -
- - Settings.put("validation", "importerCp");
- - Settings.refresh_Local();
- - MyLoggingEvent[][] expectedEvents = new MyLoggingEvent[][]
- - {
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "Parsing input stream as xml.") ,$(Level.INFO, "MD5 hash value") },
- - new MyLoggingEvent[] { $(Level.INFO, "Opening input file as uncompressed stream."), $(Level.INFO, "Parsing input stream as xml.") ,$(Level.FATAL, FaultCode.VIOLATION_CONSTANT_FIELD, new FaultTrace("Item starting at line 1, index of item: 3", new String[] { "Zip" } )) },
- - };
- -
- - MyLoggingEvent[] expcectedStopEvents = new MyLoggingEvent[] {
- - $(Level.INFO, "Validating completed, starting real import."),
- - $(Level.INFO, "Finishing state state=VALIDATING_FAILED"),
- - };
- -
- - testImporter("testImporterBadXml", "items-test-bad.xml", EntityType.ITEM, $(Level.INFO, "Validating input"), expcectedStopEvents, expectedEvents, itemXmlInputs);
- - } finally {
- - Settings.remove("validation");
- - if (oldValue != null) Settings.put("validation", oldValue);
- - }
- - }
- -
- -
- - public void testImporter(String testCase, String fileName, EntityType entityType, MyLoggingEvent startEvent, MyLoggingEvent[] stopEvents, MyLoggingEvent[][] expectedEvents, String[] inputs) throws Exception {
- - testImporter(testCase, fileName, entityType, startEvent, stopEvents, expectedEvents, inputs, 3, 3, new ImportSource.SourceType[] { ImportSource.SourceType.TEMP_FILE, ImportSource.SourceType.FTP, ImportSource.SourceType.URL } );
- - }
- -
- - public void testImporter(String testCase, String fileName, EntityType entityType, MyLoggingEvent startEvent, MyLoggingEvent[] stopEvents, MyLoggingEvent[][] expectedEvents, String[] inputs, int warningLimit, int errorLimit, ImportSource.SourceType[] sources) throws Exception {
- -
- - logger.info("----------------------------------------");
- - logger.info(" Running " + testCase);
- - logger.info("----------------------------------------");
- -
- - String filePath = new File(testFolder, "inputs/" + fileName).getAbsolutePath();
- -
- - for (int index = 0; index < inputs.length; index++) {
- - logger.info("Index : " + index);
- - logger.info("----------------------------------------");
- -
- -
- - PrintWriter pw = null;
- - try {
- - pw = new PrintWriter(filePath);
- - pw.println(inputs[index]);
- - } finally {
- - if (pw != null) pw.close();
- - }
- -
- - //same code as in DummyImportManager.startImport(ImportParam importParam)
- -
- -
- - for (ImportSource.SourceType sourceType : sources) {
- -
- - MyLog4jTestLogger.clearLoggingEvents();
- -
- - ImportSource source = null;
- -
- - if (ImportSource.SourceType.TEMP_FILE == sourceType) {
- - source = new ImportSource(filePath, ImportSource.SourceType.TEMP_FILE);
- - } else if (ImportSource.SourceType.FTP == sourceType) {
- - source = new ImportSource("ftp://localhost:8997/" + fileName, ImportSource.SourceType.URL);
- - source.setUserName("testuser");
- - source.setPassword("grav1t1");
- - } else if (ImportSource.SourceType.URL == sourceType) {
- - source = new ImportSource("http://localhost:8998/" + fileName, ImportSource.SourceType.URL);
- - source.setUserName("testuser");
- - source.setPassword("grav1t1");
- - }
- - logger.info("Import source is " + sourceType);
- - logger.info("----------------------------------------");
- -
- - //EntityType type, ImportSource source, boolean validateOnly, boolean deleteTempFileAfterImport
- - ImportParam importParam = new ImportParam(entityType, source, false, false);
- - EntityType type = importParam.getType();
- - ImportSource importSource = importParam.getSource();
- - boolean validateOnly = importParam.isValidateOnly();
- - boolean incItemImport = importParam.isIncItemImport();
- - final ImportProcess importProcess = new ImportProcess(type, importSource, false);
- - importProcess.setJobId(1);
- -
- - importProcess.setValidateOnly(validateOnly);
- - importProcess.setIncItemImport(incItemImport);
- -
- - //FIXME: from config
- - importProcess.setWarningLimit(warningLimit);
- - importProcess.setErrorLimit(errorLimit);
- -
- - importProcess.setDeleteTempFileAfterImport(importParam.isDeleteTempFileAfterImport());
- - importProcess.startImport();
- -
- -
- - List<MyLoggingEvent> events = MyLog4jTestLogger.getLoggingEvents();
- - List<MyLoggingEvent> innerEvents = new ArrayList<MyLoggingEvent>();
- -
- - boolean add = false;
- - int nr = 1;
- - for (MyLoggingEvent e : events) {
- -
- - if (stopEvents[index].equals(e)) { add = false; break; }
- -
- - if (add) innerEvents.add(e);
- - if (startEvent.equals(e)) add = true;
- - nr++;
- - }
- -
- - StringBuilder sb = new java.lang.StringBuilder();
- - sb.append(String.format("Index : %1$s, sourceType = %2$s expected.size = %3$s and innerEvents.size = %4$s\n", index, sourceType, expectedEvents[index].length, innerEvents.size()));
- - sb.append("Expected:\n");
- - sb.append(StringUtil.join(Arrays.asList(expectedEvents[index]), "\n"));
- - sb.append("\nGot:\n");
- - sb.append(StringUtil.join(innerEvents, "\n"));
- - assertEquals(sb.toString(), expectedEvents[index].length, innerEvents.size());
- -
- -
- - int eIndex = 0;
- -
- - for (MyLoggingEvent i : innerEvents) {
- - String message = "Index : " + index + " Inner index : " + eIndex;
- - assertEquals(message, expectedEvents[index][eIndex], i);
- - eIndex++;
- - }
- - } //end of sources
- -
- - index++;
- - }
- - }
- -
- - public MyLoggingEvent $(Level level, FaultCode faultCode, FaultTrace faultTrace) { return new MyLoggingEvent(level, faultCode, faultTrace); }
- - public MyLoggingEvent $(Level level, String message, Throwable t) { return new MyLoggingEvent(level, message, t); }
- - public MyLoggingEvent $(Level level, String message) { return new MyLoggingEvent(level, message); }
- -
- -}
- diff --git a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/FtpTest.java b/reco/src/test/com/gravityrd/test/unittest/main/filesystem/FtpTest.java
- deleted file mode 100644
- index d110f94..0000000
- --- a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/FtpTest.java
- +++ /dev/null
- @@ -1,92 +0,0 @@
- -package com.gravityrd.test.unittest.main.filesystem;
- -
- -import com.gravityrd.test.unittest.*;
- -import com.gravityrd.test.unittest.main.*;
- -import com.gravityrd.receng.main.util.filesystem.*;
- -
- -import org.apache.commons.vfs2.FileSystemException;
- -import org.apache.commons.vfs2.FileObject;
- -
- -import static org.junit.Assert.assertEquals;
- -import static org.junit.Assert.assertTrue;
- -
- -import org.junit.After;
- -import org.junit.Before;
- -import org.junit.Test;
- -
- -import java.io.BufferedReader;
- -import java.io.InputStreamReader;
- -
- -/**
- -* Test for FTPFileSystem class.
- -* The Ftp server is hosted in the same Java process using the MyFtpServer class which is based on Apache Mina FtpServer. The username and password is configured in the <git>/scripts/unittest/resources/ftp/conf/user.properties file.
- -* Please note that the value of the password property is the MD5 hash of the original password. The home folder of the "admin" user is <git>/scripts/unittest/resources/ftp/home where 2 file is located with name "file" and "content".
- -* The first line is "Hello world" in each file.
- -*/
- -public class FtpTest extends FileSystemTest {
- -
- -
- - private static int FTP_PORT = 8999;
- - private String FTP_PASS = "admin";
- - private String FTP_USER = "admin";
- - private int FTP_READ_TIMEOUT = 7000;
- - private int FTP_CONNECT_TIMEOUT = 7000;
- -
- - public FtpTest() {
- - super(new MyFtpServer(), FTP_PORT);
- - }
- -
- - // Connect to Ftp server many times. If the FTPFileSystem class or the VFS library contains connection bugs the max connection limit is reached.
- - // Passive mode
- - @Test
- - public void testManyPassiveFtpConnections() throws Exception {
- - for (int i = 0; i < 100; i++) {
- - doJobs(new IJob[] { new ListAndCompare() }, false);
- - }
- - }
- -
- - // Connect to Ftp server many times. If the FTPFileSystem class or the VFS library contains connection bugs the max connection limit is reached.
- - // Active mode
- - @Test
- - public void testManyActiveFtpConnections() throws Exception {
- - for (int i = 0; i < 100; i++) {
- - doJobs(new IJob[] { new ListAndCompare() }, true);
- - }
- - }
- -
- - @Test
- - public void testConnectTimeoutOrRefused() throws Exception {
- - //Not really good scenario because of the in process ftp server. We should test with a separate ftp server which we can stop on demand with 'kill -STOP pid'
- - server.stop();
- - logger.info("Ftp server stopped.");
- - try {
- - doJobs(new IJob[] { new ReadToTheEnd() }, false);
- - assertTrue("We expect exception.", false);
- - } catch (FileSystemException fsex) {
- - logger.error("Connection error.", fsex);
- - assertTrue(true);
- - }
- - server.start(FTP_PORT);
- - logger.info("Ftp server started.");
- - }
- -
- -
- - // Test file operations (create, delete, list)
- - @Test
- - public void testFileOperations() throws Exception {
- - doJobs(new IJob[] { new ListAndCompare() , new CreateFile(), new DeleteFile(), new ListAndCompare() , new ReadToTheEnd()}, false);
- - }
- -
- - private void doJobs(IJob[] jobs, boolean activeFtp) throws Exception {
- -
- - FileSystem fs = FileSystemFactory.createFtpFileSystem("localhost", FTP_PORT, ".", FTP_USER, FTP_PASS, activeFtp, FTP_CONNECT_TIMEOUT, FTP_READ_TIMEOUT);
- - fs.mount();
- - for (IJob job : jobs) {
- - logger.info("----------------------------------------------------------------");
- - logger.info(" job : " + job.getClass().getName());
- - logger.info("----------------------------------------------------------------");
- - job.doIt(fs);
- - }
- - fs.umount();
- - }
- -}
- diff --git a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/HttpTest.java b/reco/src/test/com/gravityrd/test/unittest/main/filesystem/HttpTest.java
- deleted file mode 100644
- index 98f5d2e..0000000
- --- a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/HttpTest.java
- +++ /dev/null
- @@ -1,94 +0,0 @@
- -package com.gravityrd.test.unittest.main.filesystem;
- -
- -import com.gravityrd.test.unittest.*;
- -import com.gravityrd.test.unittest.main.*;
- -import com.gravityrd.receng.main.util.filesystem.*;
- -
- -import org.apache.commons.vfs2.FileObject;
- -
- -import static org.junit.Assert.assertEquals;
- -import static org.junit.Assert.assertTrue;
- -
- -import org.junit.After;
- -import org.junit.Before;
- -import org.junit.Test;
- -
- -import org.apache.commons.vfs2.FileSystemException;
- -
- -import java.io.BufferedReader;
- -import java.io.InputStreamReader;
- -
- -/**
- -* Test for HTTPFileSystem class.
- -*/
- -public class HttpTest extends FileSystemTest {
- -
- - private static int HTTP_PORT = 8999;
- - private String HTTP_PASS = "admin";
- - private String HTTP_USER = "admin";
- - private int HTTP_READ_TIMEOUT = 7000;
- - private int HTTP_CONNECT_TIMEOUT = 7000;
- -
- - public HttpTest() {
- - super(new MyHttpServer(false), HTTP_PORT);
- - }
- -
- - // Connect to Http server many times.
- - @Test
- - public void testManyHttpConnections() throws Exception {
- - logger.info("----------------------------------------------------------------");
- - logger.info("testManyHttpConnections");
- - logger.info("----------------------------------------------------------------");
- - for (int i = 0; i < 100; i++) {
- - doJobs(new IJob[] { new GetAndCompare() }, null, null);
- - }
- - }
- -
- - @Test
- - public void testBasicAuthentication() throws Exception {
- - logger.info("----------------------------------------------------------------");
- - logger.info("testBasicAuthentication");
- - logger.info("----------------------------------------------------------------");
- - ((MyHttpServer) server).setUserName(HTTP_USER);
- - ((MyHttpServer) server).setPassword(HTTP_PASS);
- -
- - for (int i = 0; i < 10; i++) {
- - doJobs(new IJob[] { new GetAndCompare() }, HTTP_USER, HTTP_PASS);
- - }
- -
- - ((MyHttpServer) server).setUserName(null);
- - ((MyHttpServer) server).setPassword(null);
- - }
- -
- - @Test
- - public void testConnectTimeoutOrRefused() throws Exception {
- - //Not really good scenario because of the in process ftp server. We should test with a separate ftp server which we can stop on demand with 'kill -STOP pid'
- - logger.info("----------------------------------------------------------------");
- - logger.info("testConnectTimeoutOrRefused");
- - logger.info("----------------------------------------------------------------");
- - server.stop();
- - try {
- - doJobs(new IJob[] { new ReadToTheEnd() }, null, null);
- - assertTrue("We expect exception.", false);
- - } catch (FileSystemException fsex) {
- - logger.error("Connection error.", fsex);
- - assertTrue(true);
- - }
- - server.start(HTTP_PORT);
- -
- - }
- -
- -
- - private void doJobs(IJob[] jobs, String userName, String password) throws Exception {
- - FileSystem fs = FileSystemFactory.createHttpFileSystem("localhost", HTTP_PORT, userName, password, HTTP_CONNECT_TIMEOUT, HTTP_READ_TIMEOUT);
- - fs.mount();
- - assertTrue("Connected", true);
- - for (IJob job : jobs) {
- - logger.info("----------------------------------------------------------------");
- - logger.info(" job : " + job.getClass().getName());
- - logger.info("----------------------------------------------------------------");
- - job.doIt(fs);
- - }
- - fs.umount();
- - }
- -}
- diff --git a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/HttpsTest.java b/reco/src/test/com/gravityrd/test/unittest/main/filesystem/HttpsTest.java
- deleted file mode 100644
- index 2d02ac3..0000000
- --- a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/HttpsTest.java
- +++ /dev/null
- @@ -1,88 +0,0 @@
- -package com.gravityrd.test.unittest.main.filesystem;
- -
- -import com.gravityrd.test.unittest.*;
- -import com.gravityrd.test.unittest.main.*;
- -import com.gravityrd.receng.main.util.filesystem.*;
- -
- -import org.apache.commons.vfs2.FileObject;
- -
- -import static org.junit.Assert.assertEquals;
- -import static org.junit.Assert.assertTrue;
- -
- -import org.apache.commons.vfs2.FileSystemException;
- -
- -import org.junit.After;
- -import org.junit.Before;
- -import org.junit.Test;
- -
- -import java.io.BufferedReader;
- -import java.io.InputStreamReader;
- -
- -/**
- -* Test for HTTPSFileSystem class.
- -*/
- -public class HttpsTest extends FileSystemTest {
- -
- - private static int HTTPS_PORT = 8999;
- - private String HTTPS_PASS = "admin";
- - private String HTTPS_USER = "admin";
- - private int HTTPS_READ_TIMEOUT = 7000;
- - private int HTTPS_CONNECT_TIMEOUT = 7000;
- -
- - public HttpsTest() {
- - super(new MyHttpServer(true), HTTPS_PORT);
- - }
- -
- - // Connect to Http server many times.
- - @Test
- - public void testManyHttpConnections() throws Exception {
- - logger.info("testManyHttpConnections");
- - for (int i = 0; i < 1; i++) {
- - doJobs(new IJob[] { new ReadToTheEnd() }, null, null);
- - }
- - }
- -
- - @Test
- - public void testBasicAuthentication() throws Exception {
- -
- - logger.info("testBasicAuthentication");
- - ((MyHttpServer) server).setUserName(HTTPS_USER);
- - ((MyHttpServer) server).setPassword(HTTPS_PASS);
- -
- - for (int i = 0; i < 10; i++) {
- - doJobs(new IJob[] { new GetAndCompare() }, HTTPS_USER, HTTPS_PASS);
- - }
- -
- - ((MyHttpServer) server).setUserName(null);
- - ((MyHttpServer) server).setPassword(null);
- - }
- -
- - @Test
- - public void testConnectTimeoutOrRefused() throws Exception {
- - //Not really good scenario because of the in process ftp server. We should test with a separate ftp server which we can stop on demand with 'kill -STOP pid'
- - server.stop();
- - try {
- - doJobs(new IJob[] { new ReadToTheEnd() }, null, null);
- - assertTrue("We expect exception.", false);
- - } catch (FileSystemException fsex) {
- - logger.error("Connection error.", fsex);
- - assertTrue(true);
- - }
- - server.start(HTTPS_PORT);
- -
- - }
- -
- - private void doJobs(IJob[] jobs, String userName, String password) throws Exception {
- -
- - FileSystem fs = FileSystemFactory.createHttpsFileSystem("localhost", HTTPS_PORT, userName, password, HTTPS_CONNECT_TIMEOUT, HTTPS_READ_TIMEOUT);
- - fs.mount();
- - for (IJob job : jobs) {
- - logger.info("----------------------------------------------------------------");
- - logger.info(" job : " + job.getClass().getName());
- - logger.info("----------------------------------------------------------------");
- - job.doIt(fs);
- - }
- -
- - fs.umount();
- - }
- -}
- diff --git a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/MyFtpServer.java b/reco/src/test/com/gravityrd/test/unittest/main/filesystem/MyFtpServer.java
- deleted file mode 100644
- index d0da681..0000000
- --- a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/MyFtpServer.java
- +++ /dev/null
- @@ -1,60 +0,0 @@
- -package com.gravityrd.test.unittest.main.filesystem;
- -
- -import java.io.File;
- -
- -import org.apache.ftpserver.FtpServer;
- -import org.apache.ftpserver.FtpServerFactory;
- -import org.apache.ftpserver.listener.ListenerFactory;
- -import org.apache.ftpserver.ssl.SslConfigurationFactory;
- -import org.apache.ftpserver.usermanager.PropertiesUserManagerFactory;
- -
- -import org.apache.log4j.Logger;
- -import org.apache.log4j.Level;
- -/**
- -* @author joe
- -*/
- -//Lightweight Ftp server based on Apache Mina.
- -public class MyFtpServer implements IServer {
- -
- - private FtpServer server = null;
- - private String unitTestBaseFolder = null;
- - protected static Logger logger = Logger.getLogger(MyFtpServer.class);
- -
- - public MyFtpServer(String baseFolder) {
- - this.unitTestBaseFolder = baseFolder;
- - }
- -
- - public MyFtpServer() {
- -
- - }
- -
- - @Override
- - public IServer start(int port) throws Exception {
- - FtpServerFactory serverFactory = new FtpServerFactory();
- - ListenerFactory factory = new ListenerFactory();
- - // set the port of the listener
- - factory.setPort(port);
- - // replace the default listener
- - serverFactory.addListener("default", factory.createListener());
- - PropertiesUserManagerFactory userManagerFactory = new PropertiesUserManagerFactory();
- - File userFile = new File(unitTestBaseFolder, "resources/ftp/conf/users.properties");
- - logger.info("Loading user file from : " + userFile.getAbsolutePath());
- - userManagerFactory.setFile(userFile);
- - serverFactory.setUserManager(userManagerFactory.createUserManager());
- - // start the server
- - server = serverFactory.createServer();
- - server.start();
- - logger.info("Ftp server started");
- - return this;
- - }
- -
- - @Override
- - public void stop() throws Exception {
- - server.stop();
- - }
- -
- - @Override
- - public void setRoot(String value) {
- - this.unitTestBaseFolder = value;
- - }
- -}
- \ No newline at end of file
- diff --git a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/MyHttpServer.java b/reco/src/test/com/gravityrd/test/unittest/main/filesystem/MyHttpServer.java
- deleted file mode 100644
- index 10127e5..0000000
- --- a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/MyHttpServer.java
- +++ /dev/null
- @@ -1,237 +0,0 @@
- -package com.gravityrd.test.unittest.main.filesystem;
- -
- -import org.simpleframework.http.core.Container;
- -import org.simpleframework.transport.connect.Connection;
- -import org.simpleframework.transport.connect.SocketConnection;
- -import org.simpleframework.http.Response;
- -import org.simpleframework.http.Request;
- -import org.simpleframework.http.Path;
- -
- -import javax.net.ssl.*;
- -import java.io.FileInputStream;
- -import java.security.KeyStore;
- -import java.net.InetSocketAddress;
- -import java.net.SocketAddress;
- -import java.io.PrintStream;
- -import java.util.StringTokenizer;
- -import java.util.Properties;
- -import java.io.File;
- -import java.util.LinkedList;
- -import org.apache.commons.codec.binary.Base64;
- -import org.apache.log4j.Logger;
- -import org.apache.log4j.Level;
- -
- -
- -public class MyHttpServer implements IServer, Container {
- -
- - private boolean withSSL = false;
- - private String unitTestBaseFolder = null;
- - private String homeDir = null;
- - Properties prop = new Properties();
- - private String userName = null;
- - private String password = null;
- - private LinkedList<Integer> maxContentLengths = new LinkedList<Integer>();
- - protected static Logger logger = Logger.getLogger(MyHttpServer.class);
- -
- - private Connection connection = null;
- -
- - public MyHttpServer(boolean withSSL) {
- - this.withSSL = withSSL;
- - }
- -
- - public void handle(Request request, Response response) {
- - PrintStream body = null;
- - Path path = request.getPath();
- - String pathStr = path.getPath();
- - String name = path.getName();
- - String dir = path.getDirectory();
- - logger.debug("HTTP request: " + path);
- -
- - boolean contentRequired = !pathStr.equals("/");
- - logger.debug("Content required : " + contentRequired);
- - try {
- -
- - body = response.getPrintStream();
- - long time = System.currentTimeMillis();
- -
- - response.setDate("Date", time);
- - response.setDate("Last-Modified", time);
- - response.set("Server", "Gravity test server/1.0");
- -
- - if (!contentRequired) {
- - response.set("Content-Type", "text/plain");
- - } else {
- - response.set("Content-Type", "application/octet-stream");
- - }
- -
- - String lusername = (userName == null ? prop.getProperty("httpserver.username") : userName);
- - String lpassword = (password == null ? prop.getProperty("httpserver.password") : password);
- -
- - if (lusername != null && lpassword != null && lpassword.length() > 0 && lusername.length() > 0) {
- - logger.debug("Authorization started. UserName = " + lusername + " Password = " + lpassword);
- - boolean valid = false;
- - String authHeader = request.getValue("Authorization");
- - logger.debug("Authorization header : " + authHeader);
- - if (authHeader != null) {
- - StringTokenizer st = new StringTokenizer(authHeader);
- - if (st.hasMoreTokens()) {
- - String basic = st.nextToken();
- - if (basic.equalsIgnoreCase("Basic")) {
- - String credentials = st.nextToken();
- - String userPass = base64decode(credentials);
- - int p = userPass.indexOf(":");
- - if (p != -1) {
- - String userID = userPass.substring(0, p);
- - String pw = userPass.substring(p + 1);
- - logger.debug("Probe : UserName = '" + userID + "' Password = '" + pw + "'.");
- - if (userID.equals(lusername) && pw.equals(lpassword)) {
- - valid = true;
- - }
- - }
- - }
- - }
- - }
- -
- - if (!valid) {
- - logger.error("Authorization failed.");
- - String s = "Basic realm=\"SimpleLogin\"";
- - response.add("WWW-Authenticate", s);
- - response.setCode(401);
- - body.println("Unauthorized.");
- - return;
- - } else {
- - logger.debug("Authorization finished.");
- - }
- - }
- -
- - if (contentRequired) {
- -
- - Integer maxContentLength = maxContentLengths.poll();
- -
- - File resource = new File(homeDir, pathStr);
- - logger.debug("Read content from file : " + resource.getAbsolutePath());
- - if (!resource.exists()) {
- - response.setCode(404);
- - body.println("Not found.");
- - return;
- - }
- -
- - FileInputStream fis = new FileInputStream (resource);
- - //write file to the stream
- - long size = resource.length();
- - response.set("Content-Length", String.valueOf(size));
- - long totalBytes = 0;
- -
- - try {
- - int readBytes;
- - byte[] buffer = new byte[100];
- - if (maxContentLength != null) logger.info("Maximum content length is : " + maxContentLength);
- - while ((readBytes = fis.read(buffer, 0, buffer.length)) > 0) {
- - if (maxContentLength != null && maxContentLength != -1 && (totalBytes + readBytes) > maxContentLength) break;
- - body.write(buffer, 0, readBytes);
- - totalBytes += readBytes;
- -
- - }
- - } finally {
- - fis.close();
- - }
- -
- - } else {
- - logger.info("Hello world to the client");
- - body.println("Hello world.");
- - }
- -
- - } catch (Exception ex) {
- - throw new RuntimeException("Request error.", ex);
- - } finally {
- - body.close();
- - }
- - }
- -
- - public String base64decode(String s) {
- - if (s == null) return null;
- -
- - try {
- - String charset = "ISO-8859-1";
- - return new String(Base64.decodeBase64(s.getBytes(charset)), charset);
- - } catch (Exception e) {
- - logger.error("Decode error.", e);
- - return null;
- - }
- - }
- -
- -
- -
- -
- - @Override
- - public IServer start(int port) throws Exception {
- -
- - Container container = this;
- - connection = new SocketConnection(container);
- -
- - SSLContext sslContext = null;
- -
- - if (withSSL) {
- - logger.info("Initialize server with TLS");
- - sslContext = SSLContext.getInstance ( "TLS" );
- -
- - // initialise the keystore
- - char[] password = "simulator".toCharArray ();
- - KeyStore ks = KeyStore.getInstance ( "JKS" );
- - FileInputStream fis = new FileInputStream ( "resources/http/test.keystore" );
- - ks.load ( fis, password );
- -
- - // setup the key manager factory
- - KeyManagerFactory kmf = KeyManagerFactory.getInstance ( "SunX509" );
- - kmf.init ( ks, password );
- -
- - // setup the trust manager factory
- - TrustManagerFactory tmf = TrustManagerFactory.getInstance ( "SunX509" );
- - tmf.init ( ks );
- -
- - // setup the HTTPS context and parameters
- - sslContext.init ( kmf.getKeyManagers (), tmf.getTrustManagers (), null );
- - logger.info("Security context created.");
- - }
- -
- - SocketAddress address = new InetSocketAddress(port);
- -
- - //loadin properties
- -
- - prop.load(new FileInputStream("resources/http/conf/http.conf"));
- - File hDir = new File(prop.getProperty("httpserver.homedirectory"));
- - if (!hDir.exists()) {
- - throw new java.io.FileNotFoundException("Home directory " + prop.getProperty("httpserver.homedirectory") + " not exist.");
- - }
- -
- - homeDir = hDir.getAbsolutePath();
- - logger.info("Http home direytory : " + homeDir);
- -
- -
- - if (!withSSL) connection.connect(address);
- - else connection.connect(address, sslContext);
- - return this;
- - }
- -
- - @Override
- - public void stop() throws Exception {
- - connection.close();
- - }
- -
- - @Override
- - public void setRoot(String value) { this.unitTestBaseFolder = value; }
- -
- - public void setUserName(String value) { this.userName = value; }
- -
- - public String getUserName() { return this.userName; }
- -
- - public void setPassword(String value) { this.password = value; }
- -
- - public String getPassword() { return this.password; }
- -
- - public void setHomeDirectory(String value) { this.homeDir = value; }
- -
- - public String getHomeDirectory() { return this.homeDir; }
- -
- - public void addMaxContentLength(int value) { maxContentLengths.add(value); }
- -}
- \ No newline at end of file
- diff --git a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/MySshServer.java b/reco/src/test/com/gravityrd/test/unittest/main/filesystem/MySshServer.java
- deleted file mode 100644
- index 05c45f9..0000000
- --- a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/MySshServer.java
- +++ /dev/null
- @@ -1,64 +0,0 @@
- -package com.gravityrd.test.unittest.main.filesystem;
- -
- -import java.util.ArrayList;
- -import java.util.List;
- -
- -import org.apache.sshd.SshServer;
- -import org.apache.sshd.common.NamedFactory;
- -import org.apache.sshd.server.Command;
- -import org.apache.sshd.server.CommandFactory;
- -import org.apache.sshd.server.PasswordAuthenticator;
- -import org.apache.sshd.server.command.ScpCommandFactory;
- -import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
- -import org.apache.sshd.server.session.ServerSession;
- -import org.apache.sshd.server.sftp.SftpSubsystem;
- -
- -//Lightweight Ssh server based on Apache Mina.
- -public class MySshServer implements IServer {
- -
- - SshServer sshd = null;
- - private String unitTestBaseFolder = null;
- -
- - @Override
- - public IServer start(int port) throws Exception {
- -
- - sshd = SshServer.setUpDefaultServer();
- - sshd.setPort(port);
- - sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider("hostkey.ser"));
- - sshd.setPasswordAuthenticator(new PasswordAuthenticator() {
- -
- - public boolean authenticate(String username, String password,
- - ServerSession session) {
- -
- - return true;
- - }
- - });
- -
- - CommandFactory myCommandFactory = new CommandFactory() {
- -
- - public Command createCommand(String command) {
- - System.out.println("Command: " + command);
- - return null;
- - }
- - };
- -
- - sshd.setCommandFactory(new ScpCommandFactory(myCommandFactory));
- - List<NamedFactory<Command>> namedFactoryList = new ArrayList<NamedFactory<Command>>();
- - namedFactoryList.add(new SftpSubsystem.Factory());
- - sshd.setSubsystemFactories(namedFactoryList);
- -
- - sshd.start();
- - return this;
- - }
- -
- - @Override
- - public void stop() throws Exception {
- - sshd.stop();
- - }
- -
- - @Override
- - public void setRoot(String value) {
- - this.unitTestBaseFolder = value;
- - }
- -
- -}
- \ No newline at end of file
- diff --git a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/SftpTest.java b/reco/src/test/com/gravityrd/test/unittest/main/filesystem/SftpTest.java
- deleted file mode 100644
- index 51af6ff..0000000
- --- a/reco/src/test/com/gravityrd/test/unittest/main/filesystem/SftpTest.java
- +++ /dev/null
- @@ -1,66 +0,0 @@
- -package com.gravityrd.test.unittest.main.filesystem;
- -
- -import com.gravityrd.test.unittest.*;
- -import com.gravityrd.test.unittest.main.*;
- -import com.gravityrd.receng.main.util.filesystem.*;
- -
- -import org.apache.commons.vfs2.FileObject;
- -
- -import static org.junit.Assert.assertEquals;
- -import static org.junit.Assert.assertTrue;
- -import static org.junit.Assert.assertArrayEquals;
- -
- -
- -import org.junit.Test;
- -
- -import java.io.BufferedReader;
- -import java.io.InputStreamReader;
- -import java.io.PrintWriter;
- -import java.io.OutputStream;
- -import java.util.ArrayList;
- -
- -/**
- -* Test for SFTPFileSystem class.
- -* The Ssh server is hosted in the same Java process using the MySshServer class which is based on Apache Mina SSHD. The username and password is not used, every user is authenticated.
- -* The home folder of the "admin" user is <git>/scripts/unittest/resources/sftp where 2 file is located with name "file" and "content".
- -* The first line is "Hello world" in each file.
- -*/
- -public class SftpTest extends FileSystemTest {
- -
- - private static int SSH_PORT = 8998;
- - private String SSH_PASS = "admin";
- - private String SSH_USER = "admin";
- - private int SSH_CONNECT_TIMEOUT = 7000;
- - private int SSH_READ_TIMEOUT = 7000;
- -
- - public SftpTest() {
- - super(new MySshServer(), SSH_PORT);
- - }
- -
- - // Connect to Sssh server many times. If the SFTPFileSystem class or the VFS library contains connection bugs the max connection limit is reached.
- - @Test
- - public void testManySshConnections() throws Exception {
- - for (int i = 0; i < 100; i++) {
- - doJobs(new IJob[] { new ListAndCompare() });
- - }
- - }
- -
- - // Test file operations (create, delete, list)
- - @Test
- - public void testFileOperations() throws Exception {
- - doJobs(new IJob[] { new ListAndCompare() , new CreateFile(), new DeleteFile(), new ListAndCompare() });
- - }
- -
- - private void doJobs(IJob[] jobs) throws Exception {
- -
- - FileSystem fs = FileSystemFactory.createSftpFileSystem("localhost", SSH_PORT, "resources/sftp", SSH_USER, SSH_PASS, SSH_CONNECT_TIMEOUT, SSH_READ_TIMEOUT);
- - fs.mount();
- - for (IJob job : jobs) {
- - logger.info("----------------------------------------------------------------");
- - logger.info(" job : " + job.getClass().getName());
- - logger.info("----------------------------------------------------------------");
- - job.doIt(fs);
- - }
- - fs.umount();
- - }
- -}
- diff --git a/reco/src/test/com/gravityrd/test/unittest/web/WebInterceptorTest.java b/reco/src/test/com/gravityrd/test/unittest/web/WebInterceptorTest.java
- index 6bd03f7..30ff244 100644
- --- a/reco/src/test/com/gravityrd/test/unittest/web/WebInterceptorTest.java
- +++ b/reco/src/test/com/gravityrd/test/unittest/web/WebInterceptorTest.java
- @@ -144,7 +144,7 @@ public class WebInterceptorTest {
- this.remoteAddr = remoteAddr;
- }
- - @Override
- +
- public AsyncContext getAsyncContext() {
- throw new RuntimeException("Not implemented");
- }
- @@ -174,7 +174,7 @@ public class WebInterceptorTest {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- +
- public DispatcherType getDispatcherType() {
- throw new RuntimeException("Not implemented");
- }
- @@ -279,17 +279,17 @@ public class WebInterceptorTest {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- +
- public ServletContext getServletContext() {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- +
- public boolean isAsyncStarted() {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- +
- public boolean isAsyncSupported() {
- throw new RuntimeException("Not implemented");
- }
- @@ -314,17 +314,16 @@ public class WebInterceptorTest {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- +
- public AsyncContext startAsync() throws IllegalStateException {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- +
- public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- public boolean authenticate(HttpServletResponse response) throws IOException, ServletException {
- throw new RuntimeException("Not implemented");
- }
- @@ -377,12 +376,10 @@ public class WebInterceptorTest {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- public Part getPart(String name) throws IOException, ServletException {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- public Collection<Part> getParts() throws IOException, ServletException {
- throw new RuntimeException("Not implemented");
- }
- @@ -467,12 +464,12 @@ public class WebInterceptorTest {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- +
- public void login(String username, String password) throws ServletException {
- throw new RuntimeException("Not implemented");
- }
- - @Override
- +
- public void logout() throws ServletException {
- throw new RuntimeException("Not implemented");
- }
- diff --git a/reco/src/war/com/gravityrd/receng/web/webshop/WebshopServlet.java b/reco/src/war/com/gravityrd/receng/web/webshop/WebshopServlet.java
- index 875a3ef..774fc9c 100644
- --- a/reco/src/war/com/gravityrd/receng/web/webshop/WebshopServlet.java
- +++ b/reco/src/war/com/gravityrd/receng/web/webshop/WebshopServlet.java
- @@ -325,9 +325,9 @@ public class WebshopServlet extends HttpServlet {
- StringBuilder sb = new StringBuilder();
- String s;
- sb.append("{");
- - for (Entry<String, String[]> e : request.getParameterMap().entrySet()) {
- + /*for (Entry<String, String[]> e : request.getParameterMap().entrySet()) {
- sb.append(e.getKey()).append("=").append(Util.stringArrayToOneLine(e.getValue())).append(", ");
- - }
- + }*/
- if (sb.length() > 1) {
- s = sb.substring(0, sb.length() - 2);
- } else {
Add Comment
Please, Sign In to add comment