wrps-demo-kit/99-reference/ciserver-hmi-deployment/components/compileComponents.cmd
Clio Liu e60e8d3e60 docs(reference): worked CI Server examples, trimmed 138 MB to 5 MB
CI Server publishes no file-format documentation, so real .qli exports and a
real HMI deployment are the only specification the .qli and display generators
were written against. Kept the parts that carry that knowledge:

  ciserver-qli-exports/     10 exports - the .qli format
  ciserver-hmi-deployment/  components, layouts, thresholds, locales
                            + 6 of 84 displays

Dropped symbols/ (107 MB - CI Server's own installed library, already on
cicore1), the colour-variant displays, editor lock/autosave artefacts, and the
stock OpenPLC sample projects.
2026-09-02 15:16:56 +10:00

78 lines
3 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