| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project
- xmlns:p5build="http://biuro.biall-net.pl/xmlschema_procesy5/build.xsd"
- basedir="." name="p5build" default="sync_p5_tr_map_with_se.refresh"> <!-- sync_p5_tr_map_with_se new-schema-with-ID-to-move-and-rename-to-xsd generate_schema_with_id build_detect_objects_parent_relations build_detect_resource_type build_tr_map element_complexType.xml generate_schema_with_id sync_p5_tr_map_with_se -->
- <description>This file is Business Objects Transformations Component described in procesy5 documentation </description>
- <!--<description>Do przetwarzania wygenerowanych schematow itp i integracji z systemem</description>-->
-
-
-
- <include file="build.p5build.GLOBALS.xml"/>
-
- <include file="build.p5build.PRODUCT.xml"/><!--<include file="build_SE_basedir/build.p5build_SE.PRODUCT.name.xml"/>-->
- <include file="build_SE_basedir/build.p5build_SE.SYSTEM.xml" as="build_SE.SYSTEM"/>
- <include file="build.p5build.SYSTEM.xml"/>
- <include file="build.p5build.SYSTEM.transformed.xml" as="SYSTEM.transformed"/>
- <include file="WPS_Functions/build.WPS_Functions.PRODUCT.xml" optional="true"/>
-
- <include file="WPS_Functions/system_ui_info_speech/build_system_ui_info_speech.xml" as="p5suis" optional="true"/>
- <include file="Types/build.p5Type.PRODUCT.xml" optional="true"/>
-
- <!--moved to PRODUCT <property name="threadCount" value="3"/>
- <property name="debug_level_param" value="0"/>-->
- <!-- licence values are read from build_SE.xml-->
- <!--<property name="TargetNamespaceBindings" value="https://biuro.biall-net.pl"/> <!-\- default https://biuro.biall-net.pl for API working in this domain -\->
- <property name="TargetNamespaceBindingsApi" value="${TargetNamespaceBindings}/wfs"/>
- <property name="TargetNamespaceBindingsApiUrl" value="${TargetNamespaceBindingsApi}/wfs-data.php"/>
- <property name="targetNamespace_DEFAULTS_prefix" value="default_db"/>
- <property name="targetNamespace_DEFAULTS_prefix_objects" value="default_objects"/>
- <property name="targetNamespace_DEFAULTS" value="${TargetNamespaceBindings}/xmlschema_procesy5/${targetNamespace_DEFAULTS_prefix}"/> <!-\- namespace do lokalnego bindowania do default_db http://biuro.biall-net.pl/xmlschema_procesy5/default_db -\->
- <property name="config_dir" value="${basedir}/config"/>
- <property name="NamespaceBinding.xml" value="${config_dir}/NamespaceBinding.xml"/>--> <!-- file with binding informations -->
-
- <!--moved to PRODUCT <property name="XMLSchema_prefix" value="xs"/>
- <property name="public_html" location="${basedir}"/> <!-\- do wstawienia schematos -\->
- -->
-
-
-
- <!--<target name="detect_objects_parent_relations_clean">
- <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- </target>-->
-
-
- <target name="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml" description="to retrieve CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml to build typespecial_to_ref.xml">
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue" >
- <property name="p5suis:say_text" value="we check for fresh resources list from default database for add to models current process 5 references" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
-
- <property name="build_get_wfs_recurse_xsl" value="${WPS_Functions}/get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml"/> <!-- TODO to be read by <ant antfile="${build_WPS_Functions.xml}" target="read_WPS_Functions.childproperties.builds"/> -->
- <ant antfile="${build_get_wfs_recurse_xsl}" target="bgwrx:check_if_file_older_than_minutes_and_call_action">
- <property name="bgwrx:check_if_file_older.max_minutes" value="1000000"/> <!-- 10000 -->
- <property name="bgwrx:check_if_file_older.call_action" value="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml"/>
- <property name="bgwrx:check_if_file_older.file_to_check" value="${CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml}"/>
- </ant>
-
- </target>
-
- <target name="typespecial_to_ref.xml.clean" description="to delete typespecial_to_ref.xml and typespecial_to_ref_final.xml">
- <delete file="${typespecial_to_ref.xml}" failonerror="false"/>
- <delete file="${typespecial_to_ref_final.xml}" failonerror="false"/>
- </target>
-
-
-
-
- <target name="typespecial_to_ref.xml" description="generate 1 stage of detecting @ref from resources by type specials " depends="typespecial_to_ref.xml.clean"> <!-- save_build_properties,read_build_properties, -->
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generate first stage of detecting references from resources by type specials"/>
- </exec>-->
-
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generate first stage of detecting references from resources by type specials. " />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
-
- <xslt basedir="./" style="${typespecial_to_ref.xsl}" in="${CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml}" destdir="./" out="${typespecial_to_ref.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/typespecial_to_ref/typespecial_to_ref.xsd}typespecial_refererences"/>
- </factory>
- <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
- <param name="cache" expression="refresh"/>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db.dir" expression="${default_db.dir}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/>
- <param name="procesy5_system_schema.xml" expression="${procesy5_system_schema.xml}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- <echo> Complete </echo>
-
- </target>
-
- <target name="typespecial_to_ref_final.xml" description="generate final stage of detecting @ref from resources by type specials. Now we are able to merge objects and do all new objects calculations if needed" depends="typespecial_to_ref.xml"> <!-- save_build_properties,read_build_properties, -->
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generate final stage of detecting references from resources by type specials - now we can merge object and after rebuild all system obbjects "/>
- </exec>-->
-
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generate final stage of detecting references from resources by type specials - now we can merge object and after rebuild all system obbjects "/>
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
-
- <xslt basedir="./" style="${typespecial_to_ref.xsl}" in="${typespecial_to_ref.xml}" destdir="./" out="${typespecial_to_ref_final.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/typespecial_to_ref/typespecial_to_ref.xsd}typespecial_to_ref_final"/>
- </factory>
- <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
- <param name="cache" expression="refresh"/>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db.dir" expression="${default_db.dir}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/>
- <param name="procesy5_system_schema.xml" expression="${procesy5_system_schema.xml}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- <echo> Complete </echo>
-
- </target>
-
- <target name="typespecial_to_ref_final.xml_to_default_db" description="save imported schemas to database repository" depends="typespecial_to_ref.xml.clean,typespecial_to_ref_final.xml"> <!-- R save_build_properties,read_build_properties, -->
-
-
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="save imported schemas to database repository"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="save imported schemas to database repository" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- <xslt basedir="./" style="${typespecial_to_ref.xsl}" in="${typespecial_to_ref_final.xml}" destdir="./" out="${typespecial_to_ref_final.xml_to_default_db.report.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/typespecial_to_ref/typespecial_to_ref.xsd}to_default_db"/>
- </factory>
- <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
- <param name="cache" expression="refresh"/>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db.dir" expression="${default_db.dir}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/>
- <param name="procesy5_system_schema.xml" expression="${procesy5_system_schema.xml}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- <echo> Complete </echo>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Completed type special references" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </target>
-
-
-
- <target name="save_build_properties" >
- <mkdir dir="${p5build.temp}"/>
- <mkdir dir="${p5build.repository}"/>
- <ant antfile="${WPS_Functions.build}" inheritall="yes"/>
-
- <!--R <ant antfile="${build_SE.xml}" target="save_build_properties"/>-->
- <!-- R <loadproperties srcfile="${build_SE.properties}"/>-->
-
- <!--R <echoproperties destfile="${build_properties}" />-->
- <!-- R <echoproperties destfile="${build_properties.xml}" format="xml"/>-->
- </target>
-
- <!--<target name="read_build_properties_check">
- <!-\-<condition property="read_build_properties_check" taskname="save_build_properties" >
- <available file="${build_properties}"/>
- </condition>-\->
- <antcall target="save_build_properties"/>
- <loadproperties srcfile="${build_properties}"/>
- </target>-->
-
- <!--R <target name="read_build_properties">
- <loadproperties srcfile="${build_properties}"/>
- <ant antfile="${build_SE.xml}" target="save_build_properties"/>
- <loadproperties srcfile="${build_SE.properties}"/>
- </target>-->
-
-
- <target name="procesy5_system_schema.xml_if_not_exists_check" description="to be called from procesy5_system_schema.xml_if_not_exists">
- <echo>Debug test relative property object_modeling_basedir=${object_modeling_basedir} </echo>
- <condition property="procesy5_system_schema.xml_if_not_exists_check" taskname="procesy5_system_schema.xml_if_not_exists">
- <available file="${procesy5_system_schema.xml}"/>
- </condition>
- </target>
-
- <target name="procesy5_system_schema.xml_if_not_exists" depends="procesy5_system_schema.xml_if_not_exists_check" unless="${procesy5_system_schema.xml_if_not_exists_check}" description="For external ant calls to be sure that xmlshema is generated if not - do it">
- <echo>procesy5_system_schema.xml_if_not_exists we do it by antcall procesy5_system_schema.xml </echo>
- <antcall target="procesy5_system_schema.xml"/>
- </target>
-
- <target name="empty.xml" description="Builds empty.xml">
- <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
- </target>
-
- <target name="procesy5_system_schema.xml" depends="empty.xml" description="Generate procesy5_system_schema.xml and vrtfNamespaces.xml which can be not correct">
- <sleep seconds="2"/>
-
-
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="Generating process 5 system schema"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Generating process 5 system schema" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- <antcall target="delete.external_schema_table.path"/>
- <mkdir dir="${default_db.instance.xml}"/>
- <mkdir dir="${transformed.local}"/>
- <delete file="${procesy5_system_schema.xml}" failonerror="false"/>
- <echo> run ${get_all_xsd.xsl} with param procesy5_system_schema_collection_dir=${basedir}; </echo>
-
- <xslt basedir="./" style="${get_all_xsd.xsl}" in="${empty.xml}" destdir="./" out="${procesy5_system_schema.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}get_all_xsd"/>
- </factory>
- <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
- <param name="cache" expression="refresh"/>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db.dir" expression="${default_db.dir}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="p5Type.basedir" expression="${p5Type.basedir}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- <sequential>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="analyzing process 5 schema namespaces" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="analyzing process 5 schema namespaces"/>
- </exec>-->
- <delete file="${vrtfNamespaces.xml}"/>
- <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${vrtfNamespaces.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}vrtfNamespaces"/>
- </factory>
- <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
- <param name="cache" expression="refresh"/>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <param name="p5Type.basedir" expression="${p5Type.basedir}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- <sleep seconds="1"/>
- </sequential>
- </target>
-
- <target name="procesy5_system_schema.xml_complete" description="Generate procesy5_system_schema.xml and vrtfNamespaces.xml which can be not correct">
- <sequential>
- <sleep seconds="2"/>
-
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating complete process 5 system schema"/>
- </exec>-->
-
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generating complete process 5 system schema" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
-
- <mkdir dir="${default_db.instance.xml}"/>
- <mkdir dir="${transformed.local}"/>
- <delete file="${procesy5_system_schema.xml}" failonerror="false"/>
- <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
- <echo> run ${get_all_xsd.xsl} with param procesy5_system_schema_collection_dir=${basedir}; </echo>
- <xslt basedir="./" style="${get_all_xsd.xsl}" in="${empty.xml}" destdir="./" out="${procesy5_system_schema.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}get_all_xsd"/>
- </factory>
- <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
- <param name="cache" expression="refresh"/>
- <param name="external_schema" expression="${external_schema}"/>
- <param name="external_schema_id_namespace_prefix" expression="${external_schema_id_namespace_prefix}"/>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="p5Type.basedir" expression="${p5Type.basedir}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- </sequential>
- <sleep seconds="1"/>
- <antcall target="vrtfNamespaces.xml"/>
- </target>
-
-
- <target name="vrtfNamespaces.xml" description="Procedure to create vrtfNamespaces.xml - used in some tasks especially in generate schema with id">
- <parallel threadcount="2">
- <sequential>
-
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="Generating namspaces list "/>
- </exec>-->
-
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Generating namspaces list" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- <sequential>
- <delete file="${vrtfNamespaces.xml}"/>
- <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${vrtfNamespaces.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}vrtfNamespaces"/>
- </factory>
- <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
- <param name="cache" expression="refresh"/>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="p5Type.basedir" expression="${p5Type.basedir}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- </sequential>
- </parallel>
- </target>
-
- <target name="generate_schema_with_id" depends="procesy5_system_schema.xml" description="first we generate schema to check if all have correct ID">
- <!-- schema @id fixing -->
- <parallel threadcount="2">
- <sequential>
- <!--<sleep seconds="3"/>-->
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="Checking schema for correnct id attributes if not generating them"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Checking schema for correnct id attributes if not generating them" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- <sequential>
- <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- <delete file="${parse_schema_to_generate_id_raport.xml}"/>
- <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
- <xslt basedir="./" style="${parse_schema_to_generate_id.xsl}" in="${empty.xml}" destdir="./" out="${parse_schema_to_generate_id_raport.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport}parse_schema_to_generate_id"/>
- </factory>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
- <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
- <param name="new-schema-with-ID-to-move-and-rename-to-xsd" expression="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="basedir" expression="${basedir}"/>
- <!--<param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>-->
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- <antcall target="p5suis.p5suis.say_to_queue.copy_file" >
- <param name="p5suis.say_to_queue.copy_file" value="${parse_schema_to_generate_id_raport.xml}"/>
- </antcall>
- <echo>#466 check what were missing in no-id directory</echo>
- <sleep seconds="3"/>
- </sequential>
- </parallel>
- </target>
-
- <target name="NamespaceBinding.xml" description="To generate config for NamespaceBinding.xml for use in SimpleSchema for related features etc - correctly use namespace prefix and url for API requests">
- <parallel threadcount="2">
- <sequential>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="Generating Namespaces Binding to map models to API address"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Generating Namespaces Binding to map models to API address" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
- </sequential>
- <sequential>
- <xslt basedir="./" style="${TargetNamespaceBindings.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${NamespaceBinding.xml}.temp.xml" force="true">
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}NamespaceBinding.xml"/>
- </factory>
- <param name="targetNamespace_DEFAULTS_prefix" expression="${targetNamespace_DEFAULTS_prefix}"/>
- <param name="targetNamespace_DEFAULTS_prefix_objects" expression="${targetNamespace_DEFAULTS_prefix_objects}"/>
- <param name="TargetNamespaceBindingsApiUrl" expression="${TargetNamespaceBindingsApiUrl}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <param name="basedir" expression="${basedir}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- </sequential>
- </parallel>
- </target>
-
- <target name="element_complexType.xml.single" description="SINGLE generate list of elements and Complextype to generate flat and tr_map">
- <parallel threadcount="2">
- <sequential>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating xml object list from system schema to provide making multi thread build lists for complex Types and transaction maps and others "/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generating xml object list from system schema to provide making multi thread build lists for complex Types and transaction maps and others" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- <sequential>
- <delete file="${element_complexType.xml}"/>
- <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${element_complexType.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}element_complexType"/>
- </factory>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="debug_level_param" expression="${debug_level_param}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="p5Type.basedir" expression="${p5Type.basedir}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- </sequential>
- </parallel>
- </target>
-
- <target name="element_complexType.xml" depends="procesy5_system_schema.xml_complete,NamespaceBinding.xml,element_complexType.xml.single" description=" generate list of elements and Complextype to generate flat and tr_map">
- <!--<antcall target="element_complexType.xml.single" inheritall="yes"/>-->
- </target>
-
-
- <target name="build_element_complexType.xml.single" depends="element_complexType.xml.single,build_element_complexType.xml.single.task" description="Just element_complexType elements"> <!-- save_build_properties,read_build_properties, -->
- <!--<antcall target="build_element_complexType.xml.single.task" inheritall="yes"/>-->
- </target>
-
-
- <target name="build_element_complexType.xml.complete.test">
- <echo>testing if exist $build_element_complexType.xml.complete ${build_element_complexType.xml.complete}</echo>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="Testing if ComplexType has beed completed?"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Testing if ComplexType has beed completed?" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- <condition property="build_element_complexType.xml.complete.cond" taskname="build_element_complexType.xml.completel.cond">
- <available file="${build_element_complexType.xml.complete}"/>
- </condition>
- </target>
-
- <target name="build_element_complexType.xml.complete.cond" depends="build_element_complexType.xml.complete.test,build_element_complexType.xml.complete.fail,build_element_complexType.xml.complete.ok"/>
-
- <target name="build_element_complexType.xml.complete.fail" unless="${build_element_complexType.xml.complete.cond}">
- <echo> not aviabble file $build_element_complexType.xml.complete ${build_element_complexType.xml.complete} calling to build.single</echo>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="need to build Complex Type!"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="need to build Complex Type!" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- <antcall target="build_element_complexType.xml.single.task"/>
- </target>
-
-
- <target name="build_element_complexType.xml.complete.ok" if="${build_element_complexType.xml.complete.cond}">
- <echo> are complete $build_element_complexType.xml.complete ${build_element_complexType.xml.complete} calling to build.single</echo>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="Are complete!"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Are complete!" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
- </target>
-
-
-
-
-
- <target name="build_element_complexType.xml.single.task" depends="SYSTEM.transformed.p5build.SYSTEM.transformed" description="Just element_complexType elements"> <!-- R save_build_properties,read_build_properties, -->
-
- <parallel threadcount="2">
- <sequential>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating multi thread build lists for complex Types "/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generating multi thread build lists for complex Types" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- <sequential>
- <delete file="${build_element_complexType.xml}"/>
- <!--<tempfile property="build_element_complexType.xml.properties_override" prefix="build_element_complexType.xml.properties_override" suffix=".xml" destdir="${transformed.local}" deleteonexit="no"/>-->
- <!--<echoxml file="${build_element_complexType.xml.properties_override}" >
- <properties>
- <property name="uuid" value="PROCES_INIT_TREE_$${xpath_value}"/> <!-\- to be evaluated in child xsl/ant-\->
- <property name="typeName" value="default_db:PROCES_INIT"/>
- <property name="xpath" value="ID"/>
- </properties>
- </echoxml>-->
- <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_element_complexType.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="build_element_complexType.xml"/>
- </factory>
- <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
- <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
- <param name="antfile_prefix" expression="build_element_complexType.xml"/>
- <param name="temp" expression="/tmp"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="antfile" expression=""/>
- <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
- <param name="match_child_element" expression=""/>
- <param name="match_child_element_property_name" expression=""/>
- <param name="properties.xml" expression="${build_properties.xml}"/>
- <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
- <param name="parallel" expression="1"/>
- <param name="threadCount" expression="${threadCount}"/>
- <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
- <param name="debug_level_param" expression="${debug_level_param}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <!--<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-->
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="executing multi thread build for complex Types by thread count ${threadCount}"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="executing multi thread build for complex Types by thread count ${threadCount}" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
-
- <!--<delete dir="${build_complexType.local}"/>-->
- <ant antfile="${build_element_complexType.xml}"/>
- <touch file="${build_element_complexType.xml.complete}"/>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating complex types complete"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generating complex types complete" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
- </sequential>
- </parallel>
- </target>
-
- <!-- depends="element_complexType.xml,save_build_properties,empty.xml" -->
- <target name="build_element_complexType.xml" depends="element_complexType.xml,empty.xml" description="generate build_element_complexType.xml for parallel launch"><!-- R save_build_properties,read_build_properties, -->
- <!--<antcall target="build_element_complexType.xml.single.task" inheritall="yes"/> lower should exec only conditionally-->
- <antcall target="build_element_complexType.xml.complete.cond" inheritall="yes"/>
- </target>
-
-
- <target name="delete.build_complexType.local" description="to optionally delete all created models build_complexType.local - not needed after failure so - optionally">
- <delete dir="${build_complexType.local}"/>
- </target>
-
- <!--<target name="build_complexType" depends="element_complexType.xml" description="we generate all complexType for all known elements and complexType in schema">
- <delete dir="${build_complexType.local}"/>
- <xslt basedir="./" style="${build_complexType.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_complexType_raport.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}element_complexType"/>
- </factory>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
- <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- </target>-->
- <!--depends="build_element_complexType.xml" depends="save_build_properties,read_build_properties"-->
- <target name="build_tr_map.xml" depends="build_element_complexType.xml" description="we generate all tr_map for all known elements and complexType in schema in parallel">
- <antcall target="build_tr_map.xml.single"/>
- </target>
-
- <target name="build_tr_map.xml.single" depends="element_complexType.xml.single" description="we generate all tr_map for all known elements and complexType in schema in parallel">
- <parallel threadcount="2">
- <sequential>
- <!--<sleep seconds="2"/>-->
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="deleting and generating transaction map by multi thread build list. To provide easy object engine calculations like creating simple schema"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="deleting and generating transaction map by multi thread build list. To provide easy object engine calculations like creating simple schema" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
-
- </sequential>
- <sequential>
- <echo> deleting build_tr_map.xml ${build_tr_map.xml} </echo>
- <delete file="${build_tr_map.xml}"/>
- <delete file="${build_tr_map.xml.complete}" failonerror="false"/>
- <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_tr_map.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="build_tr_map.xml"/>
- </factory>
- <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
- <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
- <param name="antfile_prefix" expression="build_element_complexType.xml"/>
- <param name="temp" expression="/tmp"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="antfile" expression=""/>
- <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
- <param name="match_child_element" expression=""/>
- <param name="match_child_element_property_name" expression=""/>
- <param name="properties.xml" expression="${build_properties.xml}"/>
- <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
- <param name="parallel" expression="1"/>
- <param name="threadCount" expression="${threadCount}"/>
- <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- </sequential>
- </parallel>
- <sequential>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="executing build transaction map list by thread count ${threadCount}"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="executing build transaction map list by thread count ${threadCount}" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- <sleep seconds="2"/>
- <ant antfile="${build_tr_map.xml}"/>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="transaction map complete"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="transaction map complete" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- <touch file="${build_tr_map.xml.complete}"/>
- </sequential>
- </target>
-
-
-
- <target name="delete.p5_tr_map.local" description="to use when refresh is needed after model change">
- <delete dir="${p5_tr_map.local}"/>
- </target>
-
- <!--<target name="build_tr_map" depends="build_element_complexType.xml" description="we generate all tr_map for all known elements and complexType in schema">
- <delete dir="${p5_tr_map.local}"/>
- <xslt basedir="./" style="${p5_tr_map.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_tr_map_raport.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd}element_complexType_tr_map"/>
- </factory>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
- <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- </target>-->
-
- <!-- depends="build_tr_map" -->
- <target name="build_detect_resource_type" depends="build_tr_map.xml" description="we generate detect_resource_type for use it for generate detect_objects_parent_relations">
- <antcall target="build_detect_resource_type.single"/>
- <!-- file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/transformed/resources_tree_required_occurs_raport/detect_resource_type-\-http__x3A____x2F____x2F__biuro.biall__x2D__net.pl__x2F__xmlschema_procesy5__x2F__default_db.xml-->
- </target>
-
- <target name="build_detect_resource_type.xml.single.task" description="Just build_detect_resource_type.xml elements"> <!-- R depends="save_build_properties,read_build_properties" -->
-
- <parallel threadcount="2">
- <sequential>
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating multi thread build lists for complex resource types relations "/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generating multi thread build lists for complex resource types relations " />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- <sequential>
- <delete file="${build_detect_resource_type.xml}" failonerror="false"/>
- <delete file="${build_detect_resource_type.complete}" failonerror="false"/>
-
- <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_detect_resource_type.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="build_detect_resource_type.xml"/>
- </factory>
- <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
- <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
- <param name="antfile_prefix" expression="build_element_complexType.xml"/>
- <param name="temp" expression="/tmp"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="antfile" expression=""/>
- <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
- <param name="match_child_element" expression=""/>
- <param name="match_child_element_property_name" expression=""/>
- <param name="properties.xml" expression="${build_properties.xml}"/>
- <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
- <param name="parallel" expression="1"/>
- <param name="threadCount" expression="${threadCount}"/>
- <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
- <param name="debug_level_param" expression="${debug_level_param}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="detect_resource_type.xsl" expression="${detect_resource_type.xsl}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <!--<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-->
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
-
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="executing multi thread build for relations by thread count ${threadCount}"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="executing multi thread build for relations by thread count ${threadCount}" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
-
- <!--<delete dir="${build_complexType.local}"/>-->
- <ant antfile="${build_detect_resource_type.xml}"/>
- <touch file="${build_detect_resource_type.complete}"/>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating relations types complete"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generating relations types complete" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- </parallel>
- </target>
-
-
- <target name="build_detect_resource_type.single" description="we generate detect_resource_type for use it for generate detect_objects_parent_relations"> <!-- R depends="save_build_properties,read_build_properties" -->
-
- <antcall target="build_detect_resource_type.xml.single.task"/>
- <!-- todo -->
- <!--<delete file="${build_detect_resource_type.xml}"/>
- <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_detect_resource_type.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="build_detect_resource_type.xml"/>
- </factory>
- <!-\-<param name="match_root_element" expression="wfs:FeatureCollection"/>-\->
- <param name="match_element" expression=""/><!-\- To be set universally to another type of object tree -\->
- <param name="antfile_prefix" expression="build_element_complexType.xml"/>
- <param name="temp" expression="/tmp"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="antfile" expression=""/>
- <!-\-<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-\->
- <param name="match_child_element" expression=""/>
- <param name="match_child_element_property_name" expression=""/>
- <param name="properties.xml" expression="${build_properties.xml}"/>
- <!-\-<param name="properties_override.xml" expression="${properties_override.xml}"/>-\->
- <param name="parallel" expression="1"/>
- <param name="threadCount" expression="${threadCount}"/>
- <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
-
- <ant antfile="${build_detect_resource_type.xml}"/>-->
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating detect resource type xml - to allow generate compelte detect objects parent relations xml . with also calculation for every object in detect resource type directory"/>
- </exec>
- <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
- <delete file="${detect_resource_type.xml}"/>
- <xslt basedir="./" style="${detect_resource_type.xsl}" in="${empty.xml}" destdir="./" out="${detect_resource_type.xml}" force="yes" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport}detect_resource_type"/>
- </factory>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
- <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
- <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/> <!-\- todo for better handle DefaultObjects etc -\->
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- <exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="complete build detect resource type single"/>
- </exec>-->
- <!-- file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/transformed/resources_tree_required_occurs_raport/detect_resource_type-\-http__x3A____x2F____x2F__biuro.biall__x2D__net.pl__x2F__xmlschema_procesy5__x2F__default_db.xml-->
- </target>
-
- <!-- depends="build_detect_resource_type" -->
- <target name="build_detect_objects_parent_relations" depends="build_detect_resource_type" description="we generate detect resources parent relations -to dir detect_resource_type ">
-
- <antcall target="build_detect_objects_parent_relations.single"/>
-
- <!--file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/transformed/resources_tree_required_occurs_raport/detect_objects_parent_relations-\-http__x3A____x2F____x2F__biuro.biall__x2D__net.pl__x2F__xmlschema_procesy5__x2F__default_db.xml-->
- </target>
-
-
- <target name="detect_resource_type.xml.test">
- <echo>testing if exist $detect_resource_type.xml</echo>
- <condition property="build_detect_resource_type.complete.cond" taskname="detect_resource_type.xml.cond">
- <available file="${build_detect_resource_type.complete}"/>
- </condition>
- </target>
-
- <target name="detect_resource_type.xml.cond" depends="detect_resource_type.xml.test,detect_resource_type.xml.fail"/>
-
- <target name="detect_resource_type.xml.fail" unless="${build_detect_resource_type.complete.cond}">
- <echo> not aviabble file $build_detect_resource_type.complete ${build_detect_resource_type.complete} calling to build.single</echo>
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="need to generate detect resource type xml"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="need to generate detect resource type xml" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- <antcall target="build_detect_resource_type.single"/>
- </target>
-
-
-
-
-
-
- <target name="build_detect_objects_parent_relations.single" depends="detect_resource_type.xml.cond" description="we generate detect resources parent relations -to dir detect_resource_type "> <!-- R save_build_properties,read_build_properties, -->
-
- <parallel threadcount="2">
- <sequential>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating detect_object_parent_relations_single with distinct object definitions in detect_resource_type directory."/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generating detect_object_parent_relations_single with distinct object definitions in detect_resource_type directory." />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- <sequential>
- <delete file="${detect_objects_parent_relations.xml}"/>
-
- <xslt basedir="./" style="${detect_objects_parent_relations.xsl}" in="${empty.xml}" destdir="./" out="${detect_objects_parent_relations.xml}" force="yes" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport}detect_objects_parent_relations"/>
- </factory>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
- <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="basedir" expression="${basedir}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="complete build detect objects parent relations single"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="complete build detect objects parent relations single" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- </parallel>
- <!--file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/transformed/resources_tree_required_occurs_raport/detect_objects_parent_relations-\-http__x3A____x2F____x2F__biuro.biall__x2D__net.pl__x2F__xmlschema_procesy5__x2F__default_db.xml-->
- </target>
-
-
- <!--disabled at 2018-01-05 single pass is faster <target name="build_detect_objects_parent_relations.single.task" depends="save_build_properties,read_build_properties,element_complexType.xml.single" description="Just build build_detect_objects_parent_relations.xml ">
-
- <parallel threadcount="2">
- <sequential>
- <exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating multi thread build lists for detect parent relations "/>
- </exec>
- </sequential>
- <sequential>
- <delete file="${build_detect_objects_parent_relations.xml}" failonerror="false"/>
- <delete file="${build_detect_objects_parent_relations.complete}" failonerror="false"/>
- <mkdir dir="${detect_objects_parent_relations.local}"/>
-
- <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_detect_objects_parent_relations.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="build_detect_objects_parent_relations.xml"/>
- </factory>
- <!-\-<param name="match_root_element" expression="wfs:FeatureCollection"/>-\->
- <param name="match_element" expression=""/><!-\- To be set universally to another type of object tree -\->
- <param name="antfile_prefix" expression="build_element_complexType.xml"/>
- <param name="temp" expression="/tmp"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="antfile" expression=""/>
- <!-\-<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-\->
- <param name="match_child_element" expression=""/>
- <param name="match_child_element_property_name" expression=""/>
- <param name="properties.xml" expression="${build_properties.xml}"/>
- <!-\-<param name="properties_override.xml" expression="${properties_override.xml}"/>-\->
- <param name="parallel" expression="1"/>
- <param name="threadCount" expression="${threadCount}"/>
- <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
- <param name="debug_level_param" expression="${debug_level_param}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="detect_resource_type.xsl" expression="${detect_resource_type.xsl}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <!-\-<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-\->
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
-
- <exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="executing multi thread build for relations by thread count ${threadCount}"/>
- </exec>
- <!-\-<delete dir="${build_complexType.local}"/>-\->
- <ant antfile="${build_detect_objects_parent_relations.xml}"/>
- <touch file="${build_detect_objects_parent_relations.complete}"/>
- <exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating relations types complete"/>
- </exec>
- </sequential>
- </parallel>
- </target>-->
-
-
- <target name="delete.detect_resource_type.local" description="to optionaly delete all p5_tr_map - not use when crashed">
- <delete dir="${detect_resource_type.local}"/>
- </target>
-
- <target name="detect_objects_parent_relations.xml.test" description="to detect if created ${detect_objects_parent_relations.xml}">
- <condition property="detect_objects_parent_relations.xml.cond" taskname="detect_objects_parent_relations.xml.cond">
- <available file="${detect_objects_parent_relations.xml}"/>
- </condition>
- </target>
-
- <target name="detect_objects_parent_relations.xml.cond" depends="detect_objects_parent_relations.xml.test,detect_objects_parent_relations.xml.fail" description="to detect if created ${detect_objects_parent_relations.xml}"/>
-
- <target name="detect_objects_parent_relations.xml.fail" unless="${detect_objects_parent_relations.xml.cond}" >
- <echo> not aviable $detect_objects_parent_relations.xml ${detect_objects_parent_relations.xml} generating single </echo>
- <antcall target="build_detect_objects_parent_relations.single"/>
- </target>
-
-
- <!-- depends="build_detect_objects_parent_relations" depends="save_build_properties,read_build_properties" -->
- <target name="build_simpleSchema_for_recurse_ant.single" > <!-- R depends="save_build_properties,read_build_properties" -->
- <parallel threadcount="2">
- <sequential>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="deleting and generating simple schema to provide easy object access by wfs filters"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="deleting and generating simple schema to provide easy object access by wfs filters" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
- </sequential>
- <sequential>
- <delete dir="${simpleSchema.local}"/>
- <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
- <!--<xslt basedir="./" style="${main_build_recurse_ant.dita_with_id.xsl}" in="${detect_objects_parent_relations.xml}" destdir="./" out="${main_build_recurse_ant.dita_with_id_raport.xml}" force="yes">
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport}build_simpleSchema_for_recurse_ant"/>
- </factory>
- <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
- <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
- <!-\-<param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
- <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
- <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>-\->
- <param name="namespace_prefix" expression="${targetNamespace_DEFAULTS_prefix}"/>
- <param name="detect_resource_type_dir" expression="${detect_resource_type.local}"/>
- <param name="build_complexType_dir" expression="${build_complexType.local}"/>
- <param name="simpleSchema_dir" expression="${simpleSchema.local}"/>
- <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>-->
-
- <antcall target="build_simpleSchema_for_recurse_ant.single.task"/>
-
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="complete build simpleSchema for recurse ant single"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="complete build simpleSchema for recurse ant single" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- </parallel>
- </target>
-
-
- <target name="build_simpleSchema_for_recurse_ant.single.task" description="Build simple Schema by multithread "> <!-- R depends="save_build_properties,read_build_properties" -->
-
- <parallel threadcount="2">
- <sequential>
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating multi thread build lists for complex resource types relations "/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generating multi thread build lists for Simple Schema " />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- <sequential>
- <delete file="${build_SimpleSchema.xml}" failonerror="false"/>
- <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
-
- <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_SimpleSchema.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="build_SimpleSchema.xml"/>
- </factory>
- <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
- <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
- <param name="antfile_prefix" expression="build_element_complexType.xml"/>
- <param name="temp" expression="/tmp"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="antfile" expression=""/>
- <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
- <param name="match_child_element" expression=""/>
- <param name="match_child_element_property_name" expression=""/>
- <param name="properties.xml" expression="${build_properties.xml}"/>
- <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
- <param name="parallel" expression="1"/>
- <param name="threadCount" expression="${threadCount}"/>
- <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
- <param name="debug_level_param" expression="${debug_level_param}"/>
- <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
- <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
- <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
- <param name="detect_resource_type.xsl" expression="${detect_resource_type.xsl}"/>
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
- <!--<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-->
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
-
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="executing multi thread build for relations by thread count ${threadCount}"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="executing multi thread build for Simple Schema by thread count ${threadCount}" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
-
- <!--<delete dir="${build_complexType.local}"/>-->
- <ant antfile="${build_SimpleSchema.xml}"/>
- <touch file="${build_simpleSchema_for_recurse_ant.single.complete}"/>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generating relations types complete"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generating Simple Schema complete" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- </parallel>
- </target>
-
-
- <target name="build_simpleSchema_for_recurse_ant" depends="build_detect_objects_parent_relations" description="we generate by using main_build_recurse_ant.dita_with_id.xsl simple transport map for use in interfaces and ant xml output">
- <antcall target="build_simpleSchema_for_recurse_ant.single"/>
- <touch file="${build_simpleSchema_for_recurse_ant.single.complete}"/>
- </target>
-
-
-
- <!--<target name="generate_ant_data_business_modules" description="generate modules specified in "/>
- <target name="read_db_structure" description="we read db structure to than analyze it against missing or not correct fields/tables/indexes "/>
- <target name="modify_uncorrect_structure" description="we add missing structure fields/tables/indexes "/>
- <target name="add_missing_structure" description="we add missing structure fields/tables/indexes "/>
- <target name="read_installed_business_objects" description="we read current installed business_objects to verify to update them (version)"/>
- <target name="update_installed_business_objects" description="we update current installed business_objects (version) and applying transaction apply template if some data need to be updated"/>
- <target name="install_business_objects" description="we install business_objects (version) and applying transaction apply template if some data need to be updated - rebuild references or instances "/>
- -->
-
-
-
-
- <target name="detect_objects_parent_relations_clean" description="piewsze czyszczenie - pewnie nie ma @id">
- <!--<exec command="make">
- <arg line="clean"/>
- </exec>-->
- <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- <delete dir="${detect_resource_type.local}"/>
- <delete dir="${transformed.local}"/>
- <delete dir="${build_complexType.local}"/>
- <delete dir="${p5_tr_map.local}"/>
- <delete dir="${simpleSchema.local}" />
- </target>
- <!--<target name="detect_objects_parent_relations" depends="detect_objects_parent_relations_clean" description="pierwsze szukanie relacji - moga nie miec @id">
- <!-\-<exec command="make" failifexecutionfails="no">
- <arg line="detect_objects_parent_relations"/>
- </exec>-\->
- <antcall target="build_complexType"/>
- <antcall target="build_tr_map"/>
- <antcall target="build_detect_resource_type"/>
- </target>-->
-
-
- <target depends="generate_schema_with_id" name="new-schema-with-ID-to-move-and-rename-to-xsd_test">
- <condition taskname="new-schema-with-ID-to-move-and-rename-to-xsd" property="new-schema-with-ID-to-move-and-rename-to-xsd_exists">
- <available file="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- </condition>
- </target>
-
- <target name="delete.external_schema_table.path" description="To delete generated by ${build_object_install_se_ant_object.xml} task system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external models">
- <delete dir="${external_schema_table.path}" failonerror="false"/>
- </target>
-
- <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.cond" depends="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test,new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.fail,new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.ok" />
- <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test">
- <condition property="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test" taskname="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.cond">
- <available file="${procesy5_system_schema.complete}"/>
- </condition>
- </target>
- <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.fail" unless="${new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test}" />
- <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.ok" if="${new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test}">
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="need to generate schema with id" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </target>
- <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete" description="to make procesy5 system schema only if no ${procesy5_system_schema.complete}"/>
-
- <target name="new-schema-with-ID-to-move-and-rename-to-xsd" depends="new-schema-with-ID-to-move-and-rename-to-xsd_test" if="${new-schema-with-ID-to-move-and-rename-to-xsd_exists}"> <!-- R save_build_properties,read_build_properties, -->
- <parallel failonany="true" threadCount="2">
- <sequential>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="need to generate schema with id"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="need to generate schema with id" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- <sequential>
- <copy todir="${basedir}">
- <fileset dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- </copy>
- <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- </sequential>
- </parallel>
-
- <sequential>
- <antcall target="procesy5_system_schema.xml"/> <!-- saved files are not in current schema - need to regenerate -->
- <antcall target="vrtfNamespaces.xml"/>
- <!--<exec executable="say" spawn="true" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="generated schema with id complete"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="generated schema with id complete" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
-
- </target>
-
-
- <!--<target name="detect_objects_parent_relations_clean_complete" if="${new-schema-with-ID-to-move-and-rename-to-xsd_complete_exists}" description="drugi raz czyscimy na czysto - z @id">
- <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- <delete dir="${detect_resource_type.local}"/>
- <delete dir="${transformed.local}"/>
- <delete dir="${build_complexType.local}"/>
- <delete dir="${p5_tr_map.local}"/>
- <delete dir="${simpleSchema.local}"/>
- <!-\-<exec command="make">
- <arg line="clean"/>
- </exec>-\->
- </target>-->
- <!--<target name="new-schema-with-ID-to-move-and-rename-to-xsd_test_complete">
- <condition taskname="detect_objects_parent_relations_complete" property="new-schema-with-ID-to-move-and-rename-to-xsd_complete_exists">
- <available file="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
- </condition>
- </target>-->
-
- <!--<target name="detect_objects_parent_relations_complete" if="${new-schema-with-ID-to-move-and-rename-to-xsd_complete_exists}" depends="new-schema-with-ID-to-move-and-rename-to-xsd_test_complete,detect_objects_parent_relations_clean_complete" description=" tutaj juz sa skopiowane z @id">
- <!-\-<exec command="make">
- <arg line="detect_objects_parent_relations"/>
- </exec>-\->
- <!-\-<antcall target="build_complexType"/>
- <antcall target="build_tr_map"/>
- <antcall target="build_detect_resource_type"/>-\->
- <!-\-<antcall target="build_simpleSchema_for_recurse_ant"/> <!-\\- to wystarczy - wyzwala sie kolejno po dependency -\\->-\->
- </target>-->
-
-
- <target name="sync_p5_tr_map_with_se.recomplete" description="when deleted something - use this option to try to regenerate missed">
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Try to regenerete deleted cache files" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
-
- <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
- <delete file="${build_element_complexType.xml.complete}" failonerror="false"/>
- <delete file="${build_tr_map.xml.complete}" failonerror="false"/>
-
- <antcall target="sync_p5_tr_map_with_se"/>
-
-
- </target>
-
- <target name="sync_p5_tr_map_with_se.refresh" depends="build_SE.SYSTEM.build_SE.SYSTEM" description="to force delete delete.build_complexType.local after modifications of schema. Not use after crash">
-
- <parallel failonany="true" threadCount="3">
- <sequential>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="deleting all generated cached objects"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="deleting all generated cached objects" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </sequential>
- <sequential>
- <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
- <delete file="${build_element_complexType.xml.complete}" failonerror="false"/>
- <delete file="${build_tr_map.xml.complete}" failonerror="false"/>
- <delete file="${build_detect_objects_parent_relations.complete}"/>
- <delete file="${build_detect_resource_type.complete}"></delete>
- </sequential>
- <sequential>
- <antcall target="delete.build_complexType.local"/>
- </sequential>
- <sequential>
- <antcall target="delete.detect_resource_type.local"/>
- </sequential>
- <sequential>
- <antcall target="delete.p5_tr_map.local"/>
- </sequential>
- </parallel>
-
- <sequential>
- <antcall target="sync_p5_tr_map_with_se"/>
- </sequential>
- <sequential>
- <antcall target="typespecial_to_ref.xml.clean"/>
- </sequential>
-
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="full refresh sync process 5 with SE complete"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue" >
- <property name="p5suis:say_text" value="full refresh sync process 5 with SE complete" />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- </target>
-
- <target name="sync_p5_tr_map_with_se" depends="sync_p5_tr_map_with_se.logged.start,new-schema-with-ID-to-move-and-rename-to-xsd,build_simpleSchema_for_recurse_ant,p5_make_symlink_to_work_in_default_db.in7_dziennik_koresp,sync_p5_tr_map_with_se.logged.stop" description="syncrhonizacja wygenerowanych map z default_db.instance/p5_tr_map do SE/schema/public_instance/p5_tr_map"> <!-- R save_build_properties,read_build_properties, -->
- <parallel failonany="true" threadCount="3">
- <sequential>
- <!--<exec executable="say" failifexecutionfails="false">
- <arg line="-v alex"/>
- <arg line="deleting all cached complexType transactions maps and parent relations. "/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="deleting all remote cached complexType transactions maps and parent relations. " />
- </ant>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
-
- <delete dir="${p5_tr_map.remote}" failonerror="no"/>
- <!--<copydir src="${p5_tr_map.local}" dest="${p5_tr_map.remote}" />-->
- <mkdir dir="${p5_tr_map.remote}"/>
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Copying to remote all cached files" />
- </ant>
- <!--<ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>-->
-
- <copy todir="${p5_tr_map.remote}">
- <fileset dir="${p5_tr_map.local}"/>
- </copy>
- <delete dir="${detect_resource_type.remote}" failonerror="no"/>
- <copy todir="${detect_resource_type.remote}">
- <fileset dir="${detect_resource_type.local}"/>
- </copy>
- </sequential>
- <sequential>
- <delete dir="${table.remote}" failonerror="no"/>
- <copy todir="${table.remote}">
- <fileset dir="${table.local}"/>
- </copy>
- </sequential>
- <sequential>
- <delete dir="${build_complexType.remote}" failonerror="no"/>
- <copy todir="${build_complexType.remote}">
- <fileset dir="${build_complexType.local}"/>
- </copy>
- </sequential>
- <sequential>
- <delete dir="${simpleSchema.remote}" failonerror="no"/>
- <copy todir="${simpleSchema.remote}">
- <fileset dir="${simpleSchema.local}"/>
- </copy>
- </sequential>
- </parallel>
- </target>
-
- <target name="sync_p5_tr_map_with_se.logged.start" >
- <echo>record name="${p5build.SYSTEM.StandardOutPath}" action="start" append="true"</echo>
- <echo>record name="${p5build.SYSTEM.StandardErrorPath}" action="start" append="true" loglevel="warning"</echo>
- <record name="${p5build.SYSTEM.StandardOutPath}" action="start" append="false"/>
- <record name="${p5build.SYSTEM.StandardErrorPath}" action="start" append="false" loglevel="warning"/>
- </target>
- <target name="sync_p5_tr_map_with_se.logged.stop" >
- <record name="${p5build.SYSTEM.StandardOutPath}" action="stop" />
- <record name="${p5build.SYSTEM.StandardErrorPath}" action="stop" />
- </target>
-
-
- <target name="p5_make_symlink_to_work_in_default_db.in7_dziennik_koresp" description="temporary to allow work with paths cheating and create on SE/schema/default_db.in7_dziennik_koresp symlink to ../WPS_Functions/get_wfs/ etc...">
- <echo> ln -s ${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree/CRM_PROCES_tree ../../WPS_Functions/default_db/CRM_PROCES_tree</echo>
- <!--<exec executable="ln" dir="${default_db.instance.xml.symlink}/CRM_PROCES_tree" >
- <arg line="-s ../WPS_Functions/default_db/CRM_PROCES_tree"/>
- </exec>-->
- <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="Symlink extra to corespondence task - to be removed " />
- </ant>
- <!--<ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>-->
-
- <symlink link="${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree" resource="../../WPS_Functions/default_db/CRM_PROCES_tree" overwrite="true"/>
- <!--Cannot find /Users/a.binder/Documents/se/SE/schema/ant-url_action/build.WPS_Functions.SYSTEM.xml imported from /Users/a.binder/Documents/se/SE/schema/ant-url_action/get_wfs/build.get_wfs.SYSTEM.xml-->
- <symlink link="${remote.ant-url_action}/build.WPS_Functions.SYSTEM.xml" resource="../WPS_Functions/build.WPS_Functions.SYSTEM.xml" overwrite="true"/>
- <symlink link="${remote.ant-url_action}/build.WPS_Functions.PRODUCT.xml" resource="../WPS_Functions/build.WPS_Functions.PRODUCT.xml" overwrite="true"/>
- <symlink link="${remote.ant-url_action}/build_WPS_Function_basedir.xml" resource="../WPS_Functions/build_WPS_Function_basedir.xml" overwrite="true"/>
- <symlink link="${remote.ant-url_action}/build_WPS_Function_properties.xml" resource="../WPS_Functions/build_WPS_Function_properties.xml" overwrite="true"/>
- <symlink link="${remote.ant-url_action}/username_and_pass_from_passwordBase64Basic" resource="../WPS_Functions/username_and_pass_from_passwordBase64Basic" overwrite="true"/>
- <symlink link="${remote.ant-url_action}/get_wfs" resource="../WPS_Functions/get_wfs" overwrite="true"/>
- </target>
-
-
-
- <target name="p5_make_symlink_to_work_in_default_db.bi_audit_energa_rum_kontrahenci_powiazania" description="temporary to allow work with paths cheating and create on SE/schema/default_db.bi_audit_energa_rum_kontrahenci_powiazania symlink to ../WPS_Functions/get_wfs/ etc...">
- <echo> ln -s ${remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania}/CRM_PROCES_tree/CRM_PROCES_tree ../../WPS_Functions/default_db/CRM_PROCES_tree</echo>
- <mkdir dir="${remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania}"/>
- <symlink link="${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree" resource="../../WPS_Functions/default_db/CRM_PROCES_tree" overwrite="true"/>
- </target>
-
-
-
-
- </project>
|