Skip to content

Commit ec5544c

Browse files
committed
adding deployment plan and custom file/directory locations to archive editor
1 parent cdfc6b0 commit ec5544c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

electron/app/js/wdtArchive.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
const path = require('path');
88
const fsPromises = require('fs/promises');
9+
const i18n = require("./i18next.config");
910

1011
function getEntryTypes() {
1112
// lazy load to allow initialization
@@ -23,6 +24,12 @@ function getEntryTypes() {
2324
extensions: ['ear', 'war'],
2425
pathPrefix: 'wlsdeploy/applications/'
2526
},
27+
'applicationDeploymentPlan': {
28+
name: i18n.t('wdt-archiveType-applicationDeploymentPlan'),
29+
subtype: 'file',
30+
extensions: ['xml'],
31+
pathPrefix: 'wlsdeploy/applications/'
32+
},
2633
'atpWallet': {
2734
name: i18n.t('wdt-archiveType-atpWallet'),
2835
subtype: 'file',
@@ -40,6 +47,16 @@ function getEntryTypes() {
4047
subtype: 'emptyDir',
4148
pathPrefix: 'wlsdeploy/coherence/'
4249
},
50+
'customFile': {
51+
name: i18n.t('wdt-archiveType-customFile'),
52+
subtype: 'file',
53+
pathPrefix: 'wlsdeploy/custom/'
54+
},
55+
'customDirectory': {
56+
name: i18n.t('wdt-archiveType-customDirectory'),
57+
subtype: 'dir',
58+
pathPrefix: 'wlsdeploy/custom/'
59+
},
4360
'domainBin': {
4461
name: i18n.t('wdt-archiveType-domainBin'),
4562
subtype: 'file',

electron/app/locales/en/electron.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,11 @@
331331
"wdt-archiveType-opssWallet": "OPSS Wallet",
332332
"wdt-archiveType-applicationFile": "Application File",
333333
"wdt-archiveType-applicationDir": "Application Directory",
334+
"wdt-archiveType-applicationDeploymentPlan": "Application Deployment Plan",
334335
"wdt-archiveType-classpathLibrary": "Classpath Library",
335336
"wdt-archiveType-coherenceStore": "Coherence Store Directory",
337+
"wdt-archiveType-customFile": "Custom File",
338+
"wdt-archiveType-customDirectory": "Custom Directory",
336339
"wdt-archiveType-domainBin": "Domain Script",
337340
"wdt-archiveType-domainLibrary": "Domain Library",
338341
"wdt-archiveType-nodeManagerFile": "Node Manager File",

0 commit comments

Comments
 (0)