build.xml 5.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="." name="test default_db/TEST_PERMS">
  3. <description>
  4. Test 'default_db/TEST_PERMS' storage acl by Ant
  5. </description>
  6. <property name="uuid" value="${uuid}"/>
  7. <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
  8. <property name="url" value="${url}"/>
  9. <property name="php_session_id" value="${php_session_id}"/>
  10. <property name="webRootUrl" value="${webRootUrl}"/>
  11. <target name="DescribeFeatureType" description="URL_TASK Target DescribeFeatureType">
  12. <echo message="OUTPUT__TYPE__XML"/>
  13. <echo message="OUTPUT__START"/>
  14. <!-- <echo message="${wfs_output}"/> -->
  15. <echoxml>
  16. <xsd:schema
  17. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  18. xmlns:gml="http://www.opengis.net/gml"
  19. xmlns:p5="https://biuro.biall-net.pl/wfs"
  20. xmlns:default_db="https://biuro.biall-net.pl/wfs/default_db"
  21. xmlns:default_objects="https://biuro.biall-net.pl/wfs/default_objects"
  22. xmlns:p5_objects="https://biuro.biall-net.pl/wfs/objects"
  23. elementFormDefault="qualified"
  24. targetNamespace="https://biuro.biall-net.pl/wfs/default_db"
  25. version="1.0.0">
  26. <xsd:import namespace="http://www.opengis.net/gml" schemaLocation="https://biuro.biall-net.pl/dev-pl/se-master/schema/gml/2.1.2/feature.xsd"/>
  27. <!--typeName 'p5_default_db:TEST_PERMS'-->
  28. <xsd:complexType name="TEST_PERMSType">
  29. <xsd:complexContent>
  30. <xsd:extension base="gml:AbstractFeatureType">
  31. <xsd:sequence>
  32. <xsd:element minOccurs="1" maxOccurs="1" name="ID" type="xsd:integer" nillable="true"/>
  33. <xsd:element minOccurs="0" maxOccurs="1" name="L_APPOITMENT_USER" type="xsd:string" nillable="true"/>
  34. <xsd:element minOccurs="0" maxOccurs="1" name="KATALOG_LINK" type="p5:www_link" nillable="true"/>
  35. <xsd:element minOccurs="0" maxOccurs="1" name="WWW" type="p5:www_link" nillable="true"/>
  36. <xsd:element minOccurs="0" maxOccurs="1" name="ADM_ADMIN_LEVEL" type="xsd:string" nillable="true"/>
  37. <xsd:element minOccurs="0" maxOccurs="1" name="ADM_PASSWD" type="xsd:string" nillable="true"/>
  38. <xsd:element minOccurs="0" maxOccurs="1" name="A_STATUS" type="xsd:string" nillable="true"/>
  39. <xsd:element minOccurs="0" maxOccurs="1" name="EMAIL" type="xsd:string" nillable="true"/>
  40. <xsd:element minOccurs="0" maxOccurs="1" name="ADM_NAME" type="xsd:string" nillable="true"/>
  41. <xsd:element minOccurs="0" maxOccurs="1" name="PARENT_ID" type="xsd:integer" nillable="true"/>
  42. <xsd:element minOccurs="0" maxOccurs="1" name="OPIS" type="xsd:string" nillable="true"/>
  43. <xsd:element minOccurs="0" maxOccurs="1" name="the_geom" type="gml:PolygonPropertyType" nillable="true"/>
  44. <xsd:element minOccurs="0" maxOccurs="1" name="A_ADM_COMPANY" type="xsd:string" nillable="true"/>
  45. <xsd:element minOccurs="0" maxOccurs="1" name="A_CLASSIFIED" type="xsd:string" nillable="true"/>
  46. <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_CREATE_AUTHOR" type="xsd:string" nillable="true"/>
  47. <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_CREATE_DATE" type="xsd:string" nillable="true"/>
  48. <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_UPDATE_AUTHOR" type="xsd:string" nillable="true"/>
  49. <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_UPDATE_DATE" type="xsd:string" nillable="true"/>
  50. <xsd:element minOccurs="0" maxOccurs="1" name="test_date" type="xsd:date" nillable="true"/>
  51. <xsd:element minOccurs="0" maxOccurs="1" name="test_datetime" type="xsd:dateTime" nillable="true"/>
  52. <xsd:element minOccurs="0" maxOccurs="1" name="test_price" type="p5:price" nillable="true"/>
  53. <xsd:element minOccurs="0" maxOccurs="1" name="test_time" type="xsd:string" nillable="true"/>
  54. </xsd:sequence>
  55. <xsd:attribute name="instance" type="default_db:instanceType"/>
  56. </xsd:extension>
  57. </xsd:complexContent>
  58. </xsd:complexType>
  59. <xsd:element name="TEST_PERMS" type="default_db:TEST_PERMSType" substitutionGroup="gml:_Feature"/>
  60. </xsd:schema>
  61. </echoxml>
  62. <echo message="OUTPUT__END"/>
  63. </target>
  64. <target name="GetFeature" description="URL_TASK Target GetFeature">
  65. <echo message="FETCHING '${url}' ..."/>
  66. <exec executable="curl" outputproperty="wfs_output" errorproperty="wfs_error" resultproperty="wfs_result">
  67. <arg line="--cookie 'PHPSESSID=${php_session_id}' '${url}&amp;REQUEST=GetFeature'"/>
  68. </exec>
  69. <echo message="OUTPUT__TYPE__XML"/>
  70. <echo message="OUTPUT__START"/>
  71. <echo message="${wfs_output}"/>
  72. <echo message="webRootUrl"></echo>
  73. <echo message="${webRootUrl}"></echo>
  74. <echo message="OUTPUT__END"/>
  75. <echo message="RESULT__START"/>
  76. <echo message="${wfs_result}"/>
  77. <echo message="RESULT__END"/>
  78. <echo message="ERROR__START"/>
  79. <echo message="${wfs_error}"/>
  80. <echo message="ERROR__END"/>
  81. </target>
  82. </project>