initialize

This commit is contained in:
Pruefer
2025-06-06 09:15:13 +02:00
commit fa7c2730f1
5817 changed files with 1339670 additions and 0 deletions

31
installer/.classpath Normal file
View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

23
installer/.project Normal file
View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>imsinterfaces-installer</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

View File

@@ -0,0 +1,3 @@
eclipse.preferences.version=1
encoding//src/main/resources=UTF-8
encoding/<project>=UTF-8

View File

@@ -0,0 +1,5 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8

View File

@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

403
installer/pom.xml Normal file
View File

@@ -0,0 +1,403 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.itac.interface</groupId>
<artifactId>imsinterfaces-installer</artifactId>
<packaging>jar</packaging>
<name>imsinterfaces-installer</name>
<version>${mes.interface.version}</version>
<parent>
<groupId>com.itac.interface</groupId>
<artifactId>imsinterfaces</artifactId>
<version>${mes.interface.version}</version>
</parent>
<properties>
<projectname>${job.name}</projectname>
<inno.setup.compiler>"/cygdrive/c/Program Files (x86)/Inno Setup 5/ISCC.exe"</inno.setup.compiler>
<dotnet.build.dir>${dotnet.build.basedir}/${project.artifactId}/${user.name}/${projectname}</dotnet.build.dir>
<binary.base.name>imsInterfacesSetup</binary.base.name>
<binary.name>${binary.base.name}.exe</binary.name>
<timestamp>${maven.build.timestamp}</timestamp>
</properties>
<dependencies>
<dependency>
<groupId>commons-daemon</groupId>
<artifactId>commons-daemon</artifactId>
<classifier>bin-windows</classifier>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-basic</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-core</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-mesutil</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-config-bundle</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-fuji</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-fuji-definition</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-cogiscan-interface</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>imsinterfaces-commonsmt-interface</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-asm-interface</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-panasonic</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-yamaha-interface</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-line-dashboard-interface</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>data-interface-machine</artifactId>
</dependency>
<dependency>
<groupId>com.itac.interface.interfaces</groupId>
<artifactId>imsinterfaces-molding</artifactId>
</dependency>
<dependency>
<groupId>com.itac.product</groupId>
<artifactId>artes-common</artifactId>
</dependency>
<dependency>
<groupId>com.itac.product</groupId>
<artifactId>resource-common</artifactId>
</dependency>
<dependency>
<groupId>com.itac.product</groupId>
<artifactId>util-common</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<!-- 1. alle Files aus dem daemon-binaries artefakt ins target Verzeichnis entpacken -->
<id>unpack</id>
<phase>validate</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>commons-daemon</groupId>
<artifactId>commons-daemon</artifactId>
<classifier>bin-windows</classifier>
<type>zip</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/daemon-binaries</outputDirectory>
<includes>**/*</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<!-- 2. alle jar-files des Interfaces sammeln und alle Klassen in ein Verzeichnis sammeln (/target/classes)-->
<execution>
<id>copy-dependencies</id>
<phase>validate</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<stripVersion>true</stripVersion>
<excludeTypes>zip</excludeTypes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<!-- alle extrahierten Klassen in ein gemeinsames JAR packen (/target/imsInterfaces-singleJar.jar ) -->
<execution>
<id>create-project-bundle1</id>
<phase>validate</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>imsInterfaces</finalName>
<outputDirectory>${project.basedir}/target/lib</outputDirectory>
<descriptor>${project.basedir}/src/main/assembly/single.xml</descriptor>
</configuration>
</execution>
<!-- den source-Folder-->
<execution>
<id>create-project-bundle2</id>
<phase>validate</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>imsInterfaces</finalName>
<descriptor>${project.basedir}/src/main/assembly/source.xml</descriptor>
</configuration>
</execution>
</executions>
</plugin>
<!-- Im Startscript die Version ersetzen -->
<!--plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources-startscripts</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/target/src</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/src</directory>
<filtering>true</filtering>
<includes>
<include>*.iss</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/src</directory>
<filtering>false</filtering>
<excludes>
<exclude>*.iss</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin-->
<plugin>
<groupId>com.itac.tools</groupId>
<artifactId>ssh-plugin</artifactId>
<executions>
<execution>
<id>copysources</id>
<phase>process-sources</phase>
<goals>
<goal>ssh</goal>
</goals>
<configuration>
<parallel>false</parallel>
<remoteHosts>
<RemoteHost>
<host>${dotnet.build.host}</host>
<user>${dotnet.build.user}</user>
<password>${dotnet.build.pw}</password>
<commands>
<ExecuteCommand>
<!-- Verzeichnisse auf der Zielmaschine anlegen, alle Files richtig kopieren -->
<order>1</order>
<arg>cd ${dotnet.build.basedir};
rm -rf ${project.artifactId}/${user.name}/${projectname};
mkdir ${project.artifactId};
cd ${project.artifactId};
mkdir ${user.name};
cd ${user.name};
mkdir ${projectname};
cd ${projectname};
</arg>
<!-- mkdir target;
cd target;
mkdir src;
mkdir lib;
-->
</ExecuteCommand>
<!--PutCommand>
<order>2</order>
<remoteDirectory>${dotnet.build.dir}/target/lib</remoteDirectory>
<localFiles>
<param>${project.basedir}/target/lib/imsInterfaces-singleJar.jar</param>
</localFiles>
</PutCommand-->
<PutCommand>
<order>3</order>
<remoteDirectory>${dotnet.build.dir}/</remoteDirectory>
<localFiles>
<param>${project.basedir}/target/imsInterfaces-source.zip</param>
</localFiles>
</PutCommand>
<!-- Entpacken des Source-Folders auf der Windows-Build-Maschine -->
<ExecuteCommand>
<order>10</order>
<arg>cd ${dotnet.build.dir} &amp;&amp;unzip -q imsInterfaces-source.zip;
</arg>
</ExecuteCommand>
</commands>
</RemoteHost>
</remoteHosts>
</configuration>
</execution>
<execution>
<id>innocompile</id>
<phase>compile</phase>
<goals>
<goal>ssh</goal>
</goals>
<configuration>
<parallel>false</parallel>
<remoteHosts>
<RemoteHost>
<host>${dotnet.build.host}</host>
<user>${dotnet.build.user}</user>
<password>${dotnet.build.pw}</password>
<commands>
<ExecuteCommand>
<order>100</order>
<!-- Aufruf des Inno Setup Command Line Compilers-->
<arg>cd ${dotnet.build.dir} &amp;&amp;
${inno.setup.compiler} ./target/src/imsInterfaces.iss
</arg>
</ExecuteCommand>
</commands>
</RemoteHost>
</remoteHosts>
</configuration>
</execution>
<execution>
<id>packagesetup</id>
<phase>package</phase>
<goals>
<goal>ssh</goal>
</goals>
<configuration>
<parallel>false</parallel>
<remoteHosts>
<RemoteHost>
<host>${dotnet.build.host}</host>
<user>${dotnet.build.user}</user>
<password>${dotnet.build.pw}</password>
<commands>
<GetCommand>
<order>200</order>
<localDirectory>${project.build.directory}</localDirectory>
<remoteFiles>
<param>${dotnet.build.dir}/target/${binary.name}</param>
</remoteFiles>
</GetCommand>
</commands>
</RemoteHost>
</remoteHosts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.polago.maven.plugins</groupId>
<artifactId>merge-properties-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
<outputFile>com.itac.mes.datainterface.factories.IHandler</outputFile>
<resources>
<resource>
<directory>src\main\resources\META-INF\services\</directory>
<filtering>false</filtering>
</resource>
</resources>
<includes>
<include>**/*IHandler</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>merge</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[2.5,)</versionRange>
<goals>
<goal>unpack-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<versionRange>[2.2.2,)</versionRange>
<goals>
<goal>single</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

BIN
installer/project.pj Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>single</id>
<baseDirectory>/</baseDirectory>
<formats>
<format>jar</format>
</formats>
<fileSets>
<fileSet>
<directory>${project.basedir}/target/classes</directory>
<outputDirectory>/</outputDirectory>
<excludes>
<exclude>**/*RSA</exclude>
<exclude>**/*SF</exclude>
</excludes>
<filtered>false</filtered>
</fileSet>
</fileSets>
</assembly>

View File

@@ -0,0 +1,34 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>source</id>
<baseDirectory>/</baseDirectory>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>${project.basedir}/src</directory>
<outputDirectory>/target/src</outputDirectory>
<includes>
<include>*.iss</include>
</includes><filtered>true</filtered>
</fileSet>
<fileSet>
<directory>${project.basedir}/src</directory>
<outputDirectory>/target/src</outputDirectory>
<excludes>
<exclude>*.iss</exclude>
</excludes> <filtered>false</filtered>
</fileSet>
<fileSet>
<directory>${project.basedir}/target/daemon-binaries</directory>
<outputDirectory>/target/daemon-binaries</outputDirectory>
<filtered>false</filtered>
</fileSet>
<fileSet>
<directory>${project.basedir}/target/lib</directory>
<outputDirectory>/target/lib</outputDirectory>
<filtered>false</filtered>
</fileSet>
</fileSets>
</assembly>

View File

@@ -0,0 +1,97 @@
:: DO NOT MODIFY TIS FILE MANUALLY
@echo off
if "%OS%" == "Windows_NT" setlocal
set SERVICE_NAME=[SERVICE_NAME]
set "CURRENT_DIR=%cd%"
cd ..
set "APPLICATION_SERVICE_HOME=%cd%\%SERVICE_NAME%"
echo %APPLICATION_SERVICE_HOME%
cd "%CURRENT_DIR%"
set EXECUTABLE_NAME=%SERVICE_NAME%.exe
set EXECUTABLE=%APPLICATION_SERVICE_HOME%\bin\%EXECUTABLE_NAME%
::-- The fully qualified start and stop classes
set CG_START_CLASS=com.itac.mes.datainterface.windows.DataInterfaceAsService
set CG_STOP_CLASS=%CG_START_CLASS%
::-- The start and stop methods for the class above incl. parameters
set CG_START_METHOD=start
set CG_START_PARAMS="start itac.artes.clusternodes=[ITAC.ARTES.CLUSTERNODES] itac.appid=%SERVICE_NAME%"
set CG_STOP_METHOD=stop
set CG_STOP_PARAMS=stop
::-- the classpath for all jars needed to run your service
set CG_PATH_TO_JAR_CONTAINING_SERVICE=%APPLICATION_SERVICE_HOME%\lib\data-interface-core.jar
::-- Setting the service startup type {auto/manual}
set CG_STARTUP_TYPE=[STARTUP_TYPE]
::-- set a fix JVM
set CG_PATH_TO_JVM="[JVM_DLL]"
::---- Set other options via environment variables, just as an example -------
set PR_DESCRIPTION=This is the iTAC.MES.DataInterface running as a service. The instance name for this service is (%SERVICE_NAME%). It is a part of the imsInterfaces.ear.
set PR_INSTALL=%EXECUTABLE%
set PR_LOGPATH=%APPLICATION_SERVICE_HOME%\logs
set PR_CLASSPATH=%CG_PATH_TO_JAR_CONTAINING_SERVICE%;%APPLICATION_SERVICE_HOME%\lib\*
set PR_DISPLAYNAME=iTAC.MES.DataInterface %SERVICE_NAME%
if "%1" == "" goto displayUsage
if /i %1 == install goto install
if /i %1 == remove goto remove
:displayUsage
echo Usage: service.bat install/remove [service_name]
goto end
:remove
::---- Remove the service -------
"%EXECUTABLE%" //DS//%SERVICE_NAME%
echo The service '%SERVICE_NAME%' has been removed
goto end
:install
::---- Install the Service -------
echo Installing service '%SERVICE_NAME%' ...
echo.
set EXECUTE_STRING= %EXECUTABLE% //IS//%SERVICE_NAME% --Startup %CG_STARTUP_TYPE% --StartClass %CG_START_CLASS% --StopClass %CG_STOP_CLASS%
call:executeAndPrint %EXECUTE_STRING%
set EXECUTE_STRING= "%EXECUTABLE%" //US//%SERVICE_NAME% --StartMode jvm --StopMode jvm --Jvm %CG_PATH_TO_JVM%
call:executeAndPrint %EXECUTE_STRING%
set EXECUTE_STRING= "%EXECUTABLE%" //US//%SERVICE_NAME% --StartMethod %CG_START_METHOD% --StopMethod %CG_STOP_METHOD%
call:executeAndPrint %EXECUTE_STRING%
set EXECUTE_STRING= "%EXECUTABLE%" //US//%SERVICE_NAME% --StartParams %CG_START_PARAMS% --StopParams %CG_STOP_PARAMS%
call:executeAndPrint %EXECUTE_STRING%
set EXECUTE_STRING= "%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%APPLICATION_SERVICE_HOME%\temp;" --JvmMs [JVM_MS] --JvmMx [JVM_MX]
call:executeAndPrint %EXECUTE_STRING%
echo.
echo The service '%SERVICE_NAME%' has been installed.
goto end
::--------
::- Functions
::-------
:executeAndPrint
%*
echo %*
goto:eof
:end

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB