From b670bd45a501136353e83353d3ac7d93d13e2c2a Mon Sep 17 00:00:00 2001 From: Gaurav Gupta Date: Thu, 9 Oct 2025 19:03:18 +0530 Subject: [PATCH] Payara Micro Maven Plugin v2.5.1 support --- .../fish/payara/micro/plugin/Constants.java | 7 + .../payara/micro/plugin/resources/pom.xml.ftl | 2 +- .../payara/micro/project/Bundle.properties | 14 ++ .../micro/project/MicroActionsProvider.java | 80 ++++++++- .../micro/project/MicroApplication.java | 31 +++- .../micro/project/MicroPropertiesPanel.form | 158 +++++++++++++++++- .../micro/project/MicroPropertiesPanel.java | 145 +++++++++++++++- .../project/resources/action-mapping.xml | 36 ---- 8 files changed, 420 insertions(+), 53 deletions(-) diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java index e61006f5c461..0830ec78a2e9 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java @@ -47,6 +47,13 @@ public interface Constants { String VERSION = "version"; String HOT_DEPLOY = "hotDeploy"; + String DEV_MODE = "devMode"; + String DEPLOY_WAR = "deployWar"; + String EXPLODED = "exploded"; + String TRIM_LOG = "trimLog"; + String AUTO_DEPLOY = "autoDeploy"; + String KEEP_STATE = "keepState"; + String LIVE_RELOAD = "liveReload"; String WAR_PACKAGING = "war"; diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/resources/pom.xml.ftl b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/resources/pom.xml.ftl index 21586ebd305e..3ce2a9279e10 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/resources/pom.xml.ftl +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/resources/pom.xml.ftl @@ -36,7 +36,7 @@ fish.payara.maven.plugins payara-micro-maven-plugin - 1.3.0 + 2.5.1 ${r"${version.payara}"} false diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/Bundle.properties b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/Bundle.properties index aee40ac25127..4492b620c634 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/Bundle.properties +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/Bundle.properties @@ -25,3 +25,17 @@ ERR_Compile_On_Save_Not_Enabled=Reload Error ({0} : Compile on save not enabled) ERR_Payara_Micro_Plugin_Not_Found=Reload Error ({0} : Payara Micro plugin not found) MicroPropertiesPanel.hotDeployLabel.text=Hot Deploy: MicroPropertiesPanel.hotDeployCheckBox.text= +MicroPropertiesPanel.devModeLabel.text=Dev Mode: +MicroPropertiesPanel.devModeCheckBox.text= +MicroPropertiesPanel.trimLogLabel.text=Trim Log: +MicroPropertiesPanel.trimLogCheckBox.text= +MicroPropertiesPanel.keepStateLabel.text=Keep State: +MicroPropertiesPanel.keepStateCheckBox.text= +MicroPropertiesPanel.liveReloadLabel.text=Live Reload: +MicroPropertiesPanel.liveReloadCheckBox.text= +MicroPropertiesPanel.autoDeployLabel.text=Auto Deploy: +MicroPropertiesPanel.autoDeployCheckBox.text= +MicroPropertiesPanel.explodedLabel.text=Exploded: +MicroPropertiesPanel.explodedCheckBox.text= +MicroPropertiesPanel.deployWarLabel.text=Deploy War: +MicroPropertiesPanel.deployWarCheckBox.text= diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroActionsProvider.java b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroActionsProvider.java index 6741a8bc5c6f..9bca9e67efca 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroActionsProvider.java +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroActionsProvider.java @@ -29,7 +29,13 @@ import org.netbeans.api.annotations.common.StaticResource; import org.netbeans.api.project.Project; import static org.netbeans.api.project.ProjectUtils.getPreferences; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.AUTO_DEPLOY; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.DEPLOY_WAR; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.EXPLODED; import static org.netbeans.modules.fish.payara.micro.plugin.Constants.HOT_DEPLOY; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.KEEP_STATE; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.LIVE_RELOAD; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.TRIM_LOG; import static org.netbeans.modules.fish.payara.micro.plugin.Constants.VERSION; import org.netbeans.modules.maven.api.NbMavenProject; import org.netbeans.modules.maven.api.execute.RunConfig; @@ -93,13 +99,77 @@ public RunConfig createConfigForDefaultAction(String actionName, Project project Preferences pref = getPreferences(project, MicroApplication.class, true); String microVersionText = pref.get(VERSION, ""); Boolean hotDeploy = pref.getBoolean(HOT_DEPLOY, false); + Boolean deployWar = pref.getBoolean(DEPLOY_WAR, true); + Boolean exploded = pref.getBoolean(EXPLODED, true); + Boolean trimLog = pref.getBoolean(TRIM_LOG, true); + Boolean autoDeploy = pref.getBoolean(AUTO_DEPLOY, true); + Boolean keepState = pref.getBoolean(KEEP_STATE, true); + Boolean liveReload = pref.getBoolean(LIVE_RELOAD, true); RunConfig config = actionsProvider.createConfigForDefaultAction(actionName, project, lookup); - if (!microVersionText.isEmpty()) { - config.setProperty("version.payara", microVersionText); - } - if(hotDeploy) { - config.setProperty("hotDeploy", Boolean.TRUE.toString()); + if (MicroApplication.isDevModeAvailable(project) + && MicroApplication.isPluginVersionAtLeast(project, 2.5)) { + // In payara-micro-maven-plugin:2.5 system properties prefixed with payara + if (!microVersionText.isEmpty()) { + config.setProperty("payara.micro.version", microVersionText); + } + if (hotDeploy) { + config.setProperty("payara.hot.deploy", Boolean.TRUE.toString()); + } + if (deployWar) { + config.setProperty("payara.deploy.war", Boolean.TRUE.toString()); + } + if (exploded) { + config.setProperty("payara.exploded", Boolean.TRUE.toString()); + } + if (trimLog) { + config.setProperty("payara.trim.log", Boolean.TRUE.toString()); + } + if (autoDeploy) { + config.setProperty("payara.auto.deploy", Boolean.TRUE.toString()); + } + if (keepState) { + config.setProperty("payara.keep.state", Boolean.TRUE.toString()); + } + if (liveReload) { + config.setProperty("payara.live.reload", Boolean.TRUE.toString()); + } + } else if (MicroApplication.isDevModeAvailable(project) + && MicroApplication.isPluginVersionAtLeast(project, 2.1)) { + // In payara-micro-maven-plugin:2.1 dev mode feature added + if (!microVersionText.isEmpty()) { + config.setProperty("payaraVersion", microVersionText); + } + if (hotDeploy) { + config.setProperty("hotDeploy", Boolean.TRUE.toString()); + } + if (deployWar) { + config.setProperty("deployWar", Boolean.TRUE.toString()); + } + if (exploded) { + config.setProperty("exploded", Boolean.TRUE.toString()); + } + if (trimLog) { + config.setProperty("trimLog", Boolean.TRUE.toString()); + } + if (autoDeploy) { + config.setProperty("autoDeploy", Boolean.TRUE.toString()); + } + if (keepState) { + config.setProperty("keepState", Boolean.TRUE.toString()); + } + if (liveReload) { + config.setProperty("liveReload", Boolean.TRUE.toString()); + } + } else { + // to ensure compatibility with older plugin + if (!microVersionText.isEmpty()) { + config.setProperty("payaraVersion", microVersionText); + } + if (hotDeploy) { + config.setProperty("hotDeploy", Boolean.TRUE.toString()); + } } + return config; } return null; diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroApplication.java b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroApplication.java index e7bb66c9c88d..a71482258971 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroApplication.java +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroApplication.java @@ -184,10 +184,14 @@ public static boolean isDevModeAvailable(Project project) { String versionString = getPayaraMicroProject(project).getVersion(); if (versionString != null) { try { - double version = Double.parseDouble(versionString); - if (version > 2.1) { - return true; + String[] parts = versionString.split("\\."); + if (parts.length >= 2) { + double version = Double.parseDouble(parts[0] + "." + parts[1]); + if (version >= 2.1) { + return true; + } } + } catch (NumberFormatException e) { if ("RELEASE".equals(versionString)) { return true; @@ -197,5 +201,26 @@ public static boolean isDevModeAvailable(Project project) { } return false; } + + public static boolean isPluginVersionAtLeast(Project project, double minVersion) { + if (isPayaraMicroProject(project)) { + String versionString = getPayaraMicroProject(project).getVersion(); + if (versionString != null) { + try { + String[] parts = versionString.split("\\."); + if (parts.length >= 2) { + double version = Double.parseDouble(parts[0] + "." + parts[1]); + return version >= minVersion; + } + } catch (NumberFormatException e) { + // For snapshot or release tags like "RELEASE", "SNAPSHOT", etc. + if ("RELEASE".equalsIgnoreCase(versionString)) { + return true; + } + } + } + } + return false; + } } diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroPropertiesPanel.form b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroPropertiesPanel.form index e92a749d2335..3ac69714e766 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroPropertiesPanel.form +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroPropertiesPanel.form @@ -42,14 +42,30 @@ + + + + + + + + - + + + + + + + + + + - @@ -68,7 +84,42 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -102,5 +153,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroPropertiesPanel.java b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroPropertiesPanel.java index 9962c6cdca84..0da0d1a20550 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroPropertiesPanel.java +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroPropertiesPanel.java @@ -27,7 +27,14 @@ import javax.swing.JPanel; import org.netbeans.api.project.Project; import static org.netbeans.api.project.ProjectUtils.getPreferences; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.AUTO_DEPLOY; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.DEPLOY_WAR; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.DEV_MODE; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.EXPLODED; import static org.netbeans.modules.fish.payara.micro.plugin.Constants.HOT_DEPLOY; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.KEEP_STATE; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.LIVE_RELOAD; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.TRIM_LOG; import static org.netbeans.modules.fish.payara.micro.plugin.Constants.VERSION; import org.netbeans.modules.maven.api.customizer.ModelHandle2; import org.netbeans.modules.maven.api.customizer.support.ComboBoxUpdater; @@ -68,6 +75,13 @@ public void setValue(PayaraPlatformVersionAPI microVersion) { } }; hotDeployCheckBox.setSelected(pref.getBoolean(HOT_DEPLOY, false)); + devModeCheckBox.setSelected(pref.getBoolean(DEV_MODE, true)); + deployWarCheckBox.setSelected(pref.getBoolean(DEPLOY_WAR, true)); + explodedCheckBox.setSelected(pref.getBoolean(EXPLODED, true)); + trimLogCheckBox.setSelected(pref.getBoolean(TRIM_LOG, true)); + autoDeployCheckBox.setSelected(pref.getBoolean(AUTO_DEPLOY, true)); + keepStateCheckBox.setSelected(pref.getBoolean(KEEP_STATE, true)); + liveReloadCheckBox.setSelected(pref.getBoolean(LIVE_RELOAD, true)); } private PayaraPlatformVersionAPI[] getPayaraVersion() { @@ -90,6 +104,20 @@ private void initComponents() { microVersionCombobox = new javax.swing.JComboBox(); hotDeployLabel = new javax.swing.JLabel(); hotDeployCheckBox = new javax.swing.JCheckBox(); + devModeLabel = new javax.swing.JLabel(); + devModeCheckBox = new javax.swing.JCheckBox(); + explodedCheckBox = new javax.swing.JCheckBox(); + explodedLabel = new javax.swing.JLabel(); + deployWarLabel = new javax.swing.JLabel(); + deployWarCheckBox = new javax.swing.JCheckBox(); + autoDeployLabel = new javax.swing.JLabel(); + liveReloadCheckBox = new javax.swing.JCheckBox(); + liveReloadLabel = new javax.swing.JLabel(); + autoDeployCheckBox = new javax.swing.JCheckBox(); + trimLogLabel = new javax.swing.JLabel(); + keepStateCheckBox = new javax.swing.JCheckBox(); + keepStateLabel = new javax.swing.JLabel(); + trimLogCheckBox = new javax.swing.JCheckBox(); org.openide.awt.Mnemonics.setLocalizedText(microVersionLabel, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.microVersionLabel.text")); // NOI18N @@ -99,6 +127,39 @@ private void initComponents() { org.openide.awt.Mnemonics.setLocalizedText(hotDeployCheckBox, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.hotDeployCheckBox.text")); // NOI18N + org.openide.awt.Mnemonics.setLocalizedText(devModeLabel, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.devModeLabel.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(devModeCheckBox, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.devModeCheckBox.text")); // NOI18N + devModeCheckBox.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + devModeCheckBoxActionPerformed(evt); + } + }); + + org.openide.awt.Mnemonics.setLocalizedText(explodedCheckBox, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.explodedCheckBox.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(explodedLabel, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.explodedLabel.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(deployWarLabel, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.deployWarLabel.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(deployWarCheckBox, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.deployWarCheckBox.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(autoDeployLabel, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.autoDeployLabel.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(liveReloadCheckBox, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.liveReloadCheckBox.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(liveReloadLabel, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.liveReloadLabel.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(autoDeployCheckBox, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.autoDeployCheckBox.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(trimLogLabel, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.trimLogLabel.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(keepStateCheckBox, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.keepStateCheckBox.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(keepStateLabel, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.keepStateLabel.text")); // NOI18N + + org.openide.awt.Mnemonics.setLocalizedText(trimLogCheckBox, org.openide.util.NbBundle.getMessage(MicroPropertiesPanel.class, "MicroPropertiesPanel.trimLogCheckBox.text")); // NOI18N + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( @@ -107,13 +168,28 @@ private void initComponents() { .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(microVersionLabel) - .addComponent(hotDeployLabel)) + .addComponent(hotDeployLabel) + .addComponent(devModeLabel) + .addComponent(deployWarLabel) + .addComponent(explodedLabel) + .addComponent(autoDeployLabel) + .addComponent(liveReloadLabel) + .addComponent(keepStateLabel) + .addComponent(trimLogLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(microVersionCombobox, 0, 212, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() - .addComponent(hotDeployCheckBox) - .addGap(0, 0, Short.MAX_VALUE)) - .addComponent(microVersionCombobox, 0, 272, Short.MAX_VALUE)) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(explodedCheckBox) + .addComponent(deployWarCheckBox) + .addComponent(liveReloadCheckBox) + .addComponent(autoDeployCheckBox) + .addComponent(trimLogCheckBox) + .addComponent(keepStateCheckBox) + .addComponent(devModeCheckBox) + .addComponent(hotDeployCheckBox)) + .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) ); layout.setVerticalGroup( @@ -127,20 +203,79 @@ private void initComponents() { .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(hotDeployLabel) .addComponent(hotDeployCheckBox)) - .addContainerGap(85, Short.MAX_VALUE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(devModeLabel) + .addComponent(devModeCheckBox)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(deployWarLabel) + .addComponent(deployWarCheckBox)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(explodedLabel) + .addComponent(explodedCheckBox)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(autoDeployLabel) + .addComponent(autoDeployCheckBox)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(liveReloadLabel) + .addComponent(liveReloadCheckBox)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(keepStateLabel) + .addComponent(keepStateCheckBox)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(trimLogLabel) + .addComponent(trimLogCheckBox)) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); }// //GEN-END:initComponents + private void devModeCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_devModeCheckBoxActionPerformed + boolean selected = devModeCheckBox.isSelected(); + deployWarCheckBox.setSelected(selected); + explodedCheckBox.setSelected(selected); + trimLogCheckBox.setSelected(selected); + autoDeployCheckBox.setSelected(selected); + keepStateCheckBox.setSelected(selected); + liveReloadCheckBox.setSelected(selected); + }//GEN-LAST:event_devModeCheckBoxActionPerformed + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JCheckBox autoDeployCheckBox; + private javax.swing.JLabel autoDeployLabel; + private javax.swing.JCheckBox deployWarCheckBox; + private javax.swing.JLabel deployWarLabel; + private javax.swing.JCheckBox devModeCheckBox; + private javax.swing.JLabel devModeLabel; + private javax.swing.JCheckBox explodedCheckBox; + private javax.swing.JLabel explodedLabel; private javax.swing.JCheckBox hotDeployCheckBox; private javax.swing.JLabel hotDeployLabel; + private javax.swing.JCheckBox keepStateCheckBox; + private javax.swing.JLabel keepStateLabel; + private javax.swing.JCheckBox liveReloadCheckBox; + private javax.swing.JLabel liveReloadLabel; private javax.swing.JComboBox microVersionCombobox; private javax.swing.JLabel microVersionLabel; + private javax.swing.JCheckBox trimLogCheckBox; + private javax.swing.JLabel trimLogLabel; // End of variables declaration//GEN-END:variables public void applyChanges() { pref.put(VERSION, selectedPayaraVersion != null ? selectedPayaraVersion.toString() : ""); pref.put(HOT_DEPLOY, Boolean.toString(hotDeployCheckBox.isSelected())); + pref.put(DEV_MODE, Boolean.toString(devModeCheckBox.isSelected())); + pref.put(DEPLOY_WAR, Boolean.toString(deployWarCheckBox.isSelected())); + pref.put(EXPLODED, Boolean.toString(explodedCheckBox.isSelected())); + pref.put(TRIM_LOG, Boolean.toString(trimLogCheckBox.isSelected())); + pref.put(AUTO_DEPLOY, Boolean.toString(autoDeployCheckBox.isSelected())); + pref.put(KEEP_STATE, Boolean.toString(keepStateCheckBox.isSelected())); + pref.put(LIVE_RELOAD, Boolean.toString(liveReloadCheckBox.isSelected())); } } diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/resources/action-mapping.xml b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/resources/action-mapping.xml index 58ad38ad1ab8..b45a3abc48d4 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/resources/action-mapping.xml +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/resources/action-mapping.xml @@ -34,12 +34,6 @@ false - true - true - true - true - true - true @@ -57,12 +51,6 @@ false ${webpagePath} - true - true - true - true - true - true @@ -82,12 +70,6 @@ true true false - true - true - true - true - true - true @@ -108,12 +90,6 @@ ${webpagePath} true false - true - true - true - true - true - true @@ -133,12 +109,6 @@ java false true - true - true - true - true - true - true @@ -159,12 +129,6 @@ false true ${webpagePath} - true - true - true - true - true - true