diff --git a/ci/app2bsp/package-lock.json b/ci/app2bsp/package-lock.json deleted file mode 100644 index c03b0d2a..00000000 --- a/ci/app2bsp/package-lock.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "fiori-launchpad-connector-onpremise", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "fiori-launchpad-connector-onpremise", - "version": "1.0.0", - "license": "MIT" - } - } -} diff --git a/ci/app2bsp/package.json b/ci/app2bsp/package.json deleted file mode 100644 index f6b7ab8e..00000000 --- a/ci/app2bsp/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "fiori-launchpad-connector-onpremise", - "version": "1.0.0", - "description": "Ein Projekt zum Kopieren von Dateien von source nach target21", - "main": "run.js", - "scripts": { - "start": "node run.js" - }, - "author": "Ihr Name", - "license": "MIT", - "dependencies": {} - } \ No newline at end of file diff --git a/ci/app2bsp/run.js b/ci/app2bsp/run.js deleted file mode 100644 index 6d55967d..00000000 --- a/ci/app2bsp/run.js +++ /dev/null @@ -1,89 +0,0 @@ -const fs = require('fs'); -const path = require('path'); - -const sourceDir = './app/webapp'; -const staticDir = './ci/app2bsp/static_files'; -const targetDir = './output'; -const prefix = 'z2ui5.wapa.'; - -function generateTargetFileName(sourcePath, baseDir) { - const relativePath = path.relative(baseDir, sourcePath); - const fileName = prefix + relativePath.replace(/\//g, '_-').replace(/\\/g, '_-').toLowerCase(); - return fileName; -} - -function copyFilesRecursively(source, target, baseDir, renameFiles = true) { - fs.readdir(source, { withFileTypes: true }, (err, entries) => { - if (err) { - console.error('Fehler beim Lesen des Verzeichnisses:', err); - return; - } - - entries.forEach(entry => { - const sourcePath = path.join(source, entry.name); - const targetFileName = renameFiles ? generateTargetFileName(sourcePath, baseDir) : entry.name; - const targetPath = path.join(target, targetFileName); - - if (entry.isDirectory()) { - // Rekursiver Aufruf für Unterordner - copyFilesRecursively(sourcePath, target, baseDir, renameFiles); - } else if (entry.isFile()) { - // Lese die Quelldatei - fs.readFile(sourcePath, 'utf8', (err, data) => { - if (err) { - console.error(`Fehler beim Lesen der Quelldatei ${entry.name}:`, err); - return; - } - - // Erstelle den Zielordner, falls er nicht existiert - fs.mkdir(path.dirname(targetPath), { recursive: true }, (err) => { - if (err) { - console.error('Fehler beim Erstellen des Zielordners:', err); - return; - } - - // Schreibe den Inhalt in die Zieldatei - fs.writeFile(targetPath, data, 'utf8', (err) => { - if (err) { - console.error(`Fehler beim Schreiben der Zieldatei ${entry.name}:`, err); - return; - } - console.log(`Datei ${entry.name} erfolgreich kopiert als ${targetFileName}.`); - }); - }); - }); - } - }); - }); -} - -function deleteFilesRecursively(directory) { - if (fs.existsSync(directory)) { - fs.readdirSync(directory).forEach((file) => { - const curPath = path.join(directory, file); - if (fs.lstatSync(curPath).isDirectory()) { - deleteFilesRecursively(curPath); - } else { - fs.unlinkSync(curPath); - } - }); - fs.rmdirSync(directory); - } -} - -// Lösche alle Dateien im Zielverzeichnis -deleteFilesRecursively(targetDir); - -// Erstelle das Zielverzeichnis, falls es nicht existiert -fs.mkdir(targetDir, { recursive: true }, (err) => { - if (err) { - console.error('Fehler beim Erstellen des Zielverzeichnisses:', err); - return; - } - - // Starte den Kopiervorgang für den Quellordner - copyFilesRecursively(sourceDir, targetDir, sourceDir); - - // Starte den Kopiervorgang für den statischen Ordner ohne Umbenennung - copyFilesRecursively(staticDir, targetDir, staticDir, false); -}); diff --git a/ci/app2bsp/static_files/024251849e5a1edfa0b19c97d05e28c2.smim.xml b/ci/app2bsp/static_files/024251849e5a1edfa0b19c97d05e28c2.smim.xml deleted file mode 100644 index 6b34819f..00000000 --- a/ci/app2bsp/static_files/024251849e5a1edfa0b19c97d05e28c2.smim.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - /SAP/BC/BSP/SAP/Z2UI5 - X - - - diff --git a/ci/app2bsp/static_files/package.devc.xml b/ci/app2bsp/static_files/package.devc.xml deleted file mode 100644 index 968ac676..00000000 --- a/ci/app2bsp/static_files/package.devc.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - abap2UI5 - - - - diff --git a/ci/app2bsp/static_files/z2ui5 0ec96042f38e7e75ceadd96a5.sicf.xml b/ci/app2bsp/static_files/z2ui5 0ec96042f38e7e75ceadd96a5.sicf.xml deleted file mode 100644 index 5987cdf6..00000000 --- a/ci/app2bsp/static_files/z2ui5 0ec96042f38e7e75ceadd96a5.sicf.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - /sap/bc/ui5_ui5/sap/z2ui5/ - - Z2UI5 - z2ui5 - - - Z2UI5 - E - test - - - - diff --git a/ci/app2bsp/static_files/z2ui5 cc3e0011031e2f3f4be478dc5.sicf.xml b/ci/app2bsp/static_files/z2ui5 cc3e0011031e2f3f4be478dc5.sicf.xml deleted file mode 100644 index ed3c3e18..00000000 --- a/ci/app2bsp/static_files/z2ui5 cc3e0011031e2f3f4be478dc5.sicf.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - /sap/bc/bsp/sap/z2ui5/ - - Z2UI5 - z2ui5 - - - Z2UI5 - E - test - - - - diff --git a/ci/app2bsp/static_files/z2ui5.wapa.ui5repositorypathmapping.xml b/ci/app2bsp/static_files/z2ui5.wapa.ui5repositorypathmapping.xml deleted file mode 100644 index ef1cfe13..00000000 --- a/ci/app2bsp/static_files/z2ui5.wapa.ui5repositorypathmapping.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ci/app2bsp/static_files/z2ui5.wapa.xml b/ci/app2bsp/static_files/z2ui5.wapa.xml deleted file mode 100644 index 8f39fa76..00000000 --- a/ci/app2bsp/static_files/z2ui5.wapa.xml +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - Z2UI5 - /UI5/CL_UI5_BSP_APPLICATION - Z2UI5 - X - E - E - test - - - - - Z2UI5 - CC/DEBUGTOOL.FRAGMENT.XML - cc/DebugTool.fragment.xml - X - E - A - E - - - - - Z2UI5 - CC/DEBUGTOOL.JS - cc/DebugTool.js - X - E - A - E - - - - - Z2UI5 - CC/SERVER.JS - cc/Server.js - X - E - A - E - - - - - Z2UI5 - COMPONENT.JS - Component.js - X - E - A - E - - - - - Z2UI5 - CONTROLLER/APP.CONTROLLER.JS - controller/App.controller.js - X - E - A - E - - - - - Z2UI5 - CONTROLLER/VIEW1.CONTROLLER.JS - controller/View1.controller.js - X - E - A - E - - - - - Z2UI5 - CSS/STYLE.CSS - css/style.css - X - E - A - E - - - - - Z2UI5 - INDEX.HTML - index.html - text/html - X - E - A - E - - - - - Z2UI5 - MANIFEST.JSON - manifest.json - X - E - A - E - - - - - Z2UI5 - MODEL/MODELS.JS - model/models.js - X - E - A - E - - - - - Z2UI5 - UI5REPOSITORYPATHMAPPING.XML - UI5RepositoryPathMapping.xml - X - E - A - E - - - - - Z2UI5 - VIEW/APP.VIEW.XML - view/App.view.xml - X - E - A - E - - - - - Z2UI5 - VIEW/VIEW1.VIEW.XML - view/View1.view.xml - X - E - A - E - - - - - -