From bcfe23b0d8b1050b61d339d1c162d23641886871 Mon Sep 17 00:00:00 2001 From: akpaevj Date: Mon, 19 Feb 2024 23:13:42 +0300 Subject: [PATCH] a --- .vscode/launch.json | 18 ++++++--- EDT.sbsl | 2 +- Zip.sbsl | 33 +++++++++------- logs.root_IS_UNDEFINED/console_executor.log | 42 +++++++++++++++++++++ 4 files changed, 75 insertions(+), 20 deletions(-) create mode 100644 logs.root_IS_UNDEFINED/console_executor.log diff --git a/.vscode/launch.json b/.vscode/launch.json index d6c463e..4f4f24e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,15 +8,21 @@ "name": "Executor", "type": "sbsl", "request": "launch", - "scriptFile": "${file}", + "scriptFile": "${file", "args": [ - "8.3.23.2040", - "W228\\USR1CV8", - "N3Ak8bPu7", - "erp_main_extension_2765112a", - "C:\\Users\\akpaev.e\\Desktop\\erp-ibsrv-config.yml" + "::ZipFolder", + "C:\\Users\\akpaev.e\\Desktop\\test3", + "C:\\Users\\akpaev.e\\Desktop\\test3.zip", + "True" ] // "args": [ + // "8.3.23.2040", + // "W228\\USR1CV8", + // "N3Ak8bPu7", + // "erp_main_extension_2765112a", + // "C:\\Users\\akpaev.e\\Desktop\\erp-ibsrv-config.yml" + // ] + // "args": [ // "C:\\Users\\akpaev.e\\Desktop\\erp-ibsrv-config2.yml", // "http.http-services.service.name", // "testvalue" diff --git a/EDT.sbsl b/EDT.sbsl index 8467fb3..faf2e6a 100644 --- a/EDT.sbsl +++ b/EDT.sbsl @@ -33,7 +33,7 @@ method BuildXmlFiles( Files.Delete(DataPath) val ArchivePath = IO.JoinPath(new File(ProjectPath).Path, "${new File(ProjectPath).Name}.zip") - Zip.ZipFolder(BuildPath, ArchivePath) + Zip.ZipFolder(BuildPath.Path, ArchivePath) Console.Write("Zipped project path: ${ArchivePath}") Files.Delete(BuildPath) diff --git a/Zip.sbsl b/Zip.sbsl index d82fbb5..d01b718 100644 --- a/Zip.sbsl +++ b/Zip.sbsl @@ -1,21 +1,28 @@ -@Global -method ZipFolder(Folder: File, ArchivePath: String) - val ArchiveFile = new File(ArchivePath) - var Writer = new ZipWriter(ArchiveFile.OpenWritableStream()) +#required IO.sbsl - for F in Folder.Children - AddToZipArchive(Writer, F, Folder) +@Global +method ZipFolder(FolderPath: String, ArchivePath: String, ZipChildren: Boolean = True) + val Folder = new File(FolderPath) + val Archive = new File(ArchivePath) + var Writer = new ZipWriter(Archive.OpenWritableStream()) + + if ZipChildren + for File in Folder.Children + AddToZipArchive(File, Writer) + ; + else + AddToZipArchive(Folder, Writer) ; Writer.Write() ; -method AddToZipArchive(Writer: ZipWriter, Source: File, Folder: File) - if Source.IsFile() - Writer.Add(Source.OpenReadableStream(), Source.Path.Replace(Folder.Path, "")) - ; - - for F in Source.Children - AddToZipArchive(Writer, F, Folder) +method AddToZipArchive(FileToZipping: File, Writer: ZipWriter, Path: String = "") + if FileToZipping.IsFile() + Writer.Add(FileToZipping.OpenReadableStream(), IO.JoinPath(Path, FileToZipping.Name)) + else + for File in FileToZipping.Children + AddToZipArchive(File, Writer, IO.JoinPath(Path, FileToZipping.Name)) + ; ; ; \ No newline at end of file diff --git a/logs.root_IS_UNDEFINED/console_executor.log b/logs.root_IS_UNDEFINED/console_executor.log new file mode 100644 index 0000000..cf9d4e4 --- /dev/null +++ b/logs.root_IS_UNDEFINED/console_executor.log @@ -0,0 +1,42 @@ +[INFO ] 2024-02-19 23:11:14.518 [main] DebugServer - Starting debug server. +[INFO ] 2024-02-19 23:11:14.520 [main] DebugServer - Starting debug server on port 54417 with 4 threads. +[INFO ] 2024-02-19 23:11:14.864 [main] DebugServer - Debug server was started and listening on port 54417. +[INFO ] 2024-02-19 23:11:14.864 [main] DebugServer - Debug server started. +[INFO ] 2024-02-19 23:11:16.423 [main] DebugServer - Stopping debug server. +[INFO ] 2024-02-19 23:11:16.423 [main] DebugServer - Shutting down connections. +[INFO ] 2024-02-19 23:11:16.749 [main] DebugServer - Connections shutdown ok. +[INFO ] 2024-02-19 23:11:16.751 [main] DebugServer - Debug server was stopped. +[ERROR] 2024-02-19 23:11:16.751 [main] c.e.g.e.c.i.p.ConsoleExecutionStep - Метод "Script/Скрипт" не найден +[INFO ] 2024-02-19 23:11:38.468 [main] DebugServer - Starting debug server. +[INFO ] 2024-02-19 23:11:38.471 [main] DebugServer - Starting debug server on port 54459 with 4 threads. +[INFO ] 2024-02-19 23:11:38.705 [main] DebugServer - Debug server was started and listening on port 54459. +[INFO ] 2024-02-19 23:11:38.705 [main] DebugServer - Debug server started. +[INFO ] 2024-02-19 23:11:39.832 [Debugger-worker-4-2] DebugServer - Authentication of debug client succeed. applicationId=7afe7a11-bc5c-4c26-8ee1-9bef5606c2c8 +[INFO ] 2024-02-19 23:11:39.832 [Debugger-worker-4-2] DebugServer - Got applicationId=7afe7a11-bc5c-4c26-8ee1-9bef5606c2c8 for debug from PaaS +[INFO ] 2024-02-19 23:11:39.833 [Debugger-worker-4-2] DebugServer - Registering a new session with id=b28518d4-6a88-40f6-8129-533eb42d5973 and appId=7afe7a11-bc5c-4c26-8ee1-9bef5606c2c8 +[INFO ] 2024-02-19 23:11:39.835 [Debugger-worker-4-2] DebugServer - Session with id=b28518d4-6a88-40f6-8129-533eb42d5973 for appId=7afe7a11-bc5c-4c26-8ee1-9bef5606c2c8 created. +[INFO ] 2024-02-19 23:11:39.952 [main] DebugServer - Stopping debug server. +[INFO ] 2024-02-19 23:11:39.952 [main] DebugServer - Shutting down connections. +[INFO ] 2024-02-19 23:11:40.171 [Debugger-worker-4-2] DebugServer - Session shutdown successfully: sessionId=b28518d4-6a88-40f6-8129-533eb42d5973 +[INFO ] 2024-02-19 23:11:40.171 [Debugger-worker-4-2] DebugServer - Channel to Debug Client (IDE) is unregistered: sessionId=b28518d4-6a88-40f6-8129-533eb42d5973 +[INFO ] 2024-02-19 23:11:40.279 [main] DebugServer - Connections shutdown ok. +[INFO ] 2024-02-19 23:11:40.279 [main] DebugServer - Debug server was stopped. +[ERROR] 2024-02-19 23:11:40.280 [main] c.e.g.e.c.i.p.ConsoleExecutionStep - Метод "Script/Скрипт" не найден +[INFO ] 2024-02-19 23:12:02.189 [main] DebugServer - Starting debug server. +[INFO ] 2024-02-19 23:12:02.192 [main] DebugServer - Starting debug server on port 54500 with 4 threads. +[INFO ] 2024-02-19 23:12:02.440 [main] DebugServer - Debug server was started and listening on port 54500. +[INFO ] 2024-02-19 23:12:02.441 [main] DebugServer - Debug server started. +[INFO ] 2024-02-19 23:12:03.638 [Debugger-worker-4-2] DebugServer - Authentication of debug client succeed. applicationId=03e2c2aa-f960-4e51-a2ae-aed1faffa550 +[INFO ] 2024-02-19 23:12:03.639 [Debugger-worker-4-2] DebugServer - Got applicationId=03e2c2aa-f960-4e51-a2ae-aed1faffa550 for debug from PaaS +[INFO ] 2024-02-19 23:12:03.639 [Debugger-worker-4-2] DebugServer - Registering a new session with id=2b192630-cac1-4bcf-851f-d77602b3d8ce and appId=03e2c2aa-f960-4e51-a2ae-aed1faffa550 +[INFO ] 2024-02-19 23:12:03.641 [Debugger-worker-4-2] DebugServer - Session with id=2b192630-cac1-4bcf-851f-d77602b3d8ce for appId=03e2c2aa-f960-4e51-a2ae-aed1faffa550 created. +[INFO ] 2024-02-19 23:12:03.890 [main] c.e.g.a.s.r.CryptoManager - Current security provider list: SUN, SunRsaSign, SunEC, SunJSSE, SunJCE, SunJGSS, SunSASL, XMLDSig, SunPCSC, JdkLDAP, JdkSASL, SunMSCAPI, SunPKCS11 +[INFO ] 2024-02-19 23:12:03.892 [main] c.e.g.a.s.r.CryptoManager - New security provider list: SUN, SunRsaSign, SunEC, SunJSSE, SunJCE, SunJGSS, SunSASL, XMLDSig, SunPCSC, JdkLDAP, JdkSASL, SunMSCAPI, SunPKCS11 +[INFO ] 2024-02-19 23:12:04.051 [main] c.e.g.a.s.r.SystemCertificatesReader - Loaded certificates with aliases: [D-TRUST Root Class 3 CA 2 EV 2009, Sigen-CA, Sectigo (CCA), EDICOM, AC1 RAIZ MTIN, ANCERT Corporaciones de Derecho Publico, UCA Global Root, Swisscom Root EV CA 2, T-TeleSec Global Root Class 3, TW Government Root Certification Authority, IIS Express Development Certificate, Sectigo (AddTrust), VeriSign Class 3 Public Primary Certification Authority - G4, VeriSign (2), AffirmTrust Premium, Microsoft Authenticode(tm) Root, Posta CA Root, GlobalSign Root CA - R6, ?IGC/A AC racine Etat francais, GlobalSign Root CA - R3, GlobalSign Root CA - R1, GeoTrust Global CA, SECOM Trust Systems CO LTD, Digidentity BV, NetLock Arany (Class Gold) Fotanusitvany, QuoVadis Root Certification Authority, CertEurope, Entrust.net, Microsoft ECC Product Root Certificate Authority 2018, SECOM Trust Systems CO LTD (1), Australian Defence Organisation (ADO) Certificate Authority 02, ASP.NET Core HTTPS development certificate, AC Raiz Certicamara S.A., VeriSign (1), Go Daddy Class 2 Certification Authority, DigiCert Trusted Root G4, Skaitmeninio sertifikavimo centras (2), AffirmTrust Networking, enterprise-DC2-CA, thawte, SwissSign Gold Root CA – G, Certipost E-Trust Primary Qualified CA, DigiCert CS RSA4096 Root G5, IZENPE S.A., DST Root CA X3, Halcom Root CA, StartCom Certification Authority, Trustwave (1), rds.enterprise.corp, Microsoft ECC TS Root Certificate Authority 2018, OATI WebCARES Root CA, LAWtrust Root Certification Authority 2048, AffirmTrust Commercial, I.CA – Qualified Certification Authorit, MicroSec e-Szigno Root CA, NetLock Minositett Kozjegyzoi (Class QA) Tanusitvanykiado, DigiCert Global Root CA, Signet Root CA, SwissSign Silver Root CA – G, VI Registru Centras RCSC (RootCA), Trustwave (2), ComSign CA, GPKIRootCA1, SSL.com EV Root Certification Authority RSA R2, I.CA Prvni certifikacni autorita a.s. (1), Certigna, SwissSign Platinum Root CA – G, CA DATEV INT 01, CA DATEV INT 02, Hongkong Post Root CA 1, Halcom CA FO, Cisco Systems, Symantec Class 1 Public Primary Certification Authority - G6, LuxTrust Global Root CA, Hellenic Academic and Research Institutions RootCA 2011, SITHS CA, Autoridad de Certificacion de la Abogacia, Go Daddy Root Certificate Authority – G, Sectigo (formerly Comodo CA), ANCERT Certificados CGN, DigiCert Baltimore Root, Colegio de Registradores Mercantiles, KEYNECTSIS ROOT CA, thawte Primary Root CA - G3, thawte Primary Root CA - G2, PostSignum Root QCA 2, DigiCert Global Root, VeriSign Time Stamping CA, ?PersonalID Trustworthy RootCA 2011, CFCA EV ROOT, D-TRUST GmbH, Amazon Services Root Certificate Authority -- G2, ANCERT Certificados Notariales V2, QuoVadis Root CA 3, QuoVadis Root CA 2, TM Applied Business Root Certificate, ?Autoridade Certificadora Raiz Brasileira v2, Visa Information Delivery Root CA, Swisscom Root CA 1, Global Chambersign Root - 2008, Hellenic Academic and Research Institutions RootCA 2015, GeoTrust (1), ANF AC, Symantec Class 1 Public Primary Certification Authority - G4, SwissSign Platinum G2 Root CA, Symantec Class 3 Public Primary Certification Authority - G6, Symantec Class 3 Public Primary Certification Authority - G4, enterprise-DC2-CA (2), enterprise-DC3-CA-1, Estonian Certification Centre Root CA, EBG Elektronik Sertifika Hizmet Saglayicisi, Sectigo (AAA), Macao Post eSign Trust, CA DATEV STD 02, CA DATEV STD 01, Sectigo (UTN Object), GeoTrust Primary Certification Authority - G2, VeriSign, GeoTrust Universal CA 2, GeoTrust Primary Certification Authority - G3, TUBITAK Kamu SM, Skaitmeninio sertifikavimo centras (1), Network Solutions, Autoridad de Certificacion Raiz de la Republica Bolivariana de Venezuela, Thawte Timestamping CA, Actalis Authentication Root CA, CertPlus Class 3P Primary CA, GPKI ApplicationCA2 Root, enterprise-DC1-CA, DigiCert, SSL.com Root Certification Authority RSA, Starfield Technologies Inc., enterprise-DC2-CA (3), QuoVadis Root CA 3 G3, D-TRUST Root Class 3 CA 2 2009, Staat der Nederlanden Root CA - G2, CertPlus Class 3 Primary CA, Skaitmeninio sertifikavimo centras, Trustis FPS Root CA, Secretariat General de la Defense Nationale, Microsoft Root Authority, E-ME SSI (RCA), AffirmTrust Premium ECC, Equifax Secure Global eBusiness CA-1, WoSign 1999, Sectigo (formerly Comodo CA) ECC, Echoworx Root CA2, GeoTrust Global CA 2, NetLock Platina (Class Platinum) Fotanusitvany, Autoridad Certificadora Raiz Nacional de Uruguay, Microsoft Root Certificate Authority 2011 (1), I.CA Prvni certifikacni autorita a.s., Swiss Government Root CA I, Certipost E-Trust Primary TOP Root CA, Certum Trusted Network CA, Inera AB, Japan Local Government PKI Application CA, Nets DanID, enterprise-DC2-CA (1), Buypass Class 2 Root CA, KISA RootCA 1, ?Swisscom Root CA 2, CA Disig, DIRECCION GENERAL DE LA POLICIA, Root CA Generalitat Valenciana, NetLock Kozjegyzoi (Class A) Tanusitvanykiado, Swiss Government Root CA II, QuoVadis Root CA 1 G3, Austrian Society for Data Protection GLOBALTRUST Certification Service, VeriSign Class 3 Public Primary CA, GeoTrust, Certinomis, Symantec Enterprise Mobile Root for Microsoft, POSTarCA, CNNIC Root, Microsoft Time Stamp Root Certificate Authority 2014, certSIGN Root CA, Japan Certification Services, Inc. SecureSign RootCA11, ComSign Secured CA, Entrust Root Certification Authority - EC1, E-Tugra Certification Authority, QuoVadis Root CA 2 G3, Japanese Government ApplicationCA, AC RAIZ FNMT-RCM, Sonera Class2 CA, I.CA – Standard Certification Authorit, Chambersign Global Root, Izenpe.com, UCA Root, Starfield Class 2 Certification Authority, VAS Latvijas Pasts SSI(RCA), TC TrustCenter Class 3 CA II, Chambers of Commerce Root - 2008, Athex Root CA, Chunghwa Telecom Co. Ltd., Microsoft Root Certificate Authority 2011, Sectigo, E-GUVEN Elektronik Sertifika Hizmet Saglay?c?s?, TWCA Root Certification Authority 1, DigiCert Assured ID Root G2, DigiCert Assured ID Root G3, ACCVRAIZ1, CertPlus Class 3TS Primary CA, TWCA Root Certification Authority 2, Chambers of Commerce Root, Entrust, Sigov-CA, Microsoft Root Certificate Authority 2010, Halcom CA PO 2, China Internet Network Information Center EV Certificates Root, StartCom Certification Authority G2, thawte (3), Actalis Authentication CA G1, CAROOT Firmaprofesional, Certipost E-Trust Primary Normalised CA, MicroSec e-Szigno Root CA 2009, Secretaria de Economia Mexico, DigiCert (2), NLB Nova Ljubljanska Banka d.d. Ljubljana, ANCERT Certificados Notariales, ISRG Root X1, T-TeleSec GlobalRoot Class 2, A-Trust-Qual-03a, SZAFIR ROOT CA, GeoTrust Universal CA, Buypass Class 3 Root CA, Autoridade Certificadora da Raiz Brasileira v1 - ICP-Brasil, thawte (2), enterprise-DC3-CA, Google Trust Services - GlobalSign Root CA-R2, China Financial CA, Juur-SK AS Sertifitseerimiskeskus, GlobalSign ECC Root CA - R5, SECOM Trust Systems Co Ltd., Entrust (2048), Microsoft Root Certificate Authority, Agencia Catalana de Certificacio (NIF Q-0801176-I), TeliaSonera Root CA v1, Correo Uruguayo - Root CA, VeriSign (5), CCA India 2011, BIT Admin-Root-CA, Certum, thawte (1), S-TRUST Authentication and Encryption Root CA 2005:PN, Autoridad de Certificacion Raiz de la Republica Bolivariana de Venezuela (1), Cybertrust Global Root, SwissSign Silver G2 Root CA, D-TRUST GmbH (1), ANCERT Certificados CGN V2, ComSign Advanced Security CA, Google Trust Services - GlobalSign ECC Root CA - R4, VRK Gov. Root CA, CA DATEV BT 02, CA DATEV BT 01, VeriSign (4), SwissSign, Symantec Class 2 Public Primary Certification Authority - G4, CA Disig Root R2, Symantec Class 2 Public Primary Certification Authority - G6, ECRaizEstado, CA Disig Root R1, Microsoft Timestamp Root, Sectigo ECC, DigiCert Global Root G2, ComSign Global Root CA, DigiCert (1), DigiCert Global Root G3, OISTE WISeKey Global Root GA CA, America Online Root Certification Authority 1, BIT AdminCA-CD-T01, Common Policy, Trustwave, VeriSign Universal Root Certification Authority, Staat der Nederlanden Root CA, Starfield Root Certificate Authority – G, Atos TrustedRoot 2011, CertPlus Class 2 Primary CA, VeriSign (3)] +[INFO ] 2024-02-19 23:12:29.032 [Debugger-worker-4-2] DebugServer - Session shutdown successfully: sessionId=2b192630-cac1-4bcf-851f-d77602b3d8ce +[INFO ] 2024-02-19 23:12:29.032 [Debugger-worker-4-2] DebugServer - Channel to Debug Client (IDE) is unregistered: sessionId=2b192630-cac1-4bcf-851f-d77602b3d8ce +[INFO ] 2024-02-19 23:12:29.295 [main] DebugServer - Stopping debug server. +[INFO ] 2024-02-19 23:12:29.295 [main] DebugServer - Shutting down connections. +[INFO ] 2024-02-19 23:12:29.629 [main] DebugServer - Connections shutdown ok. +[INFO ] 2024-02-19 23:12:29.629 [main] DebugServer - Debug server was stopped. +[INFO ] 2024-02-19 23:12:29.636 [main] c.e.g.e.c.i.p.ConsoleExecutionStep - [ExecuteScript]: done!