build_xmlschema_interface.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:p5xmli="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xmlschema_interface.xsd"
  3. basedir="../../."
  4. default="default"
  5. name="xmlschema_interface">
  6. <include as="PRODUCT" file="build.p5xmli.PRODUCT.xml"/>
  7. <include as="SYSTEM" file="build.p5xmli.SYSTEM.xml"/>
  8. <include as="INSTALL" file="build.p5xmli.INSTALL.xml"/>
  9. <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
  10. <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
  11. <target depends="PRODUCT.PRODUCT,INSTALL.INSTALL" name="default"/>
  12. <property name="p5xmli.default_db_targetNamespace_detect_string" value="${default_db_targetNamespace_detect_string}"/> <!-- value="default_db/table/" intended to be in ${basedir}/table ? -->
  13. <property name="p5xmli.zasob_id_db_targetNamespace_detect_string" value="${zasob_id_db_targetNamespace_detect_string}"/> <!-- value="https://biuro.biall-net.pl/api/" example targetNamespace="https://biuro.biall-net.pl/api/17666/" -->
  14. <target name="NamespaceObjectInstanceTable.local" if="p5xmli.TypeName.local" depends="NamespaceObjectInstanceTable.local.error,p5xmli.TypeName.local.if_has_NamespaceDatabaseStorageDefinitionPrefix,p5xmli.TypeName.local.if_has_NamespaceDatabaseStorageDefinitionPrefix.true,p5xmli.TypeName.local.if_has_NamespaceDatabaseStorageDefinitionPrefix.false" description="to detect by using p5xmli.procesy5_system_schema.xml root object name">
  15. <input addproperty="p5xmli.TypeName.local" message="type like p5_default_db:IN7_DZIENNIK_KORESP "/>
  16. <echo>#20 detecting ${p5xmli.NamespaceObjectInstanceTable.local} from $p5xmli.TypeName.local = ${p5xmli.TypeName.local}</echo>
  17. <!--<property name="p5xmli.NamespaceObjectInstanceTable.local" value="IN7_DZIENNIK_KORESP"/>-->
  18. <!--<echo>#26 detected $p5xmli.NamespaceObjectInstanceTable.local = ${p5xmli.NamespaceObjectInstanceTable.local} </echo>-->
  19. </target>
  20. <target name="p5xmli.TypeName.local.if_has_NamespaceDatabaseStorageDefinitionPrefix">
  21. <condition property="p5xmli.TypeName.local.if_has_NamespaceDatabaseStorageDefinitionPrefix">
  22. <contains string="${p5xmli.TypeName.local}" substring=":"/>
  23. </condition>
  24. </target>
  25. <target name="p5xmli.TypeName.local.if_has_NamespaceDatabaseStorageDefinitionPrefix.true" if="p5xmli.TypeName.local.if_has_NamespaceDatabaseStorageDefinitionPrefix">
  26. <exec executable="bash" dir="." outputproperty="p5xmli.NamespaceObjectInstanceTable.local">
  27. <arg value="-c"/>
  28. <arg value="echo ${p5xmli.TypeName.local} |sed 's/.*://'"/>
  29. </exec>
  30. <echo>#38 setting $p5xmli.NamespaceObjectInstanceTable.local with prefix detected by regex replace from ${p5xmli.TypeName.local} to ${p5xmli.NamespaceObjectInstanceTable.local}</echo>
  31. </target>
  32. <target name="p5xmli.TypeName.local.if_has_NamespaceDatabaseStorageDefinitionPrefix.false" unless="p5xmli.TypeName.local.if_has_NamespaceDatabaseStorageDefinitionPrefix">
  33. <echo>#40 setting $p5xmli.NamespaceObjectInstanceTable.local without prefix detected to = ${p5xmli.TypeName.local}</echo>
  34. <property name="p5xmli.NamespaceObjectInstanceTable.local" value="${p5xmli.TypeName.local}"/>
  35. </target>
  36. <target name="NamespaceObjectInstanceTable.local.error" unless="p5xmli.TypeName.local" >
  37. <fail>#45 to detect p5xmli.NamespaceObjectInstanceTable.local - You should set $p5xmli.TypeName.local - now is ${p5xmli.TypeName.local}</fail>
  38. </target>
  39. </project>