xml-importer and xml-exporter added to z-distr

This commit is contained in:
Ivan Nikolaev-Axenov 2024-08-08 11:51:29 +03:00
parent 8d70db939f
commit 43162aa18a
6 changed files with 71 additions and 1 deletions

View file

@ -53,6 +53,8 @@
<folder_root_registry-service>${folder_root_clearing}/clearing-parent/registry-service</folder_root_registry-service>
<folder_root_scheduler-service>${folder_root_clearing}/clearing-parent/scheduler-service</folder_root_scheduler-service>
<folder_root_gateway-api>${folder_root_clearing}/clearing-parent/gateway-api</folder_root_gateway-api>
<folder_root_xml-exporter>${folder_root_clearing}/clearing-parent/xml-exporter</folder_root_xml-exporter>
<folder_root_xml-importer>${folder_root_clearing}/clearing-parent/xml-importer</folder_root_xml-importer>
<!-- IMDG -->
<external_libraries.hazelcast.version>3.12.4</external_libraries.hazelcast.version>
<external_libraries.slf4j.version>1.7.33</external_libraries.slf4j.version>

View file

@ -568,6 +568,52 @@
</fileSets>
</configuration>
</execution>
<execution>
<id>copy-xml-exporter-bin</id>
<phase>prepare-package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<fileSets>
<fileSet>
<sourceFile>${folder_root_xml-exporter}/target/xml-exporter.jar</sourceFile>
<destinationFile>${folder.clearing.distr.bin}/xml-exporter.jar</destinationFile>
</fileSet>
<fileSet>
<sourceFile>${folder_root_xml-exporter}/target/xml-exporter.jar</sourceFile>
<destinationFile>${folder.clearing.distr.services}/xml-exporter/xml-exporter.jar</destinationFile>
</fileSet>
<fileSet>
<sourceFile>${folder_root_xml-exporter}/src/main/resources/application.properties</sourceFile>
<destinationFile>${folder.clearing.distr.settings}/xml-exporter/application.properties</destinationFile>
</fileSet>
</fileSets>
</configuration>
</execution>
<execution>
<id>copy-xml-importer-bin</id>
<phase>prepare-package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<fileSets>
<fileSet>
<sourceFile>${folder_root_xml-importer}/target/xml-importer.jar</sourceFile>
<destinationFile>${folder.clearing.distr.bin}/xml-importer.jar</destinationFile>
</fileSet>
<fileSet>
<sourceFile>${folder_root_xml-importer}/target/xml-importer.jar</sourceFile>
<destinationFile>${folder.clearing.distr.services}/xml-importer/xml-importer.jar</destinationFile>
</fileSet>
<fileSet>
<sourceFile>${folder_root_xml-importer}/src/main/resources/application.properties</sourceFile>
<destinationFile>${folder.clearing.distr.settings}/xml-importer/application.properties</destinationFile>
</fileSet>
</fileSets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>

View file

@ -19,4 +19,6 @@ kill -9 $(ps -ef | grep java | grep scheduler-service.jar | awk '{print $2}')
kill -9 $(ps -ef | grep java | grep reports-service.jar | awk '{print $2}')
kill -9 $(ps -ef | grep java | grep registry-service.jar | awk '{print $2}')
kill -9 $(ps -ef | grep java | grep swt-importer.jar | awk '{print $2}')
kill -9 $(ps -ef | grep java | grep gateway-api.jar | awk '{print $2}')
kill -9 $(ps -ef | grep java | grep gateway-api.jar | awk '{print $2}')
kill -9 $(ps -ef | grep java | grep xml-exporter.jar | awk '{print $2}')
kill -9 $(ps -ef | grep java | grep xml-importer.jar | awk '{print $2}')

View file

@ -20,3 +20,5 @@ cd /opt/mfd/clearing/bin
/opt/mfd/clearing/bin/registry-service.sh
/opt/mfd/clearing/bin/swt-importer.sh
/opt/mfd/clearing/bin/gateway-api.sh
/opt/mfd/clearing/bin/xml-exporter.sh
/opt/mfd/clearing/bin/xml-importer.sh

View file

@ -0,0 +1,9 @@
#!/bin/bash
CLEARING_HOME=/opt/mfd/clearing/
cd $CLEARING_HOME/bin
CMD="java -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7031 -jar xml-exporter.jar --spring.config.location=$CLEARING_HOME/settings/xml-exporter/"
$CMD >/dev/null 2>&1 &

View file

@ -0,0 +1,9 @@
#!/bin/bash
CLEARING_HOME=/opt/mfd/clearing/
cd $CLEARING_HOME/bin
CMD="java -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7041 -jar xml-importer.jar --spring.config.location=$CLEARING_HOME/settings/xml-importer/"
$CMD >/dev/null 2>&1 &