|
@@ -28,11 +28,13 @@
|
|
|
<property name="build_SE.properties.xml" location="${build_SE.properties}.xml"/>
|
|
<property name="build_SE.properties.xml" location="${build_SE.properties}.xml"/>
|
|
|
|
|
|
|
|
<property name="procesy5_config.folders.xsl" location="${build_SE_basedir}/procesy5_config.folders.xsl"/>
|
|
<property name="procesy5_config.folders.xsl" location="${build_SE_basedir}/procesy5_config.folders.xsl"/>
|
|
|
|
|
+ <property name="procesy5_config.default_db.xsl" location="${build_SE_basedir}/procesy5_config.default_db.xsl"/>
|
|
|
<!-- components -->
|
|
<!-- components -->
|
|
|
<property name="dita-ot-toolkit" location="${basedir}/../stuff/dita-ot-2.3.3"/>
|
|
<property name="dita-ot-toolkit" location="${basedir}/../stuff/dita-ot-2.3.3"/>
|
|
|
<property name="procesy5_config" location="${basedir}/../config"/>
|
|
<property name="procesy5_config" location="${basedir}/../config"/>
|
|
|
<!--<property name="procesy5_config.folders" location="${procesy5_config}/.cnf-\-folders.ini.php"/>-->
|
|
<!--<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.server" location="${procesy5_config}/.cnf--folders-${SERVER_ADDRESS}.ini.php"/>
|
|
|
|
|
+ <property name="procesy5_config.default_db.server" location="${procesy5_config}/.cnf--default_db-${SERVER_ADDRESS}.ini.php"/>
|
|
|
<property name="procesy5_config.folders.properties.xml" location="${build_SE_basedir}/procesy5_config.folders.properties.xml"/>
|
|
<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 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"/>-->
|
|
@@ -43,7 +45,7 @@
|
|
|
|
|
|
|
|
<!-- task to maintain properties -->
|
|
<!-- task to maintain properties -->
|
|
|
|
|
|
|
|
- <target name="save_build_properties" depends="build_SE.install_dirs,build_SE_read_procesy5_file_properties">
|
|
|
|
|
|
|
+ <target name="save_build_properties" depends="build_SE.install_dirs,build_SE_read_procesy5_file_properties,build_SE_read_procesy5_default_db_properties">
|
|
|
<echoproperties destfile="${build_SE.properties}"/>
|
|
<echoproperties destfile="${build_SE.properties}"/>
|
|
|
<echoproperties destfile="${build_SE.properties.xml}" format="xml"/>
|
|
<echoproperties destfile="${build_SE.properties.xml}" format="xml"/>
|
|
|
</target>
|
|
</target>
|
|
@@ -86,15 +88,58 @@
|
|
|
<!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
|
|
<!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
|
|
|
<!--<param name="basedir" expression="${basedir}"/>-->
|
|
<!--<param name="basedir" expression="${basedir}"/>-->
|
|
|
</xslt>
|
|
</xslt>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<loadfile property="procesy5_config.folders.properties.xml.file" srcfile="${procesy5_config.folders.properties.xml}"/>
|
|
<loadfile property="procesy5_config.folders.properties.xml.file" srcfile="${procesy5_config.folders.properties.xml}"/>
|
|
|
- <echo>#60 reading $procesy5_config.folders.properties.xml ${procesy5_config.folders.properties.xml.file}
|
|
|
|
|
|
|
+ <!--<echo>#60 reading $procesy5_config.folders.properties.xml ${procesy5_config.folders.properties.xml.file}
|
|
|
${procesy5_config.folders.properties.xml.file}
|
|
${procesy5_config.folders.properties.xml.file}
|
|
|
- </echo>
|
|
|
|
|
|
|
+ </echo>-->
|
|
|
|
|
+ </target>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- default_db -->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <target name="build_SE_read_procesy5_default_db_properties_check" description="Detect if there are procesy5_config.folders.server configured (in Procesy5 installation folder) ">
|
|
|
|
|
+ <condition property="build_SE_read_procesy5_default_db_properties_check" taskname="build_SE_read_procesy5_default_db_properties">
|
|
|
|
|
+ <available file="${procesy5_config.default_db.server}" />
|
|
|
|
|
+ </condition>
|
|
|
|
|
+ <antcall target="build_SE_read_procesy5_default_db_properties_failed"/>
|
|
|
|
|
+ </target>
|
|
|
|
|
+
|
|
|
|
|
+ <target unless="${build_SE_read_procesy5_default_db_properties_check}" name="build_SE_read_procesy5_default_db_properties_failed" description="echo inform that there is not config exists">
|
|
|
|
|
+ <echo> INFORM : propbably not installed in Procesy5 environment - not detected ${procesy5_config.default_db.server} file</echo>
|
|
|
|
|
+ </target>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <target if="${build_SE_read_procesy5_default_db_properties_check}" name="build_SE_read_procesy5_default_db_properties" depends="build_SE_read_procesy5_default_db_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.default_db.server_loadfile" srcfile="${procesy5_config.default_db.server}"/>
|
|
|
|
|
+ <tempfile property="procesy5_config.default_db_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.default_db_loadfile_xml" suffix=".xml" deleteonexit="no"/>
|
|
|
|
|
|
|
|
|
|
+ <echoxml file="${procesy5_config.default_db_loadfile_xml}">
|
|
|
|
|
+ <procesy5_config>
|
|
|
|
|
+ <!--<procesy5_config.folders>${procesy5_config.folders_loadfile}</procesy5_config.folders>-->
|
|
|
|
|
+ <procesy5_config.default_db.server>${procesy5_config.default_db.server_loadfile}</procesy5_config.default_db.server>
|
|
|
|
|
+ </procesy5_config>
|
|
|
|
|
+ </echoxml>
|
|
|
|
|
+ <xslt basedir="./" style="${procesy5_config.default_db.xsl}" in="${procesy5_config.default_db_loadfile_xml}" destdir="./" out="${procesy5_config.default_db.properties.xml}" >
|
|
|
|
|
+ <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
|
|
+ <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
|
|
+ </factory>
|
|
|
|
|
+ <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
|
|
+ <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
|
|
|
|
|
+ <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
|
|
|
|
|
+ <!--<param name="basedir" expression="${basedir}"/>-->
|
|
|
|
|
+ </xslt>
|
|
|
|
|
+
|
|
|
|
|
+ <loadfile property="procesy5_config.default_db.properties.xml.file" srcfile="${procesy5_config.default_db.properties.xml}"/>
|
|
|
|
|
+ <!--<echo>#60 reading $procesy5_config.default_db.properties.xml ${procesy5_config.default_db.properties.xml.file}
|
|
|
|
|
+ ${procesy5_config.default_db.properties.xml.file}
|
|
|
|
|
+ </echo>-->
|
|
|
</target>
|
|
</target>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<target name="procesy5_root_build_save_procesy5_file_properties" description="TODO in install licence task"/>
|
|
<target name="procesy5_root_build_save_procesy5_file_properties" description="TODO in install licence task"/>
|
|
|
|
|
|
|
|
|
|
|