Browse Source

todo schema config parsers in local schema -

a.binder 8 năm trước cách đây
mục cha
commit
39173d61bc
2 tập tin đã thay đổi với 34 bổ sung7 xóa
  1. 34 7
      SE/build_SE.xml
  2. 0 0
      SE/schema/build_SE_basedir/procesy5_config.folders.xsl

+ 34 - 7
SE/build_SE.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project basedir="." name="procesy5_root_build" default="save_build_properties">
+<project basedir="schema" name="procesy5_root_build" default="save_build_properties">
   <description>
       for main purposes to provide properties for another builds eg: dita-ot
   </description>
@@ -8,8 +8,20 @@
     
     <property name="SERVER_ADDRESS" value="biuro.biall-net.pl"/> <!-- to be set in licence file and to be generated -->
     
+    
+    <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 -->
+    
+    
+    
     <!-- this built own properties -->
-    <property name="build_SE.xml" location="${basedir}/build_SE.xml"/>
+    <property name="build_SE.xml" location="${basedir}/../build_SE.xml"/>
     <property name="build_SE_basedir" location="${basedir}/build_SE_basedir"/> <!-- to keep files there some temp etc -->
     <property name="build_SE_basedir.temp" location="${build_SE_basedir}/temp"/>
     <property name="build_SE.properties" location="${build_SE_basedir}/build_SE.properties"/>
@@ -17,15 +29,17 @@
     
     <property name="procesy5_config.folders.xsl" location="${build_SE_basedir}/procesy5_config.folders.xsl"/>
     <!-- components -->
-    <property name="dita-ot-toolkit" location="${basedir}/stuff/dita-ot-2.3.3"/>
-    <property name="procesy5_config" location="${basedir}/config"/>
+    <property name="dita-ot-toolkit" location="${basedir}/../stuff/dita-ot-2.3.3"/>
+    <property name="procesy5_config" location="${basedir}/../config"/>
         <!--<property name="procesy5_config.folders" location="${procesy5_config}/.cnf-\-folders.ini.php"/>-->
         <property name="procesy5_config.folders.server" location="${procesy5_config}/.cnf--folders-${SERVER_ADDRESS}.ini.php"/>
     <property name="procesy5_config.folders.properties.xml" location="${build_SE_basedir}/procesy5_config.folders.properties.xml"/>
   
-  
+    <!-- TODO in build_resource_ant.xml <property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>-->
+    
     <!-- TODO config/licence/to handle params to SYNC with xmlschema and WPS_Functions -->
-    <property name="bootstrap.php" location="${basedir}/se-lib/bootstrap.php"/> <!-- used in php scripts to execute  as root require("/Library/Server/Web/Data/Sites/SE-producition-git/SE/se-lib/bootstrap.php"); -->
+  
+    <property name="bootstrap.php" location="${basedir}/../se-lib/bootstrap.php"/> <!-- used in php scripts to execute  as root require("/Library/Server/Web/Data/Sites/SE-producition-git/SE/se-lib/bootstrap.php"); -->
   
    <!-- task to maintain properties -->
   
@@ -39,7 +53,20 @@
         <mkdir dir="${build_SE_basedir.temp}"/>
     </target>
     
-    <target name="build_SE_read_procesy5_file_properties" depends="build_SE.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
+    
+    <target name="build_SE_read_procesy5_file_properties_check" description="Detect if there are procesy5_config.folders.server configured (in Procesy5 installation folder) ">
+        <condition property="build_SE_read_procesy5_file_properties_check" taskname="build_SE_read_procesy5_file_properties">
+            <available file="${procesy5_config.folders.server}" />
+            <!--<available file="${procesy5_config}" />-->
+        </condition>
+        <antcall target="build_SE_read_procesy5_file_properties_failed"/>
+    </target>
+    
+    <target unless="${build_SE_read_procesy5_file_properties_check}" name="build_SE_read_procesy5_file_properties_failed" description="echo inform that there is not config exists">
+        <echo> INFORM : propbably not installed in Procesy5 environment - not detected ${procesy5_config.folders.server} file</echo>
+    </target>
+    
+    <target if="${build_SE_read_procesy5_file_properties_check}" name="build_SE_read_procesy5_file_properties" depends="build_SE_read_procesy5_file_properties_check,build_SE.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
         <!--<loadfile property="procesy5_config.folders_loadfile" srcfile="${procesy5_config.folders}"/>-->
         <loadfile property="procesy5_config.folders.server_loadfile" srcfile="${procesy5_config.folders.server}"/>
         <tempfile property="procesy5_config.folders_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.folders_loadfile_xml" suffix=".xml" deleteonexit="no"/>

+ 0 - 0
SE/build_SE_basedir/procesy5_config.folders.xsl → SE/schema/build_SE_basedir/procesy5_config.folders.xsl