build.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="." name="SyncResourcesYed" default="http_fist_input" >
  3. <!-- default procesy5 template -->
  4. <property name="uuid" value="${uuid}"/>
  5. <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
  6. <property name="url" value="${url}"/>
  7. <!-- eof default procesy5 template -->
  8. <!-- custom properties of script -->
  9. <property name="http_fist_input" value="http_fist_input"/>
  10. <property name="http_fist_input.html" value="${http_fist_input}.html"/>
  11. <property name="http_fist_input.xsl" value="${http_fist_input}.xsl"/>
  12. <!-- eof properties of script -->
  13. <!-- first menu to be showed in GUI @description-->
  14. <target name="http_fist_input" description="Export/Import Resources to Yed .grapml">
  15. <echo message="${uuid}"/>
  16. <loadfile property="output.html" srcfile="${http_fist_input.html}"/>
  17. <echo message="${output.html}"/>
  18. <echoproperties regex=".*"/>
  19. </target>
  20. <target name="first_save_data" description="do zapisania wynikow od uzytkownika do WFS">
  21. </target>
  22. <target name="http_fist_input">
  23. <exec executable="curl" outputproperty="wfs_output" errorproperty="wfs_error" resultproperty="wfs_result">
  24. <arg line="-H 'Authorization: Basic ${passwordBase64Basic}' ${url}"/>
  25. </exec>
  26. <echo message="curl -H 'Authorization: Basic ${passwordBase64Basic}' '${url}'"/>
  27. <echo message="OUTPUT__START"/>
  28. <echo message="${wfs_output}"/>
  29. <echo message="OUTPUT__END"/>
  30. <echo message="RESULT__START"/>
  31. <echo message="${wfs_result}"/>
  32. <echo message="RESULT__END"/>
  33. <echo message="ERROR__START"/>
  34. <echo message="${wfs_error}"/>
  35. <echo message="ERROR__END"/>
  36. </target>
  37. <!--
  38. <target name="http_first_output">
  39. <echo message="${uuid}"/>
  40. <echo>http_first_output</echo>
  41. </target>-->
  42. </project>