|
|
@@ -540,7 +540,7 @@
|
|
|
</target>
|
|
|
|
|
|
<!-- przeliczenie dla kazdego PE z trasy punktu przeciecia i wybranie najkrotszej i wygenerowania kabla -->
|
|
|
- <target name="cables_from_joins_to_PE.xml" depends="edge_paths_with_PE_fixed.xml" unless="${edge_paths_with_PE_fixed.xml.exists}">
|
|
|
+ <target name="cables_from_joins_to_PE.xml" depends="edge_paths_with_PE_fixed.xml" ">
|
|
|
<delete file="${cables_from_joins_to_PE.xml}"/>
|
|
|
<xslt basedir="./" style="${cables_from_joins_to_PE.xsl}" in="${joins2ways_z_ID_Way.xml}" destdir="./" out="${cables_from_joins_to_PE.xml}" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
@@ -611,6 +611,12 @@
|
|
|
</target>
|
|
|
|
|
|
<target name="get_PE_fixings_from_db" description="Get data from API with XML - this example shows how easy is to use Procesy5 framework/system!" depends="import_ssl_certificates_to_system">
|
|
|
+
|
|
|
+ <condition property="PE_fixings.xml.exists" taskname="edge_paths_with_PE_fixed.xml">
|
|
|
+ <available file="${PE_fixings.xml}" filepath="."/>
|
|
|
+ </condition>
|
|
|
+ <echo> condition aviable file ${PE_fixings.xml} is ${PE_fixings.xml.exists} </echo>
|
|
|
+
|
|
|
<property name="WFS_VERSION" value="&VERSION=1.0.0"/>
|
|
|
<property name="TYPENAME" value="&TYPENAME=p5_default_db:Rozdzielcza_test_bzyk_PE"/>
|
|
|
<delete file="${PE_fixings.xml}"></delete>
|
|
|
@@ -624,12 +630,8 @@
|
|
|
</target>
|
|
|
|
|
|
|
|
|
- <target name="edge_paths_with_PE_fixed.xml" depends="get_PE_fixings_from_db" description="przerobienie edge_paths_with_PE.xml na fixed (${edge_paths_with_PE_fixed.xml}) do wygenerowania kabli aby je tam uzyc ">
|
|
|
-
|
|
|
- <condition property="edge_paths_with_PE_fixed.xml.exists" taskname="cables_from_joins_to_PE.xml">
|
|
|
- <available file="${edge_paths_with_PE_fixed.xml}" filepath="."/>
|
|
|
- </condition>
|
|
|
-
|
|
|
+ <target name="edge_paths_with_PE_fixed.xml" depends="get_PE_fixings_from_db" unless="PE_fixings.xml.exists" description="przerobienie edge_paths_with_PE.xml na fixed (${edge_paths_with_PE_fixed.xml}) do wygenerowania kabli aby je tam uzyc ">
|
|
|
+
|
|
|
<delete file="${edge_paths_with_PE_fixed.xml}"/>
|
|
|
<xslt basedir="./" style="${edge_paths_with_PE_fixed.xsl}" in="${edge_paths_with_PE.xml}" destdir="./" out="${edge_paths_with_PE_fixed.xml}" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|