|
|
@@ -0,0 +1,74 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<project basedir="." name="procesy5_status" default="procesy5_status" >
|
|
|
+
|
|
|
+ <description>TODO do kontroli kondycji systemu komunikacja - do podlaczenia pod API aby mozna było po tym requestowac</description>
|
|
|
+
|
|
|
+ <property name="temp" value="temp_procesy5_status"/>
|
|
|
+
|
|
|
+ <property name="storage_free.xml" value="${temp}/storage_free.xml" />
|
|
|
+ <property name="procesy5_status.xml" value="${temp}/procesy5_status.xml"/>
|
|
|
+
|
|
|
+ <!--<tempfile property="storage_free" deleteonexit="false" destdir="${temp}"/>-->
|
|
|
+
|
|
|
+
|
|
|
+ <property name="build_procesy5_status.xsl" value="build_procesy5_status.xsl"/>
|
|
|
+
|
|
|
+
|
|
|
+ <target name="create_dirs">
|
|
|
+ <mkdir dir="${temp}"/>
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
+ <target name="storage_free" depends="create_dirs">
|
|
|
+
|
|
|
+
|
|
|
+ <exec executable="df" outputproperty="storage_free" >
|
|
|
+ <arg line=" -a /"/>
|
|
|
+ </exec>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<echo file="${storage_free}"> Testowa zawartosc do zapisania</echo>-->
|
|
|
+
|
|
|
+
|
|
|
+ <!--<loadfile srcfile="${storage_free}" property="loadfile"/>-->
|
|
|
+
|
|
|
+ <echoxml file="${storage_free.xml}">
|
|
|
+ <storage_free.xml>${storage_free}</storage_free.xml>
|
|
|
+ </echoxml>
|
|
|
+
|
|
|
+ <!--<loadfile srcfile="${storage_free.xml}" property="loadfile.xml"/>-->
|
|
|
+
|
|
|
+ <echo> storage_free ${loadfile}
|
|
|
+ xml:
|
|
|
+ ${storage_free}}
|
|
|
+
|
|
|
+ </echo>
|
|
|
+
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <target name="procesy5_status" depends="storage_free" description="sprawdzenie kondycji systemu">
|
|
|
+
|
|
|
+
|
|
|
+ <xslt basedir="./"
|
|
|
+ style="${build_procesy5_status.xsl}"
|
|
|
+ destdir="./"
|
|
|
+ out="${procesy5_status.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="build_procesy5_status" />
|
|
|
+ </factory>
|
|
|
+ <param name="temp"
|
|
|
+ expression="${temp}"/>
|
|
|
+ <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
+ </xslt>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <echo> RAPORT Z DZIALANIA </echo>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </target>
|
|
|
+</project>
|