build.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="." name="SyncResourcesYed" default="http_fist_input" >
  3. <!-- /SE/schema/ant-tool/SyncResourcesYed/build.xml -->
  4. <!-- default procesy5 sample template is file:/SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-get-wfs-xml/build.xml-->
  5. <!-- sample URL which call this exact variables in this ANT build -->
  6. <!-- przykladowy URL ktory przekazuje parametry do tego ANT -->
  7. <!--https://biuro.biall-net.pl/SE/version-git/index.php?_route=UrlAction_Ant&_task=ant&
  8. path=${default_db.in7_dziennik_koresp/test-get-wfs-xml} - this is the place to keep ant build (directory name with build.xml)
  9. &namespace=p5_default_db:Rozdzielcza_test_bzyk_PE&featureID=123 - this is setting the <property name="url" value="${url}"/> - to point what is record/table to download
  10. <property name="uuid" value="${uuid}"/> it is automatically also set to enable uinque transaction and to allow to save data with user
  11. <property name="passwordBase64Basic" value="${passwordBase64Basic}"/> - this is also set - to enable communicate with API -
  12. <property name="DwebRootUrl" value="${$webRootUrl}"/> - this is the place where script is localized to easyli to target user GUI by href to generated output
  13. />
  14. -->
  15. <property name="uuid" value="${uuid}"/>
  16. <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
  17. <property name="url" value="${url}"/>
  18. <property name="DwebRootUrl" value="${$webRootUrl}"/>
  19. <!-- eof default procesy5 template -->
  20. <!-- custom properties of script -->
  21. <property name="http_fist_input" value="http_fist_input"/>
  22. <property name="http_fist_input.html" value="${http_fist_input}.html"/>
  23. <property name="http_fist_input.xsl" value="${http_fist_input}.xsl"/>
  24. <!-- eof properties of script -->
  25. <!-- first menu to be showed in GUI @description-->
  26. <target name="http_fist_input" description="Export/Import Resources to Yed .grapml">
  27. <echo message="${uuid}"/>
  28. <loadfile property="output.html" srcfile="${http_fist_input.html}"/>
  29. <echo message="${output.html}"/>
  30. <echoproperties regex=".*"/>
  31. </target>
  32. <target name="first_save_data" description="do zapisania wynikow od uzytkownika do WFS">
  33. </target>
  34. <target name="http_fist_input2">
  35. <exec executable="curl" outputproperty="wfs_output" errorproperty="wfs_error" resultproperty="wfs_result">
  36. <arg line="-H 'Authorization: Basic ${passwordBase64Basic}' ${url}"/>
  37. </exec>
  38. <echo message="curl -H 'Authorization: Basic ${passwordBase64Basic}' '${url}'"/>
  39. <echo message="OUTPUT__START"/>
  40. <echo message="${wfs_output}"/>
  41. <echo message="OUTPUT__END"/>
  42. <echo message="RESULT__START"/>
  43. <echo message="${wfs_result}"/>
  44. <echo message="RESULT__END"/>
  45. <echo message="ERROR__START"/>
  46. <echo message="${wfs_error}"/>
  47. <echo message="ERROR__END"/>
  48. </target>
  49. <!--
  50. <target name="http_first_output">
  51. <echo message="${uuid}"/>
  52. <echo>http_first_output</echo>
  53. </target>-->
  54. </project>