build.ows.PRODUCT.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:ows="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/openwebspider/openwebspider.xsd"
  3. xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
  4. basedir="../../."
  5. default="PRODUCT"
  6. name="ows.PRODUCT">
  7. <description>p5suis:say Created function openwebspider with prefix ows by p5ant module</description>
  8. <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
  9. <condition property="ows.PRODUCT.ifdef.parent" taskname="ows.parent.PRODUCT.ifdef">
  10. <isset property="WPS_Functions.PRODUCT.name"/>
  11. </condition>
  12. <property name="ows.PRODUCT.name"
  13. value="${WPS_Functions.PRODUCT.name}.openwebspider"/>
  14. <property name="ows.PRODUCT.vendor-domain"
  15. value="${WPS_Functions.PRODUCT.name}.ows"/>
  16. <property name="ows.basedir" value="${WPS_Functions.basedir}/openwebspider"/>
  17. <property name="ows.build.xml" value="${ows.basedir}/build_ows.xml"/>
  18. <property name="ows.repository" value="${WPS_Functions.repository}/openwebspider"/>
  19. <property name="ows.install" value="${ows.basedir}/install"/>
  20. <property location="${WPS_Functions.temp}/openwebspider" name="ows.temp"/>
  21. <property location="${ows.basedir}/ows.xsl" name="ows.xsl"/>
  22. <property location="${ows.basedir}/ows.xsd" name="ows.xsd"/>
  23. <property location="${ows.basedir}/ows.include.structure.xml"
  24. name="ows.include.structure.xml"/>
  25. <property location="${ows.basedir}/ows.include.xsl.p5xsls.xml"
  26. name="ows.include.xsl.p5xsls.xml"/>
  27. <property location="${ows.repository}/install_example.file"
  28. name="ows.install_example"/>
  29. <property name="ows.git" location="${ows.repository}/ows.git"/>
  30. <property name="ows.intalled" location="${ows.git}/openwebspider"/>
  31. <!--<property name="ows.intalled.npm.touch" value="coverage"/>-->
  32. <property name="ows.intalled.npm.arg.1" value="install"/>
  33. <property name="ows.intalled.npm.touch" location="${ows.repository}/ows.intalled.npm.touch"/>
  34. <property name="ows.intalled.node.arg.1" value="src/server.js"/>
  35. <property name="ows.intalled.node.touch" location="${ows.repository}/ows.intalled.node.touch"/>
  36. <property name="ows.intalled.poppler" location="${brew}"/>
  37. <property name="ows.intalled.poppler.dep.dir" location="/usr/local/var"/>
  38. <property name="ows.intalled.poppler.arg.1" value="install poppler"/>
  39. <property name="ows.intalled.poppler.touch" location="${ows.repository}/ows.intalled.poppler.touch"/>
  40. <property name="ows.intalled.gs" location="${brew}"/>
  41. <property name="ows.intalled.gs.arg.1" value="install gs"/>
  42. <property name="ows.intalled.gs.touch" location="${ows.repository}/ows.intalled.gs.touch"/>
  43. <property name="ows.intalled.tesseract" location="${brew}"/>
  44. <property name="ows.intalled.tesseract.arg.1" value="install tesseract"/>
  45. <property name="ows.intalled.tesseract.touch" location="${ows.repository}/ows.intalled.tesseract.touch"/>
  46. <property name="ows.conf.default_db.server.database.property" location="${ows.repository}/ows.conf.default_db.server.database.property"/>
  47. <property name="ows.conf.default_db.server.database_index.property" location="${ows.repository}/ows.conf.default_db.server.database_index.property"/>
  48. <property name="ows.conf.default_db.server.host.property" location="${ows.repository}/ows.conf.default_db.server.host.property"/>
  49. <property name="ows.conf.default_db.server.pass.property" location="${ows.repository}/ows.conf.default_db.server.pass.property"/>
  50. <property name="ows.conf.default_db.server.port.property" location="${ows.repository}/ows.conf.default_db.server.port.property"/>
  51. <property name="ows.conf.default_db.server.type.property" location="${ows.repository}/ows.conf.default_db.server.type.property"/>
  52. <property name="ows.conf.default_db.server.user.property" location="${ows.repository}/ows.conf.default_db.server.user.property"/>
  53. <property name="ows.conf" location="${ows.intalled}/conf/ows.conf"/>
  54. <property name="ows.conf.txt">
  55. {
  56. "DB_CONNECTION_TYPE": "mysql",
  57. "DB_CONNECTION_HOST": "127.0.0.1",
  58. "DB_CONNECTION_PORT": 3306,
  59. "DB_CONNECTION_USER": "root",
  60. "DB_CONNECTION_PASS": "Adsltechok123",
  61. "DB_CONNECTION_HOST_DB": "ows_hosts",
  62. "DB_CONNECTION_INDEX_DB": "ows_index",
  63. "SINGLE_HOST_MODE": true,
  64. "ADD_EXTERNAL_HOSTS": false,
  65. "CONCURRENCY": 10,
  66. "CACHE_MODE": 0,
  67. "PAGES_MAP": 0,
  68. "MAX_DEPTH": 3,
  69. "MAX_PAGES": 200,
  70. "MAX_PAGE_SIZE": 200,
  71. "MAX_SECONDS": null,
  72. "CRAWL_DELAY": 500,
  73. "INDEX_PAGES": true,
  74. "DELETE_DUP_PAGES": true,
  75. "UPDATE_MODE": false,
  76. "CRAWLER_NAME": "OpenWebSpider",
  77. "SOCKET_TIMEOUT": 2000,
  78. "HISTORY_WORKER_URL": null,
  79. "HISTORY_PAGESMAP_URL": null,
  80. "HISTORY_SEARCH_QUERY": "typowe błędy przy produkcji"
  81. }
  82. </property>
  83. <target depends="basedir,p5xsls.xml"
  84. description="to create basedir, includes and install"
  85. name="PRODUCT"/>
  86. <target description="to create local dirs" name="basedir">
  87. <propertyset id="ows.local.properties">
  88. <propertyref prefix="ows"/>
  89. <mapper from="ows.*" to="local.*" type="glob"/>
  90. </propertyset>
  91. <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
  92. <propertyset refid="ows.local.properties"/>
  93. </antcall>
  94. </target>
  95. <target description="To delete all temp and repository" name="clean">
  96. <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
  97. <propertyset refid="ows.local.properties"/>
  98. </antcall>
  99. </target>
  100. <target description="To delete all temp and repository" name="clean.temp">
  101. <antcall inheritall="false"
  102. target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
  103. <propertyset refid="ows.local.properties"/>
  104. </antcall>
  105. </target>
  106. <target name="parent.PRODUCT.ifdef"
  107. unless="ows.WPS_Functions.PRODUCT.ifdef.parent">
  108. <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
  109. </target>
  110. <target name="p5xsls.xml" depends="basedir">
  111. <description>
  112. TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
  113. </description>
  114. <echoxml namespacepolicy="elementsOnly" file="${ows.include.xsl.p5xsls.xml}">
  115. <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
  116. <namespaces.list>
  117. <namespaces.list.namespace prefix="ows"
  118. namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/openwebspider/openwebspider.xsd"/>
  119. </namespaces.list>
  120. <include.list>
  121. <include.list.href href="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/ant/p5ant.xsl"/>
  122. </include.list>
  123. </stylesheet_buildlist>
  124. </echoxml>
  125. </target>
  126. </project>