wrps-demo-kit/99-reference/ciserver-hmi-deployment/components/compileComponents.cmd
Clio Liu 4fc5f80b21 chore: preserve reference files byte-for-byte
.gitattributes normalised the CI Server exports under 99-reference/ to LF.
They are a format specification and must match what CI Server actually
wrote, so mark the folder -text and restore the originals.
2026-09-02 15:17:49 +10:00

78 lines
3.1 KiB
Batchfile

@echo off
REM +--------------------------------------------------------------------------+
REM | |
REM | ///// ///// ///// ////// / OOOOO OOO OOO O OOOO |
REM | / / / / / / O O O O O O O |
REM | /// ///// /// / / O O O O O O OOO |
REM | / / / / / / O O O O O O O |
REM | / / / / / / O O O O O O O |
REM |/ / / ///// / / O OOO OOO OOOO OOOO |
REM | |
REM +--------------------------------------------------------------------------+
REM | * JWUI *
REM +--------------------------------------------------------------------------+
REM | Module identification
REM +--------------------------------------------------------------------------+
REM
REM Module Name : compileComponents.cmd
REM
REM Copyright (c): Yokogawa
REM
REM Author : C. Horevoorts
REM
REM +--------------------------------------------------------------------------+
REM | Module specification
REM +--------------------------------------------------------------------------+
REM
REM Description : This script compiles some example components
REM
REM +--------------------------------------------------------------------------+
REM | Changes ....
REM +--------------------------------------------------------------------------+
REM Who When Change What
REM +--------------------------------------------------------------------------+
REM HVS Jun-06 e9435 Initial version
REM HVS Jan-10 e10100 Web-HMI Phase 2
REM BHS Nov-11 i10583 Correct copy command
REM HVS Feb-20 e12194 Port to Java 11
REM
REM
REM Compile the java component classes
REM
javac -classpath "%TLS_ROOT_PATH%\tls\exe\jwuiclt.jar;%TLS_ROOT_PATH%\tls\exe\jwuilib.jar;%TLS_ROOT_PATH%\tls\exe\jtoolsclt.jar;%TLS_ROOT_PATH%\tls\exe\jtoolslibclt.jar;PDFRenderer.jar" PDFView.java
REM
REM Put the compiled classes in the jwuicomponentslib.jar
REM
if exist jwuicomponentslib.jar del /q /f jwuicomponentslib.jar
jar cvf jwuicomponentslib.jar *.class
del /q /f *.class
REM
REM Unpack any required other jar file into jwuicomponentslib.jar
REM For example:
REM if exist workfolder rmdir /s /q workfolder
REM mkdir workfolder
REM cd workfolder
REM jar xf ../PDFRenderer.jar
REM rmdir /s /q META-INF
REM cd ..
REM jar uvf jwuicomponentslib.jar -C workfolder .
REM rmdir /s /q workfolder
REM
REM Sign the jwuicomponentslib.jar
REM
jarsigner -keystore %TLS_WAP_PATH%\cfg\keystore\keystore -storepass yokogawa jwuicomponentslib.jar yokogawa
REM
REM Distribute the jwuicomponentslib.jar to the tls environment
REM
copy jwuicomponentslib.jar %TLS_ROOT_PATH%\tls\exe
copy jwuicomponentslib.jar %TLS_WAP_PATH%\lib
REM
REM Don't forget to restart USER/FAST to make the changes effective
REM