You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2026/08/26 12:31:24 UTC
(hop) branch main updated: Issue #8059 : Rebrand hop-env files as Hop install spec and fix Open/Save As (#8103)
This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new 3d713de1d3 Issue #8059 : Rebrand hop-env files as Hop install spec and fix Open/Save As (#8103)
3d713de1d3 is described below
commit 3d713de1d3fee87654e9ca8e04168ee351d07203
Author: Matt Casters <ma...@gmail.com>
AuthorDate: Wed Aug 26 14:31:17 2026 +0200
Issue #8059 : Rebrand hop-env files as Hop install spec and fix Open/Save As (#8103)
Marketplace Open/Save As now uses HopVfs and variables so project-relative
paths work. Rename the Environment tab to Install spec to distinguish these
YAML files from project lifecycle environments. Add an Explorer file type
and Edit YAML in Explorer for hand edits.
---
.../org/apache/hop/core/security/Permission.java | 4 +-
.../marketplace/marketplace-dialog-environment.png | Bin 149538 -> 148653 bytes
...lifecycle-enviromnent-enforce-configuration.png | Bin 106879 -> 95280 bytes
.../modules/ROOT/pages/hop-gui/hop-web.adoc | 4 +-
.../ROOT/pages/hop-tools/hop-marketplace.adoc | 49 +-
.../ROOT/pages/projects/projects-environments.adoc | 4 +-
plugins/misc/marketplace/README.md | 2 +-
.../marketplace/command/MarketplaceCommand.java | 41 +-
.../hop/marketplace/env/EnvironmentApplier.java | 36 +-
...HopEnvironmentSpec.java => HopInstallSpec.java} | 8 +-
.../hop/marketplace/env/HopInstallSpecFiles.java | 108 ++
...onmentLoader.java => HopInstallSpecLoader.java} | 131 +-
.../hop/marketplace/env/MarketplaceAttributes.java | 6 +-
.../hop/marketplace/gui/HopEnvironmentDialog.java | 1561 +-------------------
...onmentDialog.java => HopInstallSpecEditor.java} | 660 ++++++---
.../marketplace/gui/HopInstallSpecFileType.java | 81 +
.../gui/HopInstallSpecFileTypeHandler.java | 86 ++
.../hop/marketplace/gui/MarketplaceDialog.java | 47 +-
.../hop/marketplace/gui/MarketplaceGuiPlugin.java | 43 +
.../hop/marketplace/gui/WelcomeMarketplace.java | 2 +-
.../xp/HopRunEnvironmentCheckExtensionPoint.java | 14 +-
...fecycleEnvironmentDialogTabsExtensionPoint.java | 32 +-
...ojectEnvironmentAfterEnabledExtensionPoint.java | 60 +-
.../gui/messages/messages_de_DE.properties | 147 +-
.../gui/messages/messages_en_US.properties | 186 +--
.../gui/messages/messages_es_AR.properties | 147 +-
.../gui/messages/messages_es_ES.properties | 147 +-
.../gui/messages/messages_fr_FR.properties | 147 +-
.../gui/messages/messages_it_IT.properties | 147 +-
.../gui/messages/messages_ja_JP.properties | 147 +-
.../gui/messages/messages_ko_KR.properties | 147 +-
.../gui/messages/messages_nl_NL.properties | 147 +-
.../gui/messages/messages_no_NO.properties | 147 +-
.../gui/messages/messages_pl_PL.properties | 147 +-
.../gui/messages/messages_pt_BR.properties | 149 +-
.../gui/messages/messages_pt_PT.properties | 147 +-
.../gui/messages/messages_zh_CN.properties | 147 +-
.../src/main/samples/hop-env.example.yaml | 2 +-
.../config/RepositoryPasswordStorageTest.java | 8 +-
.../marketplace/env/EnvironmentApplierTest.java | 12 +-
...aderTest.java => HopInstallSpecLoaderTest.java} | 73 +-
.../gui/HopInstallSpecFileTypeTest.java | 45 +
.../perspective/explorer/ExplorerPerspective.java | 19 +-
43 files changed, 2187 insertions(+), 3050 deletions(-)
diff --git a/core/src/main/java/org/apache/hop/core/security/Permission.java b/core/src/main/java/org/apache/hop/core/security/Permission.java
index 46a5f0e029..69c7ee8388 100644
--- a/core/src/main/java/org/apache/hop/core/security/Permission.java
+++ b/core/src/main/java/org/apache/hop/core/security/Permission.java
@@ -58,8 +58,8 @@ public enum Permission {
SECURITY_MANAGE("security.manage"),
/**
- * Install/uninstall marketplace plugins, edit marketplace repositories, and apply hop-env plugin
- * sets. Shared process install — Admin-only among built-in roles.
+ * Install/uninstall marketplace plugins, edit marketplace repositories, and apply hop-env install
+ * spec plugin sets. Shared process install — Admin-only among built-in roles.
*/
PLUGIN_MANAGE("plugin.manage");
diff --git a/docs/hop-user-manual/modules/ROOT/assets/images/marketplace/marketplace-dialog-environment.png b/docs/hop-user-manual/modules/ROOT/assets/images/marketplace/marketplace-dialog-environment.png
index 3dd4005ce2..c45fbd58dd 100644
Binary files a/docs/hop-user-manual/modules/ROOT/assets/images/marketplace/marketplace-dialog-environment.png and b/docs/hop-user-manual/modules/ROOT/assets/images/marketplace/marketplace-dialog-environment.png differ
diff --git a/docs/hop-user-manual/modules/ROOT/assets/images/marketplace/marketplace-lifecycle-enviromnent-enforce-configuration.png b/docs/hop-user-manual/modules/ROOT/assets/images/marketplace/marketplace-lifecycle-enviromnent-enforce-configuration.png
index 8388b94cd6..92c394dd88 100644
Binary files a/docs/hop-user-manual/modules/ROOT/assets/images/marketplace/marketplace-lifecycle-enviromnent-enforce-configuration.png and b/docs/hop-user-manual/modules/ROOT/assets/images/marketplace/marketplace-lifecycle-enviromnent-enforce-configuration.png differ
diff --git a/docs/hop-user-manual/modules/ROOT/pages/hop-gui/hop-web.adoc b/docs/hop-user-manual/modules/ROOT/pages/hop-gui/hop-web.adoc
index 01dea84f89..678311cfb7 100644
--- a/docs/hop-user-manual/modules/ROOT/pages/hop-gui/hop-web.adoc
+++ b/docs/hop-user-manual/modules/ROOT/pages/hop-gui/hop-web.adoc
@@ -158,14 +158,14 @@ Next to the username, a **session privilege** combo lets you temporarily *lower*
* Username and audit identity stay the same; only UI authorization changes.
* Open editors are not closed; the next save/edit uses the new permissions (dialogs and canvas already re-check).
* Security configuration still requires Admin at the effective level—downgrade to Read-only hides it until you restore Full access.
-* Marketplace install/uninstall and hop-env *Apply* also require Admin (`plugin.manage`) at the effective level.
+* Marketplace install/uninstall and hop-env install spec *Apply* also require Admin (`plugin.manage`) at the effective level.
Desktop unrestricted sessions can use the same control to simulate Operator / Read-only.
==== Marketplace and authorization
The Tools → Marketplace dialog remains available for browsing the catalog when authentication is enabled.
-*Install*, *Uninstall*, repository configuration, and hop-env *Apply* require the `plugin.manage` permission (built-in *Admin* role only).
+*Install*, *Uninstall*, repository configuration, and hop-env install spec *Apply* require the `plugin.manage` permission (built-in *Admin* role only).
*Validate* (drift check without installing) does not.
Plugin installs affect the shared server installation for all Hop Web users; they are not per-session.
diff --git a/docs/hop-user-manual/modules/ROOT/pages/hop-tools/hop-marketplace.adoc b/docs/hop-user-manual/modules/ROOT/pages/hop-tools/hop-marketplace.adoc
index 5fe3aff696..ce050cb5d0 100644
--- a/docs/hop-user-manual/modules/ROOT/pages/hop-tools/hop-marketplace.adoc
+++ b/docs/hop-user-manual/modules/ROOT/pages/hop-tools/hop-marketplace.adoc
@@ -28,7 +28,7 @@ Some Hop plugins are optional: they are not bundled in the default client zip so
The default hop-client zip is intentionally smaller: we made large plugins optional since version 2.19.0. To install
*all* marketplace-optional plugins that used to ship in the download (before version 2.19),
-use the generated environment file at the installation root:
+use the generated install spec at the installation root:
[source,bash]
----
@@ -130,7 +130,7 @@ image::marketplace/marketplace-welcome-dialog.png[Marketplace welcome dialog,75%
The main *Plugin Marketplace* dialog has three tabs:
* *Plugins* — browse, search, install, and uninstall optional plugins
-* *Environment* — edit `hop-env.yaml` / JSON environments and validate or apply them
+* *Install spec* — edit a Hop install spec (`hop-env.yaml` / JSON) and validate or apply it
* *Repositories* — configure Maven repositories (same settings as the CLI / hop-config)
After install, apply, or uninstall, *restart Hop* so the plugin registry reloads.
@@ -153,18 +153,31 @@ Use this tab to work with the local optional-plugin catalog:
Install uses the *primary* repository first, then other *enabled* repositories (see <<marketplace-gui-repositories>>).
-=== Environment tab
+=== Install spec tab
-image::marketplace/marketplace-dialog-environment.png[Marketplace dialog Environment tab,75%,align="left"]
+image::marketplace/marketplace-dialog-environment.png[Marketplace dialog Install spec tab,75%,align="left"]
-This tab embeds the full environment editor (no separate “Edit…” window). It is the GUI equivalent of `hop marketplace validate` / `apply` and of editing `hop-env.yaml` by hand.
+This tab is the editor for a *Hop install spec*: a YAML/JSON file that declares which marketplace plugins and jars *this Hop installation* should have. It is not a project lifecycle environment (dev/test/production).
+
+It is the GUI equivalent of `hop marketplace validate` / `apply`. Double-click `hop-env.yaml` in the Explorer perspective to open the same form editor. *Edit YAML in Explorer* opens the file as plain YAML for hand edits; *Reload* reads it back after you save there.
+
+Happy path:
+
+. *New*
+. Add plugins (*From catalog…*)
+. *Save As…* `{openvar}PROJECT_HOME{closevar}/hop-env.yaml` (default folder is the active project home)
+. *Validate*, then *Apply*, then restart Hop
+
+`full-client-env.yaml` at the install root is a generated list of every optional plugin. A banner says so; use *Apply* to restore the fat client, or *Save As* into a project for a custom set.
==== File toolbar
-* *New* — empty environment specification
-* *Open…* — open a `hop-env.yaml` / `.yml` / `.json` file
+* *New* — empty install spec
+* *Open…* — open a `hop-env.yaml` / `.yml` / `.json` file (Hop VFS, project variables allowed)
* *Save* / *Save As…* — write YAML or JSON (by extension)
-* Filename *combo* — current path plus recently used environment files (remembered via the Hop audit list for this namespace). Selecting an entry loads that file.
+* *Edit YAML in Explorer* — open the current file in the Explorer perspective as YAML
+* *Reload* — re-read the file from disk
+* Filename *combo* — current path plus recently used install spec files (remembered via the Hop audit list for this namespace). Selecting an entry loads that file; a path that does not exist yet is kept so *Save* can create it.
* On open, Hop prefers the last file you edited in this dialog; otherwise it may pre-select `full-client-env.yaml` at the install root when that file exists.
==== Nested editor tabs
@@ -188,7 +201,7 @@ This tab embeds the full environment editor (no separate “Edit…” window).
==== Validate and Apply
-At the bottom of the Environment tab:
+At the bottom of the Install spec tab:
* *Validate* — compare the local install to the saved environment file without downloading.
* *Apply* — install missing plugins and dependencies declared in the file.
@@ -243,16 +256,18 @@ image::marketplace/marketplace-lifecycle-enviromnent-enforce-configuration.png[L
Typical options:
-* *Environment file* — path to a `hop-env.yaml` (variables allowed, for example under the project home)
+* *Install spec file* — path to a `hop-env.yaml` (variables allowed, for example under the project home). This is a Hop install spec, not a lifecycle environment config file.
* *On enable* — `off` (no check), `warn` (log or dialog on drift), or `enforce` (fail enabling the environment if the install does not match)
* *Strict* — treat extra marketplace plugins as drift
* *Auto-apply missing plugins on enable* — optional; off by default (use only on controlled machines)
If *On enable* is unset, purpose-based defaults apply: *Production* → enforce, *Testing* / *Acceptance* → warn, *Development* / CI-style purposes → off.
-This complements hop-env `enforceOnRun` (checked at hop-run) and the Environment tab *Validate* / *Apply* actions (manual checks from the marketplace dialog).
+This complements hop-env `enforceOnRun` (checked at hop-run) and the Install spec tab *Validate* / *Apply* actions (manual checks from the marketplace dialog).
+
+Do not confuse this file with a *project lifecycle environment* (dev/test/production variables) or with the `hop-env.sh` / `hop-env.cmd` launcher script written by hop-setup.
-== Declarative environments (`hop-env.yaml`)
+== Hop install spec (`hop-env.yaml`)
For CI/CD, Docker, and reproducible servers you can declare the required plugins (and optional jars) in a file, commit it to Git, and apply it without using the GUI.
@@ -263,7 +278,7 @@ Supported file names / formats:
=== `hop marketplace apply`
-Installs missing plugins and dependencies declared in the environment file. Already-satisfied plugins are skipped.
+Installs missing plugins and dependencies declared in the install spec file. Already-satisfied plugins are skipped.
[cols="1,3"]
|===
@@ -298,14 +313,14 @@ Always restart Hop after a successful apply when new plugins were installed.
=== `hop marketplace validate`
-Compares the local install to the environment file *without* downloading or installing anything. Useful in CI as a pre-flight check.
+Compares the local install to the install spec file *without* downloading or installing anything. Useful in CI as a pre-flight check.
[cols="1,3"]
|===
| Option | Description
| `-f`, `--file`
-| Path to the environment file. If omitted, Hop discovers a file (see <<hop-env-discovery>>).
+| Path to the install spec file. If omitted, Hop discovers a file (see <<hop-env-discovery>>).
| `--strict`
| Also fail when *extra* marketplace-installed plugins (receipts under `plugins/.marketplace/`) are present that are not listed in the file. Without `--strict`, extras are ignored.
@@ -313,7 +328,7 @@ Compares the local install to the environment file *without* downloading or inst
Exit codes:
-* *0* — environment matches (prints `OK: environment matches …`)
+* *0* — install spec matches (prints `OK: install spec matches …`)
* *non-zero* — drift detected or error (prints a drift report and suggests `hop marketplace apply -f …`)
What counts as drift (always hard-fail):
@@ -346,7 +361,7 @@ Enable enforcement either:
If a hop-env file is present but `enforceOnRun` is false and the property is unset, hop-run only logs that the file was found and skips the check.
[[hop-env-discovery]]
-=== How the environment file is discovered
+=== How the install spec file is discovered
Used by `validate` (when `-f` is omitted) and by hop-run:
diff --git a/docs/hop-user-manual/modules/ROOT/pages/projects/projects-environments.adoc b/docs/hop-user-manual/modules/ROOT/pages/projects/projects-environments.adoc
index aeeff88ed8..9f79aa2dc2 100644
--- a/docs/hop-user-manual/modules/ROOT/pages/projects/projects-environments.adoc
+++ b/docs/hop-user-manual/modules/ROOT/pages/projects/projects-environments.adoc
@@ -167,13 +167,13 @@ After creating an environment the user interface will switch to it.
== Marketplace plugins
When the xref:hop-tools/hop-marketplace.adoc[Marketplace] plugin is installed, the environment properties dialog includes a *Marketplace plugins* tab.
-These options control whether Hop checks a `hop-env` file when this environment is enabled.
+These options control whether Hop checks a Hop install spec (`hop-env.yaml`) when this lifecycle environment is enabled.
image:hop-gui/environment/environment-dialog-marketplace-plugins-tab.png[Environment Properties Marketplace plugins tab,width="90%"]
Typical options:
-* *Environment file* — path to a `hop-env.yaml` (variables allowed, for example under the project home)
+* *Install spec file* — path to a `hop-env.yaml` (variables allowed, for example under the project home). This is not a lifecycle environment config file.
* *On enable* — `off` (no check), `warn` (log or dialog on drift), or `enforce` (fail enabling the environment if the install does not match)
* *Strict* — treat extra marketplace plugins as drift
* *Auto-apply missing plugins on enable* — optional; off by default
diff --git a/plugins/misc/marketplace/README.md b/plugins/misc/marketplace/README.md
index a12c68b20a..c7de8614ec 100644
--- a/plugins/misc/marketplace/README.md
+++ b/plugins/misc/marketplace/README.md
@@ -55,7 +55,7 @@ From the Hop install directory (or invoke the `hop` script by path — it alread
./hop marketplace query datavault --include-gav
./hop marketplace query --csv > plugins.csv
-# Declarative environment (CI/CD / Docker)
+# Declarative install spec (CI/CD / Docker)
./hop marketplace apply -f hop-env.yaml
./hop marketplace apply -f hop-env.yaml --prune
./hop marketplace validate -f hop-env.yaml
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/command/MarketplaceCommand.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/command/MarketplaceCommand.java
index c531d045c2..b734abd648 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/command/MarketplaceCommand.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/command/MarketplaceCommand.java
@@ -45,8 +45,8 @@ import org.apache.hop.marketplace.config.MarketplaceRepository;
import org.apache.hop.marketplace.config.MarketplaceRepositoryDefinition;
import org.apache.hop.marketplace.env.EnvironmentApplier;
import org.apache.hop.marketplace.env.EnvironmentDrift;
-import org.apache.hop.marketplace.env.HopEnvironmentLoader;
-import org.apache.hop.marketplace.env.HopEnvironmentSpec;
+import org.apache.hop.marketplace.env.HopInstallSpec;
+import org.apache.hop.marketplace.env.HopInstallSpecLoader;
import org.apache.hop.marketplace.install.HopHome;
import org.apache.hop.marketplace.install.InstallReceipt;
import org.apache.hop.marketplace.install.PluginInstaller;
@@ -453,19 +453,19 @@ public class MarketplaceCommand implements Runnable, IHopCommand, IHasHopMetadat
mixinStandardHelpOptions = true,
name = "apply",
description =
- "Install plugins and dependencies declared in hop-env.yaml (or .json). Optional --prune"
- + " removes marketplace plugins not listed in the file.")
+ "Install plugins and dependencies declared in a Hop install spec (hop-env.yaml / .json)."
+ + " Optional --prune removes marketplace plugins not listed in the file.")
static class ApplyCommand extends MarketplaceSubCommand {
@Option(
names = {"-f", "--file"},
required = true,
- description = "Path to hop-env.yaml or hop-env.json")
+ description = "Path to the install spec file (hop-env.yaml or hop-env.json)")
private String file;
@Option(
names = {"--prune"},
description =
- "Uninstall marketplace-installed plugins that are not listed in the environment file")
+ "Uninstall marketplace-installed plugins that are not listed in the install spec file")
private boolean prune;
@Override
@@ -477,7 +477,7 @@ public class MarketplaceCommand implements Runnable, IHopCommand, IHasHopMetadat
}
Path hopHome = HopHome.resolve();
Path envPath = Path.of(file).toAbsolutePath().normalize();
- HopEnvironmentSpec env = HopEnvironmentLoader.load(envPath);
+ HopInstallSpec env = HopInstallSpecLoader.load(envPath);
ConsoleInstallListener progress = ConsoleInstallListener.forStdOut();
try {
new EnvironmentApplier(log, hopHome, config).apply(env, prune, progress);
@@ -486,7 +486,7 @@ public class MarketplaceCommand implements Runnable, IHopCommand, IHasHopMetadat
progress.complete();
}
System.out.println(
- "Environment applied from "
+ "Install spec applied from "
+ envPath
+ ". Restart Hop (or re-run) so new plugins are loaded.");
} catch (Exception e) {
@@ -504,18 +504,19 @@ public class MarketplaceCommand implements Runnable, IHopCommand, IHasHopMetadat
mixinStandardHelpOptions = true,
name = "validate",
description =
- "Check the local install against hop-env.yaml without installing. Exit code 1 on drift.")
+ "Check the local install against a Hop install spec (hop-env.yaml) without installing."
+ + " Exit code 1 on drift.")
static class ValidateCommand extends MarketplaceSubCommand {
@Option(
names = {"-f", "--file"},
description =
- "Path to hop-env.yaml or hop-env.json (default: discover hop-env.* under project/Hop"
- + " home)")
+ "Path to the install spec file (hop-env.yaml or hop-env.json; default: discover hop-env.*"
+ + " under project/Hop home)")
private String file;
@Option(
names = {"--strict"},
- description = "Also fail if extra marketplace plugins are installed beyond the env file")
+ description = "Also fail if extra marketplace plugins are installed beyond the spec file")
private boolean strict;
@Override
@@ -525,9 +526,9 @@ public class MarketplaceCommand implements Runnable, IHopCommand, IHasHopMetadat
Path envPath = EnvironmentApplier.resolveEnvironmentFile(hopHome, file);
if (envPath == null) {
throw new HopException(
- "No environment file found. Pass -f hop-env.yaml or set HOP_ENV_FILE.");
+ "No install spec file found. Pass -f hop-env.yaml or set HOP_ENV_FILE.");
}
- HopEnvironmentSpec env = HopEnvironmentLoader.load(envPath);
+ HopInstallSpec env = HopInstallSpecLoader.load(envPath);
EnvironmentDrift drift =
new EnvironmentApplier(log, hopHome, MarketplaceConfig.load()).validate(env);
boolean hard =
@@ -541,13 +542,13 @@ public class MarketplaceCommand implements Runnable, IHopCommand, IHasHopMetadat
hard = hard || !drift.getExtraMarketplacePlugins().isEmpty();
}
if (!hard) {
- System.out.println("OK: environment matches " + envPath);
+ System.out.println("OK: install spec matches " + envPath);
return;
}
- System.err.println("Environment drift against " + envPath + ":");
+ System.err.println("Install spec drift against " + envPath + ":");
System.err.print(drift.formatReport());
System.err.println("Run: hop marketplace apply -f " + envPath);
- throw new CommandLine.ExecutionException(new CommandLine(this), "environment drift");
+ throw new CommandLine.ExecutionException(new CommandLine(this), "install spec drift");
} catch (CommandLine.ExecutionException e) {
throw e;
} catch (Exception e) {
@@ -557,11 +558,11 @@ public class MarketplaceCommand implements Runnable, IHopCommand, IHasHopMetadat
}
}
- private static void addExtraPlugins(
- Path hopHome, HopEnvironmentSpec env, EnvironmentDrift drift) throws Exception {
+ private static void addExtraPlugins(Path hopHome, HopInstallSpec env, EnvironmentDrift drift)
+ throws Exception {
Set<String> desired = new HashSet<>();
if (env.getPlugins() != null) {
- for (HopEnvironmentSpec.PluginRef ref : env.getPlugins()) {
+ for (HopInstallSpec.PluginRef ref : env.getPlugins()) {
if (ref.getArtifactId() != null) {
desired.add(ref.getArtifactId());
}
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/EnvironmentApplier.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/EnvironmentApplier.java
index 1fd94db3b3..7320026067 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/EnvironmentApplier.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/EnvironmentApplier.java
@@ -39,7 +39,7 @@ import org.apache.hop.marketplace.install.PluginUninstaller;
import org.apache.hop.marketplace.resolve.MavenCoordinates;
import org.apache.hop.marketplace.resolve.MavenRepositoryClient;
-/** Applies or validates a {@link HopEnvironmentSpec} against a Hop installation. */
+/** Applies or validates a {@link HopInstallSpec} against a Hop installation. */
public class EnvironmentApplier {
private final ILogChannel log;
@@ -52,11 +52,11 @@ public class EnvironmentApplier {
this.baseConfig = baseConfig;
}
- public EnvironmentDrift validate(HopEnvironmentSpec env) throws HopException {
+ public EnvironmentDrift validate(HopInstallSpec env) throws HopException {
EnvironmentDrift drift = new EnvironmentDrift();
String defaultVersion = resolveEnvVersion(env);
- for (HopEnvironmentSpec.PluginRef ref : nullSafe(env.getPlugins())) {
+ for (HopInstallSpec.PluginRef ref : nullSafe(env.getPlugins())) {
if (StringUtils.isBlank(ref.getArtifactId())) {
continue;
}
@@ -78,7 +78,7 @@ public class EnvironmentApplier {
}
}
- for (HopEnvironmentSpec.DependencyRef dep : nullSafe(env.getDependencies())) {
+ for (HopInstallSpec.DependencyRef dep : nullSafe(env.getDependencies())) {
if (StringUtils.isAnyBlank(dep.getGroupId(), dep.getArtifactId(), dep.getVersion())) {
continue;
}
@@ -99,9 +99,9 @@ public class EnvironmentApplier {
}
/**
- * Install missing plugins/deps; optionally prune marketplace plugins not listed in the env file.
+ * Install missing plugins/deps; optionally prune marketplace plugins not listed in the spec file.
*/
- public void apply(HopEnvironmentSpec env, boolean prune) throws HopException {
+ public void apply(HopInstallSpec env, boolean prune) throws HopException {
apply(env, prune, IInstallListener.NONE);
}
@@ -109,7 +109,7 @@ public class EnvironmentApplier {
* @param listener receives per-artifact and byte-level progress across the whole batch, and can
* cancel between chunks. Pass {@link IInstallListener#NONE} for headless callers.
*/
- public void apply(HopEnvironmentSpec env, boolean prune, IInstallListener listener)
+ public void apply(HopInstallSpec env, boolean prune, IInstallListener listener)
throws HopException {
IInstallListener progress = listener == null ? IInstallListener.NONE : listener;
MarketplaceConfig config = configFromEnv(env);
@@ -124,13 +124,13 @@ public class EnvironmentApplier {
int itemIndex = 0;
Set<String> desiredArtifacts = new HashSet<>();
- for (HopEnvironmentSpec.PluginRef ref : nullSafe(env.getPlugins())) {
+ for (HopInstallSpec.PluginRef ref : nullSafe(env.getPlugins())) {
if (StringUtils.isBlank(ref.getArtifactId())) {
itemIndex++;
continue;
}
if (progress.isCancelled()) {
- throw new HopException("Applying the environment was cancelled");
+ throw new HopException("Applying the install spec was cancelled");
}
progress.item(ref.getArtifactId(), itemIndex++, totalItems);
desiredArtifacts.add(ref.getArtifactId());
@@ -147,20 +147,20 @@ public class EnvironmentApplier {
boolean needsInstall = (!onDisk && receipt == null) || versionMismatch;
if (needsInstall) {
MavenCoordinates coords = new MavenCoordinates(groupId, ref.getArtifactId(), version);
- log.logBasic("Applying environment: installing " + coords.gav());
+ log.logBasic("Applying install spec: installing " + coords.gav());
installer.install(coords, true, null, null, progress);
} else {
- log.logBasic("Applying environment: " + ref.getArtifactId() + " already satisfied");
+ log.logBasic("Applying install spec: " + ref.getArtifactId() + " already satisfied");
}
}
- for (HopEnvironmentSpec.DependencyRef dep : nullSafe(env.getDependencies())) {
+ for (HopInstallSpec.DependencyRef dep : nullSafe(env.getDependencies())) {
if (StringUtils.isAnyBlank(dep.getGroupId(), dep.getArtifactId(), dep.getVersion())) {
itemIndex++;
continue;
}
if (progress.isCancelled()) {
- throw new HopException("Applying the environment was cancelled");
+ throw new HopException("Applying the install spec was cancelled");
}
progress.item(dep.getArtifactId(), itemIndex++, totalItems);
String target = StringUtils.defaultIfBlank(dep.getTarget(), "lib/jdbc");
@@ -211,7 +211,7 @@ public class EnvironmentApplier {
String name = file.getFileName().toString();
String artifactId = name.substring(0, name.length() - ".json".length());
if (!desiredArtifacts.contains(artifactId)) {
- log.logBasic("Pruning marketplace plugin not in env file: " + artifactId);
+ log.logBasic("Pruning marketplace plugin not in install spec: " + artifactId);
uninstaller.uninstall(artifactId);
}
}
@@ -220,7 +220,7 @@ public class EnvironmentApplier {
}
}
- private MarketplaceConfig configFromEnv(HopEnvironmentSpec env) {
+ private MarketplaceConfig configFromEnv(HopInstallSpec env) {
MarketplaceConfig config = new MarketplaceConfig();
config.setEnabled(baseConfig.isEnabled());
config.setGroupId(baseConfig.getGroupId());
@@ -232,11 +232,11 @@ public class EnvironmentApplier {
MarketplaceRepository baseRepo = baseConfig.primaryRepository();
if (env.getRepositories() != null && !env.getRepositories().isEmpty()) {
boolean first = true;
- for (HopEnvironmentSpec.RepositoryRef ref : env.getRepositories()) {
+ for (HopInstallSpec.RepositoryRef ref : env.getRepositories()) {
if (StringUtils.isNotBlank(ref.getUrl())) {
MarketplaceRepository repo =
new MarketplaceRepository(
- StringUtils.defaultIfBlank(ref.getId(), "env"),
+ StringUtils.defaultIfBlank(ref.getId(), "spec"),
ref.getUrl(),
StringUtils.isNotBlank(ref.getUsername())
? ref.getUsername()
@@ -261,7 +261,7 @@ public class EnvironmentApplier {
return config;
}
- private String resolveEnvVersion(HopEnvironmentSpec env) {
+ private String resolveEnvVersion(HopInstallSpec env) {
if (StringUtils.isNotBlank(env.getHopVersion())) {
return env.getHopVersion();
}
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopEnvironmentSpec.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopInstallSpec.java
similarity index 89%
rename from plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopEnvironmentSpec.java
rename to plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopInstallSpec.java
index 8e17e18c86..4ad3407689 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopEnvironmentSpec.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopInstallSpec.java
@@ -26,7 +26,7 @@ import lombok.Setter;
import org.apache.hop.marketplace.config.MarketplaceSecrets;
/**
- * Declarative Hop environment file ({@code hop-env.yaml} / {@code hop-env.json}).
+ * Declarative Hop install spec file ({@code hop-env.yaml} / {@code hop-env.json}).
*
* <pre>
* version: "1.0"
@@ -46,7 +46,7 @@ import org.apache.hop.marketplace.config.MarketplaceSecrets;
*/
@Getter
@Setter
-public class HopEnvironmentSpec {
+public class HopInstallSpec {
private String version = "1.0";
private String hopVersion;
private boolean enforceOnRun;
@@ -64,8 +64,8 @@ public class HopEnvironmentSpec {
private String username;
/**
- * Optional Basic auth password, obfuscated in the environment file the same way as in
- * hop-config.json. Environment files are meant to be shared, so prefer a variable or {@code
+ * Optional Basic auth password, obfuscated in the install spec file the same way as in
+ * hop-config.json. Install spec files are meant to be shared, so prefer a variable or {@code
* HOP_MARKETPLACE_PASSWORD} over a password here.
*/
@JsonSerialize(using = MarketplaceSecrets.Serializer.class)
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopInstallSpecFiles.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopInstallSpecFiles.java
new file mode 100644
index 0000000000..f59dce6ab6
--- /dev/null
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopInstallSpecFiles.java
@@ -0,0 +1,108 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hop.marketplace.env;
+
+import java.nio.file.Path;
+import java.util.List;
+import java.util.Locale;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.vfs2.FileObject;
+import org.apache.hop.core.variables.IVariables;
+import org.apache.hop.core.vfs.HopVfs;
+
+/** Well-known names and VFS helpers for Hop install spec files. */
+public final class HopInstallSpecFiles {
+
+ public static final String DEFAULT_FILENAME = "hop-env.yaml";
+ public static final String FULL_CLIENT_FILENAME = "full-client-env.yaml";
+
+ public static final List<String> WELL_KNOWN_NAMES =
+ List.of("hop-env.yaml", "hop-env.yml", "hop-env.json", FULL_CLIENT_FILENAME);
+
+ private HopInstallSpecFiles() {}
+
+ public static String resolve(String filename, IVariables variables) {
+ if (filename == null) {
+ return null;
+ }
+ String trimmed = filename.trim();
+ return variables != null ? variables.resolve(trimmed) : trimmed;
+ }
+
+ public static String baseName(String filename) {
+ if (StringUtils.isBlank(filename)) {
+ return "";
+ }
+ String name = filename.trim();
+ int query = name.indexOf('?');
+ if (query >= 0) {
+ name = name.substring(0, query);
+ }
+ int slash = Math.max(name.lastIndexOf('/'), name.lastIndexOf('\\'));
+ if (slash >= 0 && slash < name.length() - 1) {
+ return name.substring(slash + 1);
+ }
+ if (slash >= 0) {
+ return "";
+ }
+ return name;
+ }
+
+ public static boolean isWellKnown(String filename) {
+ return WELL_KNOWN_NAMES.contains(baseName(filename));
+ }
+
+ public static boolean isFullClient(String filename) {
+ return FULL_CLIENT_FILENAME.equalsIgnoreCase(baseName(filename));
+ }
+
+ public static boolean exists(String filename, IVariables variables) {
+ if (StringUtils.isBlank(filename)) {
+ return false;
+ }
+ try {
+ String resolved = resolve(filename, variables);
+ FileObject fileObject = HopVfs.getFileObject(resolved, variables);
+ return fileObject != null && fileObject.exists() && fileObject.isFile();
+ } catch (Exception e) {
+ return false;
+ }
+ }
+
+ public static String ensureSpecExtension(String filename) {
+ if (StringUtils.isBlank(filename)) {
+ return DEFAULT_FILENAME;
+ }
+ String name = baseName(filename).toLowerCase(Locale.ROOT);
+ if (name.endsWith(".yaml") || name.endsWith(".yml") || name.endsWith(".json")) {
+ return filename;
+ }
+ return filename + ".yaml";
+ }
+
+ public static String defaultSaveFolder(IVariables variables, Path hopHome) {
+ String projectHome = variables != null ? variables.getVariable("PROJECT_HOME") : null;
+ if (StringUtils.isNotBlank(projectHome)) {
+ return resolve(projectHome, variables);
+ }
+ if (hopHome != null) {
+ return hopHome.toString();
+ }
+ return ".";
+ }
+}
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopEnvironmentLoader.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopInstallSpecLoader.java
similarity index 54%
rename from plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopEnvironmentLoader.java
rename to plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopInstallSpecLoader.java
index b4b83dcb64..61acb36a72 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopEnvironmentLoader.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/HopInstallSpecLoader.java
@@ -17,11 +17,11 @@
package org.apache.hop.marketplace.env;
-import java.io.IOException;
import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
import java.io.Writer;
import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.LinkedHashMap;
@@ -29,44 +29,58 @@ import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.vfs2.FileObject;
import org.apache.hop.core.exception.HopException;
import org.apache.hop.core.json.HopJson;
+import org.apache.hop.core.variables.IVariables;
+import org.apache.hop.core.vfs.HopVfs;
import org.apache.hop.marketplace.config.MarketplaceSecrets;
import org.yaml.snakeyaml.DumperOptions;
import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor;
-/** Loads and saves {@link HopEnvironmentSpec} as YAML or JSON. */
-public final class HopEnvironmentLoader {
+/** Loads and saves {@link HopInstallSpec} as YAML or JSON through HopVfs. */
+public final class HopInstallSpecLoader {
- private HopEnvironmentLoader() {}
+ private HopInstallSpecLoader() {}
- public static HopEnvironmentSpec load(Path file) throws HopException {
- if (file == null || !Files.isRegularFile(file)) {
- throw new HopException("Environment file not found: " + file);
+ public static HopInstallSpec load(Path file) throws HopException {
+ if (file == null) {
+ throw new HopException("Install spec file not found: " + file);
}
- String name = file.getFileName().toString().toLowerCase(Locale.ROOT);
- try (InputStream in = Files.newInputStream(file)) {
- if (name.endsWith(".json")) {
- return HopJson.newMapper().readValue(in, HopEnvironmentSpec.class);
- }
- // default: YAML (.yaml / .yml / anything else)
- Yaml yaml = new Yaml(new SafeConstructor(new LoaderOptions()));
- Object loaded = yaml.load(in);
- if (loaded == null) {
- return new HopEnvironmentSpec();
- }
- if (!(loaded instanceof Map)) {
- throw new HopException("Environment file root must be a YAML mapping: " + file);
+ return load(file.toString(), null);
+ }
+
+ public static HopInstallSpec load(String filename, IVariables variables) throws HopException {
+ if (StringUtils.isBlank(filename)) {
+ throw new HopException("Install spec file path is required");
+ }
+ String resolved = HopInstallSpecFiles.resolve(filename, variables);
+ try {
+ FileObject fileObject = HopVfs.getFileObject(resolved, variables);
+ if (fileObject == null || !fileObject.exists() || !fileObject.isFile()) {
+ throw new HopException("Install spec file not found: " + resolved);
+ }
+ String name = fileObject.getName().getBaseName().toLowerCase(Locale.ROOT);
+ try (InputStream in = HopVfs.getInputStream(fileObject)) {
+ if (name.endsWith(".json")) {
+ return HopJson.newMapper().readValue(in, HopInstallSpec.class);
+ }
+ Yaml yaml = new Yaml(new SafeConstructor(new LoaderOptions()));
+ Object loaded = yaml.load(in);
+ if (loaded == null) {
+ return new HopInstallSpec();
+ }
+ if (!(loaded instanceof Map)) {
+ throw new HopException("Install spec file root must be a YAML mapping: " + resolved);
+ }
+ return HopJson.newMapper().convertValue(loaded, HopInstallSpec.class);
}
- return HopJson.newMapper().convertValue(loaded, HopEnvironmentSpec.class);
- } catch (IOException e) {
- throw new HopException("Unable to read environment file: " + file, e);
} catch (HopException e) {
throw e;
} catch (Exception e) {
- throw new HopException("Unable to parse environment file: " + file, e);
+ throw new HopException("Unable to read install spec file: " + resolved, e);
}
}
@@ -74,42 +88,56 @@ public final class HopEnvironmentLoader {
* Writes {@code spec} to {@code file}. Format is JSON when the path ends with {@code .json};
* otherwise YAML.
*/
- public static void save(Path file, HopEnvironmentSpec spec) throws HopException {
+ public static void save(Path file, HopInstallSpec spec) throws HopException {
if (file == null) {
- throw new HopException("Environment file path is required");
+ throw new HopException("Install spec file path is required");
+ }
+ save(file.toString(), spec, null);
+ }
+
+ public static void save(String filename, HopInstallSpec spec, IVariables variables)
+ throws HopException {
+ if (StringUtils.isBlank(filename)) {
+ throw new HopException("Install spec file path is required");
}
if (spec == null) {
- throw new HopException("Environment specification is required");
+ throw new HopException("Install specification is required");
}
+ String resolved = HopInstallSpecFiles.resolve(filename, variables);
try {
- Path parent = file.getParent();
- if (parent != null) {
- Files.createDirectories(parent);
- }
- String name = file.getFileName().toString().toLowerCase(Locale.ROOT);
- if (name.endsWith(".json")) {
- HopJson.newMapper().writerWithDefaultPrettyPrinter().writeValue(file.toFile(), spec);
- return;
- }
- Map<String, Object> map = toYamlMap(spec);
- DumperOptions options = new DumperOptions();
- options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
- options.setPrettyFlow(true);
- options.setIndent(2);
- options.setIndicatorIndent(0);
- Yaml yaml = new Yaml(options);
- try (Writer writer = Files.newBufferedWriter(file, StandardCharsets.UTF_8)) {
- yaml.dump(map, writer);
+ FileObject fileObject = HopVfs.getFileObject(resolved, variables);
+ FileObject parent = fileObject.getParent();
+ if (parent != null && !parent.exists()) {
+ parent.createFolder();
+ }
+ String name = fileObject.getName().getBaseName().toLowerCase(Locale.ROOT);
+ try (OutputStream out = HopVfs.getOutputStream(fileObject, false)) {
+ if (name.endsWith(".json")) {
+ HopJson.newMapper().writerWithDefaultPrettyPrinter().writeValue(out, spec);
+ return;
+ }
+ Map<String, Object> map = toYamlMap(spec);
+ DumperOptions options = new DumperOptions();
+ options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
+ options.setPrettyFlow(true);
+ options.setIndent(2);
+ options.setIndicatorIndent(0);
+ Yaml yaml = new Yaml(options);
+ try (Writer writer = new OutputStreamWriter(out, StandardCharsets.UTF_8)) {
+ yaml.dump(map, writer);
+ }
}
+ } catch (HopException e) {
+ throw e;
} catch (Exception e) {
- throw new HopException("Unable to write environment file: " + file, e);
+ throw new HopException("Unable to write install spec file: " + resolved, e);
}
}
/**
* Builds a LinkedHashMap with stable field order and omits blank optional fields / empty lists.
*/
- static Map<String, Object> toYamlMap(HopEnvironmentSpec spec) {
+ static Map<String, Object> toYamlMap(HopInstallSpec spec) {
Map<String, Object> root = new LinkedHashMap<>();
root.put("version", StringUtils.defaultIfBlank(spec.getVersion(), "1.0"));
if (StringUtils.isNotBlank(spec.getHopVersion())) {
@@ -118,7 +146,7 @@ public final class HopEnvironmentLoader {
root.put("enforceOnRun", spec.isEnforceOnRun());
List<Map<String, Object>> repos = new ArrayList<>();
- for (HopEnvironmentSpec.RepositoryRef ref : nullSafe(spec.getRepositories())) {
+ for (HopInstallSpec.RepositoryRef ref : nullSafe(spec.getRepositories())) {
if (ref == null || (StringUtils.isBlank(ref.getId()) && StringUtils.isBlank(ref.getUrl()))) {
continue;
}
@@ -142,7 +170,7 @@ public final class HopEnvironmentLoader {
}
List<Map<String, Object>> plugins = new ArrayList<>();
- for (HopEnvironmentSpec.PluginRef ref : nullSafe(spec.getPlugins())) {
+ for (HopInstallSpec.PluginRef ref : nullSafe(spec.getPlugins())) {
if (ref == null || StringUtils.isBlank(ref.getArtifactId())) {
continue;
}
@@ -161,7 +189,7 @@ public final class HopEnvironmentLoader {
}
List<Map<String, Object>> deps = new ArrayList<>();
- for (HopEnvironmentSpec.DependencyRef ref : nullSafe(spec.getDependencies())) {
+ for (HopInstallSpec.DependencyRef ref : nullSafe(spec.getDependencies())) {
if (ref == null
|| StringUtils.isAnyBlank(ref.getGroupId(), ref.getArtifactId(), ref.getVersion())) {
continue;
@@ -174,7 +202,6 @@ public final class HopEnvironmentLoader {
if (!"lib/jdbc".equals(target)) {
m.put("target", target);
} else if (StringUtils.isNotBlank(ref.getTarget())) {
- // keep explicit default if user set it
m.put("target", target);
}
deps.add(m);
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/MarketplaceAttributes.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/MarketplaceAttributes.java
index 845b3fb4ab..474b899a8d 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/MarketplaceAttributes.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/env/MarketplaceAttributes.java
@@ -29,7 +29,9 @@ public final class MarketplaceAttributes {
/** IAttributes group for marketplace settings. */
public static final String GROUP = "marketplace";
- /** Path to hop-env.yaml / full-client-env.yaml (may contain variables). */
+ /**
+ * Path to the Hop install spec file (hop-env.yaml / full-client-env.yaml; may contain variables).
+ */
public static final String KEY_ENV_FILE = "envFile";
/**
@@ -38,7 +40,7 @@ public final class MarketplaceAttributes {
*/
public static final String KEY_ON_ENABLE = "onEnable";
- /** When true, extra marketplace plugins (receipts not in env file) count as drift. */
+ /** When true, extra marketplace plugins (receipts not in the install spec) count as drift. */
public static final String KEY_STRICT = "strict";
/** When true, apply missing installs on enable (default false). */
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopEnvironmentDialog.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopEnvironmentDialog.java
index d6e66de002..49c552d456 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopEnvironmentDialog.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopEnvironmentDialog.java
@@ -17,1570 +17,17 @@
package org.apache.hop.marketplace.gui;
-import java.lang.reflect.InvocationTargetException;
-import java.nio.file.DirectoryStream;
-import java.nio.file.Files;
import java.nio.file.Path;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.concurrent.atomic.AtomicBoolean;
-import java.util.function.Consumer;
-import lombok.Getter;
-import lombok.Setter;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.hop.core.Const;
-import org.apache.hop.core.IRunnableWithProgress;
-import org.apache.hop.core.logging.ILogChannel;
-import org.apache.hop.core.logging.LogChannel;
-import org.apache.hop.core.variables.Variables;
-import org.apache.hop.history.AuditList;
-import org.apache.hop.history.AuditManager;
-import org.apache.hop.i18n.BaseMessages;
-import org.apache.hop.marketplace.catalog.OptionalPluginInfo;
-import org.apache.hop.marketplace.config.MarketplaceConfig;
-import org.apache.hop.marketplace.config.MarketplaceRepository;
-import org.apache.hop.marketplace.env.EnvironmentApplier;
-import org.apache.hop.marketplace.env.EnvironmentDrift;
-import org.apache.hop.marketplace.env.HopEnvironmentLoader;
-import org.apache.hop.marketplace.env.HopEnvironmentSpec;
-import org.apache.hop.marketplace.install.HopHome;
-import org.apache.hop.marketplace.install.PluginInstaller;
-import org.apache.hop.ui.core.PropsUi;
-import org.apache.hop.ui.core.dialog.BaseDialog;
-import org.apache.hop.ui.core.dialog.ErrorDialog;
-import org.apache.hop.ui.core.dialog.MessageBox;
-import org.apache.hop.ui.core.dialog.ProgressMonitorDialog;
-import org.apache.hop.ui.core.gui.GuiResource;
-import org.apache.hop.ui.core.gui.HopNamespace;
-import org.apache.hop.ui.core.gui.WindowProperty;
-import org.apache.hop.ui.core.widget.ColumnInfo;
-import org.apache.hop.ui.core.widget.TableView;
-import org.apache.hop.ui.hopgui.shared.AuditManagerGuiUtil;
-import org.apache.hop.ui.pipeline.transform.BaseTransformDialog;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.CTabFolder;
-import org.eclipse.swt.custom.CTabItem;
-import org.eclipse.swt.layout.FormAttachment;
-import org.eclipse.swt.layout.FormData;
-import org.eclipse.swt.layout.FormLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Dialog;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.TableItem;
-import org.eclipse.swt.widgets.Text;
/**
- * Graphical editor for marketplace environment files ({@code hop-env.yaml} / {@code .json}).
+ * Compatibility constructor used by the lifecycle-environment dialog's marketplace tab.
*
- * <p>Covers all {@link HopEnvironmentSpec} fields: general settings, repositories, plugins, and jar
- * dependencies.
+ * <p>Prefer {@link HopInstallSpecEditor}.
*/
-@Getter
-@Setter
-public class HopEnvironmentDialog extends Dialog {
-
- private static final Class<?> PKG = MarketplaceGuiPlugin.class;
-
- /** Audit list type for recently opened/saved marketplace environment files. */
- public static final String AUDIT_TYPE_ENV_FILES = "MarketplaceEnvFiles";
-
- private final PropsUi props;
- private final ILogChannel log = new LogChannel("MarketplaceEnvironment");
- private final Path hopHome;
- private final MarketplaceConfig config;
-
- private Shell shell;
- private Combo wFileCombo;
- private Text wVersion;
- private Text wHopVersion;
- private Button wEnforceOnRun;
- private Button wPrune;
- private Button wStrict;
- private TableView wRepos;
- private TableView wPlugins;
- private TableView wDependencies;
-
- private Path currentPath;
- private boolean dirty;
- private boolean ignoreDirtyEvents;
- private boolean saved;
- private Path resultPath;
- private boolean embedded;
- private java.util.function.Consumer<String> statusListener;
+public class HopEnvironmentDialog extends HopInstallSpecEditor {
public HopEnvironmentDialog(Shell parent, Path initialPath) {
- super(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX);
- this.props = PropsUi.getInstance();
- Path home;
- MarketplaceConfig cfg;
- try {
- home = HopHome.resolve();
- cfg = MarketplaceConfig.load();
- } catch (Exception e) {
- home = Path.of(System.getProperty("user.dir", ".")).toAbsolutePath().normalize();
- cfg = new MarketplaceConfig();
- }
- this.hopHome = home;
- this.config = cfg;
- this.currentPath = initialPath;
- }
-
- /**
- * Embed the environment editor into an existing composite (e.g. Marketplace Environment tab).
- *
- * @param parent composite with FormLayout
- * @param initialPath optional hop-env path to load
- * @param statusListener optional status line callback (may be null)
- */
- public static void embed(Composite parent, Path initialPath, Consumer<String> statusListener) {
- HopEnvironmentDialog editor = new HopEnvironmentDialog(parent.getShell(), initialPath);
- editor.embedded = true;
- editor.statusListener = statusListener;
- editor.shell = parent.getShell();
- editor.createControls(parent, false);
- if (initialPath != null && Files.isRegularFile(initialPath)) {
- editor.loadFromPath(initialPath);
- } else {
- editor.loadSpec(newEmptySpec(), null);
- }
- }
-
- public Path open() {
- Shell parent = getParent();
- shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX);
- PropsUi.setLook(shell);
- shell.setImage(GuiResource.getInstance().getImageClientEnvironment());
- updateTitle();
-
- FormLayout formLayout = new FormLayout();
- formLayout.marginWidth = PropsUi.getFormMargin();
- formLayout.marginHeight = PropsUi.getFormMargin();
- shell.setLayout(formLayout);
-
- createControls(shell, true);
-
- shell.addListener(
- SWT.Close,
- e -> {
- e.doit = false;
- close();
- });
-
- BaseTransformDialog.setSize(shell);
- shell.setSize(Math.max(shell.getSize().x, 820), Math.max(shell.getSize().y, 560));
- shell.open();
- Display display = parent.getDisplay();
- while (!shell.isDisposed()) {
- if (!display.readAndDispatch()) {
- display.sleep();
- }
- }
- return resultPath;
- }
-
- private void createControls(Composite parent, boolean includeClose) {
- // File toolbar
- Button wNew = new Button(parent, SWT.PUSH);
- wNew.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.New"));
- wNew.addListener(SWT.Selection, e -> newFile());
- FormData fdNew = new FormData();
- fdNew.left = new FormAttachment(0, 0);
- fdNew.top = new FormAttachment(0, 0);
- wNew.setLayoutData(fdNew);
- PropsUi.setLook(wNew);
-
- Button wOpen = new Button(parent, SWT.PUSH);
- wOpen.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Open"));
- wOpen.addListener(SWT.Selection, e -> openFile());
- FormData fdOpen = new FormData();
- fdOpen.left = new FormAttachment(wNew, PropsUi.getMargin());
- fdOpen.top = new FormAttachment(0, 0);
- wOpen.setLayoutData(fdOpen);
- PropsUi.setLook(wOpen);
-
- Button wSave = new Button(parent, SWT.PUSH);
- wSave.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Save"));
- wSave.addListener(SWT.Selection, e -> save());
- FormData fdSave = new FormData();
- fdSave.left = new FormAttachment(wOpen, PropsUi.getMargin());
- fdSave.top = new FormAttachment(0, 0);
- wSave.setLayoutData(fdSave);
- PropsUi.setLook(wSave);
-
- Button wSaveAs = new Button(parent, SWT.PUSH);
- wSaveAs.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.SaveAs"));
- wSaveAs.addListener(SWT.Selection, e -> saveAs());
- FormData fdSaveAs = new FormData();
- fdSaveAs.left = new FormAttachment(wSave, PropsUi.getMargin());
- fdSaveAs.top = new FormAttachment(0, 0);
- wSaveAs.setLayoutData(fdSaveAs);
- PropsUi.setLook(wSaveAs);
-
- wFileCombo = new Combo(parent, SWT.DROP_DOWN | SWT.BORDER);
- PropsUi.setLook(wFileCombo);
- FormData fdFile = new FormData();
- fdFile.left = new FormAttachment(wSaveAs, PropsUi.getMargin() * 2);
- fdFile.right = new FormAttachment(100, 0);
- fdFile.top = new FormAttachment(wNew, 0, SWT.CENTER);
- wFileCombo.setLayoutData(fdFile);
- refreshFileComboItems(currentPath != null ? currentPath.toString() : "");
- wFileCombo.addListener(SWT.Selection, e -> onFileComboSelected());
- wFileCombo.addListener(SWT.DefaultSelection, e -> onFileComboSelected());
-
- Label wToolbarSep = new Label(parent, SWT.HORIZONTAL | SWT.SEPARATOR);
- FormData fdToolbarSep = new FormData();
- fdToolbarSep.left = new FormAttachment(0, 0);
- fdToolbarSep.right = new FormAttachment(100, 0);
- fdToolbarSep.top = new FormAttachment(wNew, PropsUi.getMargin());
- wToolbarSep.setLayoutData(fdToolbarSep);
-
- // Bottom buttons
- Button wApply = new Button(parent, SWT.PUSH);
- wApply.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Apply"));
- boolean canManage = MarketplaceSecurity.canManagePlugins();
- wApply.setEnabled(canManage);
- wApply.setToolTipText(
- canManage
- ? BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Apply.Tooltip")
- : BaseMessages.getString(PKG, "MarketplaceDialog.Button.Install.RequiresAdmin"));
- wApply.addListener(SWT.Selection, e -> apply());
-
- Button wValidate = new Button(parent, SWT.PUSH);
- wValidate.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Validate"));
- wValidate.setToolTipText(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Validate.Tooltip"));
- wValidate.addListener(SWT.Selection, e -> validate());
-
- Button wClose = null;
- if (includeClose) {
- wClose = new Button(parent, SWT.PUSH);
- wClose.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Close"));
- wClose.addListener(SWT.Selection, e -> close());
- BaseTransformDialog.positionBottomButtons(
- parent, new Button[] {wValidate, wApply, wClose}, PropsUi.getMargin(), null);
- } else {
- BaseTransformDialog.positionBottomButtons(
- parent, new Button[] {wValidate, wApply}, PropsUi.getMargin(), null);
- }
-
- wPrune = new Button(parent, SWT.CHECK);
- PropsUi.setLook(wPrune);
- wPrune.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Prune"));
- wPrune.setToolTipText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Prune.Tooltip"));
- wPrune.setEnabled(canManage);
- FormData fdPrune = new FormData();
- fdPrune.left = new FormAttachment(0, 0);
- fdPrune.bottom = new FormAttachment(wValidate, -PropsUi.getMargin());
- wPrune.setLayoutData(fdPrune);
-
- wStrict = new Button(parent, SWT.CHECK);
- PropsUi.setLook(wStrict);
- wStrict.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Strict"));
- wStrict.setToolTipText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Strict.Tooltip"));
- FormData fdStrict = new FormData();
- fdStrict.left = new FormAttachment(wPrune, PropsUi.getMargin() * 3);
- fdStrict.bottom = new FormAttachment(wValidate, -PropsUi.getMargin());
- wStrict.setLayoutData(fdStrict);
-
- CTabFolder wTabFolder = new CTabFolder(parent, SWT.BORDER);
- PropsUi.setLook(wTabFolder);
- FormData fdTabs = new FormData();
- fdTabs.left = new FormAttachment(0, 0);
- fdTabs.top = new FormAttachment(wToolbarSep, PropsUi.getMargin());
- fdTabs.right = new FormAttachment(100, 0);
- fdTabs.bottom = new FormAttachment(wPrune, -PropsUi.getMargin());
- wTabFolder.setLayoutData(fdTabs);
-
- createGeneralTab(wTabFolder);
- createRepositoriesTab(wTabFolder);
- createPluginsTab(wTabFolder);
- createDependenciesTab(wTabFolder);
- wTabFolder.setSelection(0);
-
- // Load initial content (dialog mode only; embed() loads after createControls)
- if (!embedded) {
- if (currentPath != null && Files.isRegularFile(currentPath)) {
- loadFromPath(currentPath);
- } else {
- loadSpec(newEmptySpec(), null);
- }
- }
- }
-
- private void createGeneralTab(CTabFolder folder) {
- CTabItem tab = new CTabItem(folder, SWT.NONE);
- tab.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Tab.General"));
- Composite comp = new Composite(folder, SWT.NONE);
- PropsUi.setLook(comp);
- FormLayout layout = new FormLayout();
- layout.marginWidth = PropsUi.getFormMargin();
- layout.marginHeight = PropsUi.getFormMargin();
- comp.setLayout(layout);
- tab.setControl(comp);
-
- Label wlHelp = new Label(comp, SWT.LEFT | SWT.WRAP);
- PropsUi.setLook(wlHelp);
- wlHelp.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.General.Help"));
- FormData fdlHelp = new FormData();
- fdlHelp.left = new FormAttachment(0, 0);
- fdlHelp.top = new FormAttachment(0, 0);
- fdlHelp.right = new FormAttachment(100, 0);
- wlHelp.setLayoutData(fdlHelp);
-
- int middle = 30;
- Label wlVersion = new Label(comp, SWT.RIGHT);
- PropsUi.setLook(wlVersion);
- wlVersion.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.General.Version"));
- FormData fdlVersion = new FormData();
- fdlVersion.left = new FormAttachment(0, 0);
- fdlVersion.top = new FormAttachment(wlHelp, PropsUi.getMargin() * 2);
- fdlVersion.right = new FormAttachment(middle, -PropsUi.getMargin());
- wlVersion.setLayoutData(fdlVersion);
- wVersion = new Text(comp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
- PropsUi.setLook(wVersion);
- FormData fdVersion = new FormData();
- fdVersion.left = new FormAttachment(middle, 0);
- fdVersion.top = new FormAttachment(wlVersion, 0, SWT.CENTER);
- fdVersion.right = new FormAttachment(100, 0);
- wVersion.setLayoutData(fdVersion);
- wVersion.addListener(SWT.Modify, e -> markDirty());
-
- Label wlHopVersion = new Label(comp, SWT.RIGHT);
- PropsUi.setLook(wlHopVersion);
- wlHopVersion.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.General.HopVersion"));
- FormData fdlHopVersion = new FormData();
- fdlHopVersion.left = new FormAttachment(0, 0);
- fdlHopVersion.top = new FormAttachment(wVersion, PropsUi.getMargin());
- fdlHopVersion.right = new FormAttachment(middle, -PropsUi.getMargin());
- wlHopVersion.setLayoutData(fdlHopVersion);
- wHopVersion = new Text(comp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
- PropsUi.setLook(wHopVersion);
- FormData fdHopVersion = new FormData();
- fdHopVersion.left = new FormAttachment(middle, 0);
- fdHopVersion.top = new FormAttachment(wlHopVersion, 0, SWT.CENTER);
- fdHopVersion.right = new FormAttachment(100, 0);
- wHopVersion.setLayoutData(fdHopVersion);
- wHopVersion.addListener(SWT.Modify, e -> markDirty());
-
- wEnforceOnRun = new Button(comp, SWT.CHECK);
- PropsUi.setLook(wEnforceOnRun);
- wEnforceOnRun.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.General.EnforceOnRun"));
- wEnforceOnRun.setToolTipText(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.General.EnforceOnRun.Tooltip"));
- FormData fdEnforce = new FormData();
- fdEnforce.left = new FormAttachment(middle, 0);
- fdEnforce.top = new FormAttachment(wHopVersion, PropsUi.getMargin() * 2);
- wEnforceOnRun.setLayoutData(fdEnforce);
- wEnforceOnRun.addListener(SWT.Selection, e -> markDirty());
- }
-
- private void createRepositoriesTab(CTabFolder folder) {
- CTabItem tab = new CTabItem(folder, SWT.NONE);
- tab.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Tab.Repositories"));
- tab.setImage(GuiResource.getInstance().getImageRepository());
- Composite comp = new Composite(folder, SWT.NONE);
- PropsUi.setLook(comp);
- FormLayout layout = new FormLayout();
- layout.marginWidth = PropsUi.getFormMargin();
- layout.marginHeight = PropsUi.getFormMargin();
- comp.setLayout(layout);
- tab.setControl(comp);
-
- Label wlHelp = new Label(comp, SWT.LEFT | SWT.WRAP);
- PropsUi.setLook(wlHelp);
- wlHelp.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Repositories.Help"));
- FormData fdlHelp = new FormData();
- fdlHelp.left = new FormAttachment(0, 0);
- fdlHelp.top = new FormAttachment(0, 0);
- fdlHelp.right = new FormAttachment(100, 0);
- wlHelp.setLayoutData(fdlHelp);
-
- Button wAdd = sideButton(comp, "HopEnvironmentDialog.Button.Add", wlHelp);
- Button wEdit = sideButton(comp, "HopEnvironmentDialog.Button.Edit", wAdd);
- Button wRemove = sideButton(comp, "HopEnvironmentDialog.Button.Remove", wEdit);
- Button wUp = sideButton(comp, "HopEnvironmentDialog.Button.MoveUp", wRemove);
- Button wDown = sideButton(comp, "HopEnvironmentDialog.Button.MoveDown", wUp);
- Button wImport = sideButton(comp, "HopEnvironmentDialog.Button.ImportRepos", wDown);
-
- wAdd.addListener(SWT.Selection, e -> addRepository());
- wEdit.addListener(SWT.Selection, e -> editRepository());
- wRemove.addListener(SWT.Selection, e -> removeSelected(wRepos));
- wUp.addListener(SWT.Selection, e -> moveSelected(wRepos, -1));
- wDown.addListener(SWT.Selection, e -> moveSelected(wRepos, 1));
- wImport.addListener(SWT.Selection, e -> importReposFromConfig());
-
- wRepos =
- createTableView(
- comp,
- wlHelp,
- wAdd,
- new ColumnInfo[] {
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Id"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Url"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Username"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Auth"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- });
- wRepos.table.addListener(SWT.DefaultSelection, e -> editRepository());
- }
-
- private void createPluginsTab(CTabFolder folder) {
- CTabItem tab = new CTabItem(folder, SWT.NONE);
- tab.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Tab.Plugins"));
- tab.setImage(GuiResource.getInstance().getImagePlugin());
- Composite comp = new Composite(folder, SWT.NONE);
- PropsUi.setLook(comp);
- FormLayout layout = new FormLayout();
- layout.marginWidth = PropsUi.getFormMargin();
- layout.marginHeight = PropsUi.getFormMargin();
- comp.setLayout(layout);
- tab.setControl(comp);
-
- Label wlHelp = new Label(comp, SWT.LEFT | SWT.WRAP);
- PropsUi.setLook(wlHelp);
- wlHelp.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Plugins.Help"));
- FormData fdlHelp = new FormData();
- fdlHelp.left = new FormAttachment(0, 0);
- fdlHelp.top = new FormAttachment(0, 0);
- fdlHelp.right = new FormAttachment(100, 0);
- wlHelp.setLayoutData(fdlHelp);
-
- Button wCatalog = sideButton(comp, "HopEnvironmentDialog.Button.AddFromCatalog", wlHelp, null);
- Button wAdd = sideButton(comp, "HopEnvironmentDialog.Button.Add", wCatalog, wCatalog);
- Button wEdit = sideButton(comp, "HopEnvironmentDialog.Button.Edit", wAdd, wCatalog);
- Button wRemove = sideButton(comp, "HopEnvironmentDialog.Button.Remove", wEdit, wCatalog);
- Button wUp = sideButton(comp, "HopEnvironmentDialog.Button.MoveUp", wRemove, wCatalog);
- Button wDown = sideButton(comp, "HopEnvironmentDialog.Button.MoveDown", wUp, wCatalog);
-
- wCatalog.addListener(SWT.Selection, e -> addPluginsFromCatalog());
- wAdd.addListener(SWT.Selection, e -> addPlugin());
- wEdit.addListener(SWT.Selection, e -> editPlugin());
- wRemove.addListener(SWT.Selection, e -> removeSelected(wPlugins));
- wUp.addListener(SWT.Selection, e -> moveSelected(wPlugins, -1));
- wDown.addListener(SWT.Selection, e -> moveSelected(wPlugins, 1));
-
- wPlugins =
- createTableView(
- comp,
- wlHelp,
- wCatalog,
- new ColumnInfo[] {
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Plugin.Column.GroupId"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Plugin.Column.ArtifactId"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Plugin.Column.Version"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- });
- wPlugins.table.addListener(SWT.DefaultSelection, e -> editPlugin());
- }
-
- private void createDependenciesTab(CTabFolder folder) {
- CTabItem tab = new CTabItem(folder, SWT.NONE);
- tab.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Tab.Dependencies"));
- tab.setImage(GuiResource.getInstance().getImageDependence());
- Composite comp = new Composite(folder, SWT.NONE);
- PropsUi.setLook(comp);
- FormLayout layout = new FormLayout();
- layout.marginWidth = PropsUi.getFormMargin();
- layout.marginHeight = PropsUi.getFormMargin();
- comp.setLayout(layout);
- tab.setControl(comp);
-
- Label wlHelp = new Label(comp, SWT.LEFT | SWT.WRAP);
- PropsUi.setLook(wlHelp);
- wlHelp.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Dependencies.Help"));
- FormData fdlHelp = new FormData();
- fdlHelp.left = new FormAttachment(0, 0);
- fdlHelp.top = new FormAttachment(0, 0);
- fdlHelp.right = new FormAttachment(100, 0);
- wlHelp.setLayoutData(fdlHelp);
-
- Button wAdd = sideButton(comp, "HopEnvironmentDialog.Button.Add", wlHelp);
- Button wEdit = sideButton(comp, "HopEnvironmentDialog.Button.Edit", wAdd);
- Button wRemove = sideButton(comp, "HopEnvironmentDialog.Button.Remove", wEdit);
- Button wUp = sideButton(comp, "HopEnvironmentDialog.Button.MoveUp", wRemove);
- Button wDown = sideButton(comp, "HopEnvironmentDialog.Button.MoveDown", wUp);
-
- wAdd.addListener(SWT.Selection, e -> addDependency());
- wEdit.addListener(SWT.Selection, e -> editDependency());
- wRemove.addListener(SWT.Selection, e -> removeSelected(wDependencies));
- wUp.addListener(SWT.Selection, e -> moveSelected(wDependencies, -1));
- wDown.addListener(SWT.Selection, e -> moveSelected(wDependencies, 1));
-
- wDependencies =
- createTableView(
- comp,
- wlHelp,
- wAdd,
- new ColumnInfo[] {
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Dep.Column.GroupId"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Dep.Column.ArtifactId"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Dep.Column.Version"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Dep.Column.Target"),
- ColumnInfo.COLUMN_TYPE_TEXT,
- false,
- true),
- });
- wDependencies.table.addListener(SWT.DefaultSelection, e -> editDependency());
- }
-
- private Button sideButton(Composite parent, String key, Control above) {
- return sideButton(parent, key, above, null);
- }
-
- private Button sideButton(Composite parent, String key, Control above, Control left) {
- Button b = new Button(parent, SWT.PUSH);
- b.setText(BaseMessages.getString(PKG, key));
- FormData fd = new FormData();
- fd.right = new FormAttachment(100, 0);
- fd.top = new FormAttachment(above, PropsUi.getMargin());
- if (left == null) {
- fd.left = new FormAttachment(100, (int) (-100 * PropsUi.getNativeZoomFactor()));
- } else {
- fd.left = new FormAttachment(left, 0, SWT.LEFT);
- }
- b.setLayoutData(fd);
- return b;
- }
-
- private TableView createTableView(
- Composite parent, Label help, Button sideTop, ColumnInfo[] columns) {
- TableView view =
- new TableView(
- Variables.getADefaultVariableSpace(),
- parent,
- SWT.BORDER | SWT.FULL_SELECTION | SWT.SINGLE | SWT.V_SCROLL,
- columns,
- 1,
- true,
- null,
- props,
- false);
- PropsUi.setLook(view);
- FormData fd = new FormData();
- fd.left = new FormAttachment(0, 0);
- fd.top = new FormAttachment(help, PropsUi.getMargin());
- fd.right = new FormAttachment(sideTop, -PropsUi.getMargin());
- fd.bottom = new FormAttachment(100, 0);
- view.setLayoutData(fd);
- return view;
- }
-
- // --- load / save / dirty ---
-
- private static HopEnvironmentSpec newEmptySpec() {
- HopEnvironmentSpec spec = new HopEnvironmentSpec();
- spec.setVersion("1.0");
- return spec;
- }
-
- private void loadFromPath(Path path) {
- try {
- HopEnvironmentSpec spec = HopEnvironmentLoader.load(path);
- loadSpec(spec, path);
- rememberEnvFile(path);
- } catch (Exception e) {
- new ErrorDialog(
- shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Load", path.toString()),
- e);
- }
- }
-
- private void loadSpec(HopEnvironmentSpec spec, Path path) {
- ignoreDirtyEvents = true;
- try {
- currentPath = path;
- wVersion.setText(Const.NVL(spec.getVersion(), "1.0"));
- wHopVersion.setText(Const.NVL(spec.getHopVersion(), ""));
- wEnforceOnRun.setSelection(spec.isEnforceOnRun());
- fillRepos(spec.getRepositories());
- fillPlugins(spec.getPlugins());
- fillDependencies(spec.getDependencies());
- wRepos.optimizeTableView();
- wPlugins.optimizeTableView();
- wDependencies.optimizeTableView();
- dirty = false;
- updateFileLabel();
- updateTitle();
- } finally {
- ignoreDirtyEvents = false;
- }
- }
-
- private void fillRepos(List<HopEnvironmentSpec.RepositoryRef> list) {
- wRepos.table.removeAll();
- if (list == null) {
- return;
- }
- for (HopEnvironmentSpec.RepositoryRef ref : list) {
- if (ref == null) {
- continue;
- }
- addRepoItem(ref);
- }
- }
-
- private void addRepoItem(HopEnvironmentSpec.RepositoryRef ref) {
- TableItem item = new TableItem(wRepos.table, SWT.NONE);
- item.setText(1, Const.NVL(ref.getId(), ""));
- item.setText(2, Const.NVL(ref.getUrl(), ""));
- item.setText(3, Const.NVL(ref.getUsername(), ""));
- item.setText(4, StringUtils.isNotBlank(ref.getPassword()) ? "Y" : "");
- item.setData(ref);
- }
-
- private void fillPlugins(List<HopEnvironmentSpec.PluginRef> list) {
- wPlugins.table.removeAll();
- if (list == null) {
- return;
- }
- for (HopEnvironmentSpec.PluginRef ref : list) {
- if (ref == null) {
- continue;
- }
- addPluginItem(ref);
- }
- }
-
- private void addPluginItem(HopEnvironmentSpec.PluginRef ref) {
- TableItem item = new TableItem(wPlugins.table, SWT.NONE);
- item.setText(1, Const.NVL(ref.getGroupId(), ""));
- item.setText(2, Const.NVL(ref.getArtifactId(), ""));
- item.setText(3, Const.NVL(ref.getVersion(), ""));
- item.setData(ref);
- }
-
- private void fillDependencies(List<HopEnvironmentSpec.DependencyRef> list) {
- wDependencies.table.removeAll();
- if (list == null) {
- return;
- }
- for (HopEnvironmentSpec.DependencyRef ref : list) {
- if (ref == null) {
- continue;
- }
- addDepItem(ref);
- }
- }
-
- private void addDepItem(HopEnvironmentSpec.DependencyRef ref) {
- TableItem item = new TableItem(wDependencies.table, SWT.NONE);
- item.setText(1, Const.NVL(ref.getGroupId(), ""));
- item.setText(2, Const.NVL(ref.getArtifactId(), ""));
- item.setText(3, Const.NVL(ref.getVersion(), ""));
- item.setText(4, Const.NVL(ref.getTarget(), "lib/jdbc"));
- item.setData(ref);
- }
-
- private HopEnvironmentSpec collectSpec() {
- HopEnvironmentSpec spec = new HopEnvironmentSpec();
- spec.setVersion(StringUtils.defaultIfBlank(wVersion.getText(), "1.0").trim());
- String hopVer = wHopVersion.getText();
- spec.setHopVersion(StringUtils.isBlank(hopVer) ? null : hopVer.trim());
- spec.setEnforceOnRun(wEnforceOnRun.getSelection());
-
- List<HopEnvironmentSpec.RepositoryRef> repos = new ArrayList<>();
- for (TableItem item : wRepos.table.getItems()) {
- if (item.getData() instanceof HopEnvironmentSpec.RepositoryRef ref) {
- repos.add(ref);
- }
- }
- spec.setRepositories(repos);
-
- List<HopEnvironmentSpec.PluginRef> plugins = new ArrayList<>();
- for (TableItem item : wPlugins.table.getItems()) {
- if (item.getData() instanceof HopEnvironmentSpec.PluginRef ref) {
- plugins.add(ref);
- }
- }
- spec.setPlugins(plugins);
-
- List<HopEnvironmentSpec.DependencyRef> deps = new ArrayList<>();
- for (TableItem item : wDependencies.table.getItems()) {
- if (item.getData() instanceof HopEnvironmentSpec.DependencyRef ref) {
- deps.add(ref);
- }
- }
- spec.setDependencies(deps);
- return spec;
- }
-
- private void markDirty() {
- if (ignoreDirtyEvents) {
- return;
- }
- if (!dirty) {
- dirty = true;
- updateTitle();
- }
- }
-
- private void updateTitle() {
- if (embedded) {
- return;
- }
- String name =
- currentPath != null
- ? currentPath.getFileName().toString()
- : BaseMessages.getString(PKG, "HopEnvironmentDialog.Untitled");
- String title =
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Shell.Title", name) + (dirty ? " *" : "");
- if (shell != null && !shell.isDisposed()) {
- shell.setText(title);
- }
- }
-
- private void updateFileLabel() {
- if (wFileCombo == null || wFileCombo.isDisposed()) {
- return;
- }
- if (currentPath != null) {
- refreshFileComboItems(currentPath.toString());
- } else {
- refreshFileComboItems("");
- wFileCombo.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Untitled"));
- }
- }
-
- /**
- * Load recent filenames from {@link AuditManager#getActive()}{@code .retrieveList(...)} into the
- * combo and select {@code selectedPath} when non-blank.
- */
- private void refreshFileComboItems(String selectedPath) {
- if (wFileCombo == null || wFileCombo.isDisposed()) {
- return;
- }
- try {
- AuditList list =
- AuditManager.getActive().retrieveList(HopNamespace.getNamespace(), AUDIT_TYPE_ENV_FILES);
- if (list != null && list.getNames() != null && !list.getNames().isEmpty()) {
- wFileCombo.setItems(list.getNames().toArray(new String[0]));
- } else {
- wFileCombo.setItems(new String[0]);
- }
- } catch (Exception e) {
- log.logError("Unable to load marketplace environment file audit list", e);
- wFileCombo.setItems(AuditManagerGuiUtil.getLastUsedValues(AUDIT_TYPE_ENV_FILES));
- }
- if (StringUtils.isNotBlank(selectedPath)) {
- wFileCombo.setText(selectedPath);
- }
- }
-
- /** Remember path in the audit list (most-recent first) and refresh the combo. */
- private void rememberEnvFile(Path path) {
- if (path == null) {
- return;
- }
- String absolute = path.toAbsolutePath().normalize().toString();
- AuditManagerGuiUtil.addLastUsedValue(AUDIT_TYPE_ENV_FILES, absolute);
- refreshFileComboItems(absolute);
- }
-
- private void onFileComboSelected() {
- if (wFileCombo == null || wFileCombo.isDisposed()) {
- return;
- }
- String text = wFileCombo.getText();
- if (StringUtils.isBlank(text)) {
- return;
- }
- Path p = Path.of(text.trim()).toAbsolutePath().normalize();
- if (currentPath != null && currentPath.equals(p)) {
- return;
- }
- if (!Files.isRegularFile(p)) {
- return;
- }
- if (confirmDiscardIfDirty()) {
- updateFileLabel();
- return;
- }
- loadFromPath(p);
- }
-
- private boolean confirmDiscardIfDirty() {
- if (!dirty) {
- return false;
- }
- MessageBox box = new MessageBox(shell, SWT.YES | SWT.NO | SWT.CANCEL | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Dirty.Header"));
- box.setMessage(BaseMessages.getString(PKG, "HopEnvironmentDialog.Dirty.Message"));
- int answer = box.open();
- if (answer == SWT.CANCEL) {
- return true;
- }
- if (answer == SWT.YES) {
- return !save();
- }
- return false;
- }
-
- private void newFile() {
- if (confirmDiscardIfDirty()) {
- return;
- }
- loadSpec(newEmptySpec(), null);
- }
-
- private void openFile() {
- if (confirmDiscardIfDirty()) {
- return;
- }
- String path =
- BaseDialog.presentFileDialog(
- false,
- shell,
- new String[] {"*.yaml;*.yml;*.json", "*.*"},
- new String[] {
- BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.Env"),
- BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.All")
- },
- false);
- if (StringUtils.isBlank(path)) {
- return;
- }
- Path p = Path.of(path.trim()).toAbsolutePath().normalize();
- if (!Files.isRegularFile(p)) {
- MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.NotFound.Header"));
- box.setMessage(
- BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.NotFound.Message", p.toString()));
- box.open();
- return;
- }
- loadFromPath(p);
- rememberEnvFile(p);
- }
-
- private boolean save() {
- if (currentPath == null) {
- return saveAs();
- }
- return writeTo(currentPath);
- }
-
- private boolean saveAs() {
- String path =
- BaseDialog.presentFileDialog(
- true,
- shell,
- new String[] {"*.yaml;*.yml", "*.json", "*.*"},
- new String[] {
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Filter.Yaml"),
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Filter.Json"),
- BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.All")
- },
- false);
- if (StringUtils.isBlank(path)) {
- return false;
- }
- Path p = Path.of(path.trim()).toAbsolutePath().normalize();
- String name = p.getFileName().toString().toLowerCase();
- if (!name.endsWith(".yaml") && !name.endsWith(".yml") && !name.endsWith(".json")) {
- p = p.resolveSibling(p.getFileName().toString() + ".yaml");
- }
- return writeTo(p);
- }
-
- private boolean writeTo(Path path) {
- try {
- HopEnvironmentSpec spec = collectSpec();
- String validationError = validateSpec(spec);
- if (validationError != null) {
- MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.Header"));
- box.setMessage(validationError);
- box.open();
- return false;
- }
- HopEnvironmentLoader.save(path, spec);
- currentPath = path;
- resultPath = path;
- saved = true;
- dirty = false;
- rememberEnvFile(path);
- updateFileLabel();
- updateTitle();
- return true;
- } catch (Exception e) {
- new ErrorDialog(
- shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Save", path.toString()),
- e);
- return false;
- }
- }
-
- private String validateSpec(HopEnvironmentSpec spec) {
- for (HopEnvironmentSpec.RepositoryRef ref : spec.getRepositories()) {
- if (StringUtils.isBlank(ref.getId()) || StringUtils.isBlank(ref.getUrl())) {
- return BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.RepoIdUrl");
- }
- }
- for (HopEnvironmentSpec.PluginRef ref : spec.getPlugins()) {
- if (StringUtils.isBlank(ref.getArtifactId())) {
- return BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.PluginArtifact");
- }
- }
- for (HopEnvironmentSpec.DependencyRef ref : spec.getDependencies()) {
- if (StringUtils.isAnyBlank(ref.getGroupId(), ref.getArtifactId(), ref.getVersion())) {
- return BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.DepGav");
- }
- }
- return null;
- }
-
- private boolean ensureSavedForAction() {
- if (dirty || currentPath == null) {
- MessageBox box = new MessageBox(shell, SWT.YES | SWT.NO | SWT.ICON_QUESTION);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.SaveFirst.Header"));
- box.setMessage(BaseMessages.getString(PKG, "HopEnvironmentDialog.SaveFirst.Message"));
- if (box.open() != SWT.YES) {
- return true;
- }
- if (!save()) {
- return true;
- }
- }
- return currentPath == null || !Files.isRegularFile(currentPath);
- }
-
- private void validate() {
- if (ensureSavedForAction()) {
- return;
- }
- try {
- HopEnvironmentSpec env = HopEnvironmentLoader.load(currentPath);
- EnvironmentApplier applier = new EnvironmentApplier(log, hopHome, MarketplaceConfig.load());
- EnvironmentDrift drift = applier.validate(env);
- if (wStrict.getSelection()) {
- populateExtraPlugins(env, drift);
- }
- boolean hard =
- !drift.getMissingPlugins().isEmpty()
- || !drift.getVersionMismatches().isEmpty()
- || !drift.getMissingDependencies().isEmpty()
- || (wStrict.getSelection() && !drift.getExtraMarketplacePlugins().isEmpty());
- if (!hard) {
- MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
- box.setText(BaseMessages.getString(PKG, "MarketplaceDialog.Validate.Ok.Header"));
- box.setMessage(
- BaseMessages.getString(
- PKG, "MarketplaceDialog.Validate.Ok.Message", currentPath.toString()));
- box.open();
- notifyStatus(BaseMessages.getString(PKG, "MarketplaceDialog.Status.RestartHint"));
- return;
- }
- notifyStatus(BaseMessages.getString(PKG, "MarketplaceDialog.Status.Drift"));
- MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "MarketplaceDialog.Validate.Drift.Header"));
- box.setMessage(
- BaseMessages.getString(PKG, "MarketplaceDialog.Validate.Drift.Message")
- + "\n\n"
- + drift.formatReport()
- + "\n"
- + BaseMessages.getString(PKG, "MarketplaceDialog.Validate.Drift.Hint"));
- box.open();
- } catch (Exception e) {
- new ErrorDialog(
- shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
- BaseMessages.getString(PKG, "MarketplaceDialog.Validate.Error"),
- e);
- }
- }
-
- private void apply() {
- if (!MarketplaceSecurity.checkManagePlugins()) {
- return;
- }
- if (ensureSavedForAction()) {
- return;
- }
- boolean prune = wPrune.getSelection();
- if (prune) {
- MessageBox confirm = new MessageBox(shell, SWT.YES | SWT.NO | SWT.ICON_QUESTION);
- confirm.setText(BaseMessages.getString(PKG, "MarketplaceDialog.Apply.PruneConfirm.Header"));
- confirm.setMessage(
- BaseMessages.getString(PKG, "MarketplaceDialog.Apply.PruneConfirm.Message"));
- if (confirm.open() != SWT.YES) {
- return;
- }
- }
- try {
- MarketplaceConfig live = MarketplaceConfig.load();
- if (!live.isEnabled()) {
- MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"));
- box.setMessage(BaseMessages.getString(PKG, "MarketplaceDialog.Apply.Disabled"));
- box.open();
- return;
- }
- HopEnvironmentSpec env = HopEnvironmentLoader.load(currentPath);
- if (!runApply(env, live, prune)) {
- notifyStatus(BaseMessages.getString(PKG, "MarketplaceDialog.Status.Cancelled"));
- return;
- }
- MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
- box.setText(BaseMessages.getString(PKG, "MarketplaceDialog.Apply.Done.Header"));
- box.setMessage(
- BaseMessages.getString(
- PKG, "MarketplaceDialog.Apply.Done.Message", currentPath.toString()));
- box.open();
- } catch (InterruptedException e) {
- Thread.currentThread().interrupt();
- showApplyError(e);
- } catch (Exception e) {
- showApplyError(e);
- }
- }
-
- private void showApplyError(Exception e) {
- // ProgressMonitorDialog wraps the real failure; unwrap so the dialog shows the cause.
- Throwable cause =
- e instanceof InvocationTargetException ite && ite.getCause() != null ? ite.getCause() : e;
- new ErrorDialog(
- shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
- BaseMessages.getString(PKG, "MarketplaceDialog.Apply.Error"),
- cause);
- }
-
- /**
- * Apply the environment on a worker thread behind a cancellable progress dialog. This path can
- * install many plugins and download many jars, so running it inline froze the GUI for minutes.
- *
- * @return true when the environment was applied, false when the user cancelled
- */
- private boolean runApply(HopEnvironmentSpec env, MarketplaceConfig live, boolean prune)
- throws InvocationTargetException, InterruptedException {
- EnvironmentApplier applier = new EnvironmentApplier(log, hopHome, live);
- AtomicBoolean cancelled = new AtomicBoolean(false);
-
- IRunnableWithProgress operation =
- monitor -> {
- ProgressMonitorInstallListener listener = new ProgressMonitorInstallListener(monitor);
- // No item name up front: apply() names each artifact via IInstallListener.item().
- listener.begin(BaseMessages.getString(PKG, "MarketplaceDialog.Progress.Applying"), null);
- try {
- applier.apply(env, prune, listener);
- } catch (Exception e) {
- if (!monitor.isCanceled()) {
- // Throw WITHOUT calling monitor.done(): done() disposes the progress shell and ends
- // ProgressMonitorDialog's pump loop before it can observe the exception, which would
- // report a failed apply as a success. Catching Exception rather than HopException
- // keeps a RuntimeException from killing the worker and hanging the dialog.
- throw new InvocationTargetException(e, e.getMessage());
- }
- cancelled.set(true);
- }
- listener.complete();
- monitor.done();
- };
-
- new ProgressMonitorDialog(shell).run(true, operation);
- return !cancelled.get();
- }
-
- private void populateExtraPlugins(HopEnvironmentSpec env, EnvironmentDrift drift)
- throws Exception {
- Set<String> desired = new HashSet<>();
- if (env.getPlugins() != null) {
- for (HopEnvironmentSpec.PluginRef ref : env.getPlugins()) {
- if (ref.getArtifactId() != null) {
- desired.add(ref.getArtifactId());
- }
- }
- }
- Path receipts = hopHome.resolve(PluginInstaller.RECEIPTS_DIR);
- if (!Files.isDirectory(receipts)) {
- return;
- }
- try (DirectoryStream<Path> stream = Files.newDirectoryStream(receipts, "*.json")) {
- for (Path f : stream) {
- String name = f.getFileName().toString();
- String id = name.substring(0, name.length() - ".json".length());
- if (!desired.contains(id)) {
- drift.getExtraMarketplacePlugins().add(id);
- }
- }
- }
- }
-
- private void close() {
- if (embedded) {
- return;
- }
- if (confirmDiscardIfDirty()) {
- return;
- }
- props.setScreen(new WindowProperty(shell));
- shell.dispose();
- }
-
- // --- repository CRUD ---
-
- private void addRepository() {
- HopEnvironmentSpec.RepositoryRef ref = new HopEnvironmentSpec.RepositoryRef();
- if (editRepositoryDialog(ref, true)) {
- addRepoItem(ref);
- markDirty();
- }
- }
-
- private void editRepository() {
- TableItem[] sel = wRepos.table.getSelection();
- if (sel == null || sel.length == 0) {
- return;
- }
- HopEnvironmentSpec.RepositoryRef ref = (HopEnvironmentSpec.RepositoryRef) sel[0].getData();
- if (ref == null) {
- return;
- }
- if (editRepositoryDialog(ref, false)) {
- sel[0].setText(1, Const.NVL(ref.getId(), ""));
- sel[0].setText(2, Const.NVL(ref.getUrl(), ""));
- sel[0].setText(3, Const.NVL(ref.getUsername(), ""));
- sel[0].setText(4, StringUtils.isNotBlank(ref.getPassword()) ? "Y" : "");
- markDirty();
- }
- }
-
- private boolean editRepositoryDialog(HopEnvironmentSpec.RepositoryRef ref, boolean isNew) {
- Shell dialog = new Shell(shell, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
- PropsUi.setLook(dialog);
- dialog.setText(
- BaseMessages.getString(
- PKG,
- isNew ? "HopEnvironmentDialog.Repo.Edit.Add" : "HopEnvironmentDialog.Repo.Edit.Edit"));
- FormLayout layout = new FormLayout();
- layout.marginWidth = PropsUi.getFormMargin();
- layout.marginHeight = PropsUi.getFormMargin();
- dialog.setLayout(layout);
- int middle = 30;
- int margin = PropsUi.getMargin();
-
- Label wlId = labeled(dialog, "HopEnvironmentDialog.Repo.Column.Id", 0, middle, margin);
- Text wId = textField(dialog, wlId, middle, Const.NVL(ref.getId(), ""));
- Label wlUrl = labeled(dialog, "HopEnvironmentDialog.Repo.Column.Url", wId, middle, margin);
- Text wUrl = textField(dialog, wlUrl, middle, Const.NVL(ref.getUrl(), ""));
- Label wlUser =
- labeled(dialog, "HopEnvironmentDialog.Repo.Column.Username", wUrl, middle, margin);
- Text wUser = textField(dialog, wlUser, middle, Const.NVL(ref.getUsername(), ""));
- Label wlPass =
- labeled(dialog, "HopEnvironmentDialog.Repo.Column.Password", wUser, middle, margin);
- Text wPass = new Text(dialog, SWT.SINGLE | SWT.LEFT | SWT.BORDER | SWT.PASSWORD);
- PropsUi.setLook(wPass);
- wPass.setText(Const.NVL(ref.getPassword(), ""));
- String passwordTooltip =
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Password.Tooltip");
- wlPass.setToolTipText(passwordTooltip);
- wPass.setToolTipText(passwordTooltip);
- FormData fdPass = new FormData();
- fdPass.left = new FormAttachment(middle, 0);
- fdPass.top = new FormAttachment(wlPass, 0, SWT.CENTER);
- fdPass.right = new FormAttachment(100, 0);
- wPass.setLayoutData(fdPass);
-
- final boolean[] ok = {false};
- Button wOk = new Button(dialog, SWT.PUSH);
- wOk.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Ok"));
- Button wCancel = new Button(dialog, SWT.PUSH);
- wCancel.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Cancel"));
- wCancel.addListener(SWT.Selection, e -> dialog.dispose());
- wOk.addListener(
- SWT.Selection,
- e -> {
- if (StringUtils.isBlank(wId.getText()) || StringUtils.isBlank(wUrl.getText())) {
- MessageBox box = new MessageBox(dialog, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.Header"));
- box.setMessage(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.RepoIdUrl"));
- box.open();
- return;
- }
- ref.setId(wId.getText().trim());
- ref.setUrl(wUrl.getText().trim());
- ref.setUsername(blankToNull(wUser.getText()));
- ref.setPassword(blankToNull(wPass.getText()));
- ok[0] = true;
- dialog.dispose();
- });
- BaseTransformDialog.positionBottomButtons(dialog, new Button[] {wOk, wCancel}, margin, wPass);
- BaseTransformDialog.setSize(dialog);
- dialog.open();
- Display display = shell.getDisplay();
- while (!dialog.isDisposed()) {
- if (!display.readAndDispatch()) {
- display.sleep();
- }
- }
- return ok[0];
- }
-
- private void importReposFromConfig() {
- try {
- MarketplaceConfig live = config != null ? config : MarketplaceConfig.load();
- if (live.getRepositories() == null || live.getRepositories().isEmpty()) {
- return;
- }
- MessageBox confirm = new MessageBox(shell, SWT.YES | SWT.NO | SWT.ICON_QUESTION);
- confirm.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.ImportRepos.Header"));
- confirm.setMessage(BaseMessages.getString(PKG, "HopEnvironmentDialog.ImportRepos.Message"));
- if (confirm.open() != SWT.YES) {
- return;
- }
- wRepos.table.removeAll();
- for (MarketplaceRepository repo : live.getRepositories()) {
- if (repo == null || !repo.isEnabled()) {
- continue;
- }
- HopEnvironmentSpec.RepositoryRef ref = new HopEnvironmentSpec.RepositoryRef();
- ref.setId(repo.getId());
- ref.setUrl(repo.getUrl());
- ref.setUsername(repo.getUsername());
- ref.setPassword(repo.getPassword());
- addRepoItem(ref);
- }
- markDirty();
- } catch (Exception e) {
- new ErrorDialog(
- shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.ImportRepos"),
- e);
- }
- }
-
- // --- plugin CRUD ---
-
- private void addPlugin() {
- HopEnvironmentSpec.PluginRef ref = new HopEnvironmentSpec.PluginRef();
- ref.setVersion(StringUtils.trimToNull(wHopVersion.getText()));
- if (editPluginDialog(ref, true)) {
- addPluginItem(ref);
- markDirty();
- }
- }
-
- private void editPlugin() {
- TableItem[] sel = wPlugins.table.getSelection();
- if (sel == null || sel.length == 0) {
- return;
- }
- HopEnvironmentSpec.PluginRef ref = (HopEnvironmentSpec.PluginRef) sel[0].getData();
- if (ref == null) {
- return;
- }
- if (editPluginDialog(ref, false)) {
- sel[0].setText(1, Const.NVL(ref.getGroupId(), ""));
- sel[0].setText(2, Const.NVL(ref.getArtifactId(), ""));
- sel[0].setText(3, Const.NVL(ref.getVersion(), ""));
- markDirty();
- }
- }
-
- private boolean editPluginDialog(HopEnvironmentSpec.PluginRef ref, boolean isNew) {
- Shell dialog = new Shell(shell, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
- PropsUi.setLook(dialog);
- dialog.setText(
- BaseMessages.getString(
- PKG,
- isNew
- ? "HopEnvironmentDialog.Plugin.Edit.Add"
- : "HopEnvironmentDialog.Plugin.Edit.Edit"));
- FormLayout layout = new FormLayout();
- layout.marginWidth = PropsUi.getFormMargin();
- layout.marginHeight = PropsUi.getFormMargin();
- dialog.setLayout(layout);
- int middle = 30;
- int margin = PropsUi.getMargin();
-
- Label wlGroup =
- labeled(dialog, "HopEnvironmentDialog.Plugin.Column.GroupId", 0, middle, margin);
- Text wGroup = textField(dialog, wlGroup, middle, Const.NVL(ref.getGroupId(), ""));
- Label wlArt =
- labeled(dialog, "HopEnvironmentDialog.Plugin.Column.ArtifactId", wGroup, middle, margin);
- Text wArt = textField(dialog, wlArt, middle, Const.NVL(ref.getArtifactId(), ""));
- Label wlVer =
- labeled(dialog, "HopEnvironmentDialog.Plugin.Column.Version", wArt, middle, margin);
- Text wVer = textField(dialog, wlVer, middle, Const.NVL(ref.getVersion(), ""));
-
- final boolean[] ok = {false};
- Button wOk = new Button(dialog, SWT.PUSH);
- wOk.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Ok"));
- Button wCancel = new Button(dialog, SWT.PUSH);
- wCancel.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Cancel"));
- wCancel.addListener(SWT.Selection, e -> dialog.dispose());
- wOk.addListener(
- SWT.Selection,
- e -> {
- if (StringUtils.isBlank(wArt.getText())) {
- MessageBox box = new MessageBox(dialog, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.Header"));
- box.setMessage(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.PluginArtifact"));
- box.open();
- return;
- }
- ref.setGroupId(blankToNull(wGroup.getText()));
- ref.setArtifactId(wArt.getText().trim());
- ref.setVersion(blankToNull(wVer.getText()));
- ok[0] = true;
- dialog.dispose();
- });
- BaseTransformDialog.positionBottomButtons(dialog, new Button[] {wOk, wCancel}, margin, wVer);
- BaseTransformDialog.setSize(dialog);
- dialog.open();
- Display display = shell.getDisplay();
- while (!dialog.isDisposed()) {
- if (!display.readAndDispatch()) {
- display.sleep();
- }
- }
- return ok[0];
- }
-
- private void addPluginsFromCatalog() {
- Set<String> existing = new HashSet<>();
- for (TableItem item : wPlugins.table.getItems()) {
- if (item.getData() instanceof HopEnvironmentSpec.PluginRef ref
- && StringUtils.isNotBlank(ref.getArtifactId())) {
- existing.add(ref.getArtifactId());
- }
- }
- List<OptionalPluginInfo> chosen = new AddPluginsFromCatalogDialog(shell, existing).open();
- if (chosen == null || chosen.isEmpty()) {
- return;
- }
- String defaultVersion = StringUtils.trimToNull(wHopVersion.getText());
- for (OptionalPluginInfo info : chosen) {
- HopEnvironmentSpec.PluginRef ref = new HopEnvironmentSpec.PluginRef();
- ref.setArtifactId(info.getArtifactId());
- ref.setVersion(defaultVersion);
- addPluginItem(ref);
- }
- markDirty();
- }
-
- // --- dependency CRUD ---
-
- private void addDependency() {
- HopEnvironmentSpec.DependencyRef ref = new HopEnvironmentSpec.DependencyRef();
- ref.setTarget("lib/jdbc");
- if (editDependencyDialog(ref, true)) {
- addDepItem(ref);
- markDirty();
- }
- }
-
- private void editDependency() {
- TableItem[] sel = wDependencies.table.getSelection();
- if (sel == null || sel.length == 0) {
- return;
- }
- HopEnvironmentSpec.DependencyRef ref = (HopEnvironmentSpec.DependencyRef) sel[0].getData();
- if (ref == null) {
- return;
- }
- if (editDependencyDialog(ref, false)) {
- sel[0].setText(1, Const.NVL(ref.getGroupId(), ""));
- sel[0].setText(2, Const.NVL(ref.getArtifactId(), ""));
- sel[0].setText(3, Const.NVL(ref.getVersion(), ""));
- sel[0].setText(4, Const.NVL(ref.getTarget(), "lib/jdbc"));
- markDirty();
- }
- }
-
- private boolean editDependencyDialog(HopEnvironmentSpec.DependencyRef ref, boolean isNew) {
- Shell dialog = new Shell(shell, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
- PropsUi.setLook(dialog);
- dialog.setText(
- BaseMessages.getString(
- PKG,
- isNew ? "HopEnvironmentDialog.Dep.Edit.Add" : "HopEnvironmentDialog.Dep.Edit.Edit"));
- FormLayout layout = new FormLayout();
- layout.marginWidth = PropsUi.getFormMargin();
- layout.marginHeight = PropsUi.getFormMargin();
- dialog.setLayout(layout);
- int middle = 30;
- int margin = PropsUi.getMargin();
-
- Label wlGroup = labeled(dialog, "HopEnvironmentDialog.Dep.Column.GroupId", 0, middle, margin);
- Text wGroup = textField(dialog, wlGroup, middle, Const.NVL(ref.getGroupId(), ""));
- Label wlArt =
- labeled(dialog, "HopEnvironmentDialog.Dep.Column.ArtifactId", wGroup, middle, margin);
- Text wArt = textField(dialog, wlArt, middle, Const.NVL(ref.getArtifactId(), ""));
- Label wlVer = labeled(dialog, "HopEnvironmentDialog.Dep.Column.Version", wArt, middle, margin);
- Text wVer = textField(dialog, wlVer, middle, Const.NVL(ref.getVersion(), ""));
- Label wlTarget =
- labeled(dialog, "HopEnvironmentDialog.Dep.Column.Target", wVer, middle, margin);
- Text wTarget = textField(dialog, wlTarget, middle, Const.NVL(ref.getTarget(), "lib/jdbc"));
-
- final boolean[] ok = {false};
- Button wOk = new Button(dialog, SWT.PUSH);
- wOk.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Ok"));
- Button wCancel = new Button(dialog, SWT.PUSH);
- wCancel.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Cancel"));
- wCancel.addListener(SWT.Selection, e -> dialog.dispose());
- wOk.addListener(
- SWT.Selection,
- e -> {
- if (StringUtils.isAnyBlank(wGroup.getText(), wArt.getText(), wVer.getText())) {
- MessageBox box = new MessageBox(dialog, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.Header"));
- box.setMessage(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.DepGav"));
- box.open();
- return;
- }
- ref.setGroupId(wGroup.getText().trim());
- ref.setArtifactId(wArt.getText().trim());
- ref.setVersion(wVer.getText().trim());
- ref.setTarget(StringUtils.defaultIfBlank(wTarget.getText(), "lib/jdbc").trim());
- ok[0] = true;
- dialog.dispose();
- });
- BaseTransformDialog.positionBottomButtons(dialog, new Button[] {wOk, wCancel}, margin, wTarget);
- BaseTransformDialog.setSize(dialog);
- dialog.open();
- Display display = shell.getDisplay();
- while (!dialog.isDisposed()) {
- if (!display.readAndDispatch()) {
- display.sleep();
- }
- }
- return ok[0];
- }
-
- // --- table helpers ---
-
- private void removeSelected(TableView view) {
- int idx = view.table.getSelectionIndex();
- if (idx < 0) {
- return;
- }
- view.table.remove(idx);
- markDirty();
- }
-
- private void moveSelected(TableView view, int delta) {
- int idx = view.table.getSelectionIndex();
- if (idx < 0) {
- return;
- }
- int target = idx + delta;
- if (target < 0 || target >= view.table.getItemCount()) {
- return;
- }
- TableItem a = view.table.getItem(idx);
- TableItem b = view.table.getItem(target);
- Object dataA = a.getData();
- Object dataB = b.getData();
- int cols = view.table.getColumnCount();
- String[] textsA = new String[cols];
- String[] textsB = new String[cols];
- for (int c = 0; c < cols; c++) {
- textsA[c] = a.getText(c);
- textsB[c] = b.getText(c);
- }
- for (int c = 0; c < cols; c++) {
- a.setText(c, textsB[c]);
- b.setText(c, textsA[c]);
- }
- a.setData(dataB);
- b.setData(dataA);
- view.table.setSelection(target);
- markDirty();
- }
-
- private Label labeled(Shell dialog, String key, Object above, int middle, int margin) {
- Label label = new Label(dialog, SWT.RIGHT);
- PropsUi.setLook(label);
- label.setText(BaseMessages.getString(PKG, key));
- FormData fd = new FormData();
- fd.left = new FormAttachment(0, 0);
- fd.right = new FormAttachment(middle, -margin);
- if (above instanceof Integer) {
- fd.top = new FormAttachment(0, margin);
- } else {
- fd.top = new FormAttachment((Control) above, margin);
- }
- label.setLayoutData(fd);
- return label;
- }
-
- private Text textField(Shell dialog, Label label, int middle, String value) {
- Text text = new Text(dialog, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
- PropsUi.setLook(text);
- text.setText(value);
- FormData fd = new FormData();
- fd.left = new FormAttachment(middle, 0);
- fd.top = new FormAttachment(label, 0, SWT.CENTER);
- fd.right = new FormAttachment(100, 0);
- text.setLayoutData(fd);
- return text;
- }
-
- private void notifyStatus(String message) {
- if (statusListener != null && message != null) {
- statusListener.accept(message);
- }
- }
-
- private static String blankToNull(String value) {
- return StringUtils.isBlank(value) ? null : value.trim();
- }
-
- public boolean wasSaved() {
- return saved;
+ super(parent, initialPath);
}
}
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopEnvironmentDialog.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopInstallSpecEditor.java
similarity index 67%
copy from plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopEnvironmentDialog.java
copy to plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopInstallSpecEditor.java
index d6e66de002..29ce61eee2 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopEnvironmentDialog.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopInstallSpecEditor.java
@@ -30,11 +30,14 @@ import java.util.function.Consumer;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.vfs2.FileObject;
import org.apache.hop.core.Const;
import org.apache.hop.core.IRunnableWithProgress;
import org.apache.hop.core.logging.ILogChannel;
import org.apache.hop.core.logging.LogChannel;
+import org.apache.hop.core.variables.IVariables;
import org.apache.hop.core.variables.Variables;
+import org.apache.hop.core.vfs.HopVfs;
import org.apache.hop.history.AuditList;
import org.apache.hop.history.AuditManager;
import org.apache.hop.i18n.BaseMessages;
@@ -43,8 +46,9 @@ import org.apache.hop.marketplace.config.MarketplaceConfig;
import org.apache.hop.marketplace.config.MarketplaceRepository;
import org.apache.hop.marketplace.env.EnvironmentApplier;
import org.apache.hop.marketplace.env.EnvironmentDrift;
-import org.apache.hop.marketplace.env.HopEnvironmentLoader;
-import org.apache.hop.marketplace.env.HopEnvironmentSpec;
+import org.apache.hop.marketplace.env.HopInstallSpec;
+import org.apache.hop.marketplace.env.HopInstallSpecFiles;
+import org.apache.hop.marketplace.env.HopInstallSpecLoader;
import org.apache.hop.marketplace.install.HopHome;
import org.apache.hop.marketplace.install.PluginInstaller;
import org.apache.hop.ui.core.PropsUi;
@@ -57,6 +61,8 @@ import org.apache.hop.ui.core.gui.HopNamespace;
import org.apache.hop.ui.core.gui.WindowProperty;
import org.apache.hop.ui.core.widget.ColumnInfo;
import org.apache.hop.ui.core.widget.TableView;
+import org.apache.hop.ui.hopgui.HopGui;
+import org.apache.hop.ui.hopgui.perspective.explorer.file.types.yaml.YamlExplorerFileType;
import org.apache.hop.ui.hopgui.shared.AuditManagerGuiUtil;
import org.apache.hop.ui.pipeline.transform.BaseTransformDialog;
import org.eclipse.swt.SWT;
@@ -77,27 +83,34 @@ import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
/**
- * Graphical editor for marketplace environment files ({@code hop-env.yaml} / {@code .json}).
+ * Graphical editor for Hop install spec files ({@code hop-env.yaml} / {@code .json}).
*
- * <p>Covers all {@link HopEnvironmentSpec} fields: general settings, repositories, plugins, and jar
+ * <p>Covers all {@link HopInstallSpec} fields: general settings, repositories, plugins, and jar
* dependencies.
*/
@Getter
@Setter
-public class HopEnvironmentDialog extends Dialog {
+public class HopInstallSpecEditor extends Dialog {
private static final Class<?> PKG = MarketplaceGuiPlugin.class;
- /** Audit list type for recently opened/saved marketplace environment files. */
+ /** Audit list type for recently opened/saved install spec files. */
public static final String AUDIT_TYPE_ENV_FILES = "MarketplaceEnvFiles";
private final PropsUi props;
- private final ILogChannel log = new LogChannel("MarketplaceEnvironment");
+ private final ILogChannel log = new LogChannel("MarketplaceInstallSpec");
private final Path hopHome;
private final MarketplaceConfig config;
private Shell shell;
+ private Button wNew;
+ private Button wOpen;
+ private Button wSave;
+ private Button wSaveAs;
+ private Button wEditYaml;
+ private Button wReload;
private Combo wFileCombo;
+ private Label wFullClientBanner;
private Text wVersion;
private Text wHopVersion;
private Button wEnforceOnRun;
@@ -107,15 +120,26 @@ public class HopEnvironmentDialog extends Dialog {
private TableView wPlugins;
private TableView wDependencies;
- private Path currentPath;
+ /** Unresolved path as shown in the combo (may contain variable expressions). */
+ private String currentFilename;
+
private boolean dirty;
private boolean ignoreDirtyEvents;
private boolean saved;
- private Path resultPath;
+ private String resultFilename;
private boolean embedded;
+
+ @Setter(lombok.AccessLevel.NONE)
+ private boolean explorerMode;
+
+ private Runnable dirtyListener;
private java.util.function.Consumer<String> statusListener;
- public HopEnvironmentDialog(Shell parent, Path initialPath) {
+ public HopInstallSpecEditor(Shell parent, Path initialPath) {
+ this(parent, initialPath == null ? null : initialPath.toString());
+ }
+
+ public HopInstallSpecEditor(Shell parent, String initialFilename) {
super(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX);
this.props = PropsUi.getInstance();
Path home;
@@ -129,34 +153,41 @@ public class HopEnvironmentDialog extends Dialog {
}
this.hopHome = home;
this.config = cfg;
- this.currentPath = initialPath;
+ this.currentFilename = initialFilename;
}
/**
- * Embed the environment editor into an existing composite (e.g. Marketplace Environment tab).
+ * Embed the install spec editor into an existing composite (e.g. Marketplace Install spec tab).
*
* @param parent composite with FormLayout
- * @param initialPath optional hop-env path to load
+ * @param initialFilename optional hop-env path to load (variables allowed)
* @param statusListener optional status line callback (may be null)
*/
- public static void embed(Composite parent, Path initialPath, Consumer<String> statusListener) {
- HopEnvironmentDialog editor = new HopEnvironmentDialog(parent.getShell(), initialPath);
+ public static HopInstallSpecEditor embed(
+ Composite parent, String initialFilename, Consumer<String> statusListener) {
+ HopInstallSpecEditor editor = new HopInstallSpecEditor(parent.getShell(), initialFilename);
editor.embedded = true;
editor.statusListener = statusListener;
editor.shell = parent.getShell();
editor.createControls(parent, false);
- if (initialPath != null && Files.isRegularFile(initialPath)) {
- editor.loadFromPath(initialPath);
+ if (HopInstallSpecFiles.exists(initialFilename, editor.variables())) {
+ editor.loadFromFilename(initialFilename);
} else {
editor.loadSpec(newEmptySpec(), null);
}
+ return editor;
+ }
+
+ public void setExplorerMode(boolean explorerMode) {
+ this.explorerMode = explorerMode;
+ applyExplorerModeVisibility();
}
public Path open() {
Shell parent = getParent();
shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX);
PropsUi.setLook(shell);
- shell.setImage(GuiResource.getInstance().getImageClientEnvironment());
+ shell.setImage(GuiResource.getInstance().getImageMarketplace());
updateTitle();
FormLayout formLayout = new FormLayout();
@@ -182,13 +213,13 @@ public class HopEnvironmentDialog extends Dialog {
display.sleep();
}
}
- return resultPath;
+ return resultFilename == null ? null : Path.of(resultFilename);
}
private void createControls(Composite parent, boolean includeClose) {
// File toolbar
- Button wNew = new Button(parent, SWT.PUSH);
- wNew.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.New"));
+ wNew = new Button(parent, SWT.PUSH);
+ wNew.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.New"));
wNew.addListener(SWT.Selection, e -> newFile());
FormData fdNew = new FormData();
fdNew.left = new FormAttachment(0, 0);
@@ -196,8 +227,8 @@ public class HopEnvironmentDialog extends Dialog {
wNew.setLayoutData(fdNew);
PropsUi.setLook(wNew);
- Button wOpen = new Button(parent, SWT.PUSH);
- wOpen.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Open"));
+ wOpen = new Button(parent, SWT.PUSH);
+ wOpen.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Open"));
wOpen.addListener(SWT.Selection, e -> openFile());
FormData fdOpen = new FormData();
fdOpen.left = new FormAttachment(wNew, PropsUi.getMargin());
@@ -205,8 +236,8 @@ public class HopEnvironmentDialog extends Dialog {
wOpen.setLayoutData(fdOpen);
PropsUi.setLook(wOpen);
- Button wSave = new Button(parent, SWT.PUSH);
- wSave.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Save"));
+ wSave = new Button(parent, SWT.PUSH);
+ wSave.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Save"));
wSave.addListener(SWT.Selection, e -> save());
FormData fdSave = new FormData();
fdSave.left = new FormAttachment(wOpen, PropsUi.getMargin());
@@ -214,8 +245,8 @@ public class HopEnvironmentDialog extends Dialog {
wSave.setLayoutData(fdSave);
PropsUi.setLook(wSave);
- Button wSaveAs = new Button(parent, SWT.PUSH);
- wSaveAs.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.SaveAs"));
+ wSaveAs = new Button(parent, SWT.PUSH);
+ wSaveAs.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.SaveAs"));
wSaveAs.addListener(SWT.Selection, e -> saveAs());
FormData fdSaveAs = new FormData();
fdSaveAs.left = new FormAttachment(wSave, PropsUi.getMargin());
@@ -223,14 +254,36 @@ public class HopEnvironmentDialog extends Dialog {
wSaveAs.setLayoutData(fdSaveAs);
PropsUi.setLook(wSaveAs);
+ wEditYaml = new Button(parent, SWT.PUSH);
+ wEditYaml.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.EditYaml"));
+ wEditYaml.setToolTipText(
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.EditYaml.Tooltip"));
+ wEditYaml.addListener(SWT.Selection, e -> editYamlInExplorer());
+ FormData fdYaml = new FormData();
+ fdYaml.left = new FormAttachment(wSaveAs, PropsUi.getMargin());
+ fdYaml.top = new FormAttachment(0, 0);
+ wEditYaml.setLayoutData(fdYaml);
+ PropsUi.setLook(wEditYaml);
+
+ wReload = new Button(parent, SWT.PUSH);
+ wReload.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Reload"));
+ wReload.setToolTipText(
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Reload.Tooltip"));
+ wReload.addListener(SWT.Selection, e -> reloadFromDisk());
+ FormData fdReload = new FormData();
+ fdReload.left = new FormAttachment(wEditYaml, PropsUi.getMargin());
+ fdReload.top = new FormAttachment(0, 0);
+ wReload.setLayoutData(fdReload);
+ PropsUi.setLook(wReload);
+
wFileCombo = new Combo(parent, SWT.DROP_DOWN | SWT.BORDER);
PropsUi.setLook(wFileCombo);
FormData fdFile = new FormData();
- fdFile.left = new FormAttachment(wSaveAs, PropsUi.getMargin() * 2);
+ fdFile.left = new FormAttachment(wReload, PropsUi.getMargin() * 2);
fdFile.right = new FormAttachment(100, 0);
fdFile.top = new FormAttachment(wNew, 0, SWT.CENTER);
wFileCombo.setLayoutData(fdFile);
- refreshFileComboItems(currentPath != null ? currentPath.toString() : "");
+ refreshFileComboItems(Const.NVL(currentFilename, ""));
wFileCombo.addListener(SWT.Selection, e -> onFileComboSelected());
wFileCombo.addListener(SWT.DefaultSelection, e -> onFileComboSelected());
@@ -241,27 +294,36 @@ public class HopEnvironmentDialog extends Dialog {
fdToolbarSep.top = new FormAttachment(wNew, PropsUi.getMargin());
wToolbarSep.setLayoutData(fdToolbarSep);
+ wFullClientBanner = new Label(parent, SWT.LEFT | SWT.WRAP);
+ PropsUi.setLook(wFullClientBanner);
+ wFullClientBanner.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Guidance"));
+ FormData fdBanner = new FormData();
+ fdBanner.left = new FormAttachment(0, 0);
+ fdBanner.right = new FormAttachment(100, 0);
+ fdBanner.top = new FormAttachment(wToolbarSep, PropsUi.getMargin());
+ wFullClientBanner.setLayoutData(fdBanner);
+
// Bottom buttons
Button wApply = new Button(parent, SWT.PUSH);
- wApply.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Apply"));
+ wApply.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Apply"));
boolean canManage = MarketplaceSecurity.canManagePlugins();
wApply.setEnabled(canManage);
wApply.setToolTipText(
canManage
- ? BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Apply.Tooltip")
+ ? BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Apply.Tooltip")
: BaseMessages.getString(PKG, "MarketplaceDialog.Button.Install.RequiresAdmin"));
wApply.addListener(SWT.Selection, e -> apply());
Button wValidate = new Button(parent, SWT.PUSH);
- wValidate.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Validate"));
+ wValidate.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Validate"));
wValidate.setToolTipText(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Validate.Tooltip"));
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Validate.Tooltip"));
wValidate.addListener(SWT.Selection, e -> validate());
Button wClose = null;
if (includeClose) {
wClose = new Button(parent, SWT.PUSH);
- wClose.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Close"));
+ wClose.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Close"));
wClose.addListener(SWT.Selection, e -> close());
BaseTransformDialog.positionBottomButtons(
parent, new Button[] {wValidate, wApply, wClose}, PropsUi.getMargin(), null);
@@ -272,8 +334,8 @@ public class HopEnvironmentDialog extends Dialog {
wPrune = new Button(parent, SWT.CHECK);
PropsUi.setLook(wPrune);
- wPrune.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Prune"));
- wPrune.setToolTipText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Prune.Tooltip"));
+ wPrune.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Prune"));
+ wPrune.setToolTipText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Prune.Tooltip"));
wPrune.setEnabled(canManage);
FormData fdPrune = new FormData();
fdPrune.left = new FormAttachment(0, 0);
@@ -282,8 +344,8 @@ public class HopEnvironmentDialog extends Dialog {
wStrict = new Button(parent, SWT.CHECK);
PropsUi.setLook(wStrict);
- wStrict.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Strict"));
- wStrict.setToolTipText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Strict.Tooltip"));
+ wStrict.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Strict"));
+ wStrict.setToolTipText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Strict.Tooltip"));
FormData fdStrict = new FormData();
fdStrict.left = new FormAttachment(wPrune, PropsUi.getMargin() * 3);
fdStrict.bottom = new FormAttachment(wValidate, -PropsUi.getMargin());
@@ -293,7 +355,7 @@ public class HopEnvironmentDialog extends Dialog {
PropsUi.setLook(wTabFolder);
FormData fdTabs = new FormData();
fdTabs.left = new FormAttachment(0, 0);
- fdTabs.top = new FormAttachment(wToolbarSep, PropsUi.getMargin());
+ fdTabs.top = new FormAttachment(wFullClientBanner, PropsUi.getMargin());
fdTabs.right = new FormAttachment(100, 0);
fdTabs.bottom = new FormAttachment(wPrune, -PropsUi.getMargin());
wTabFolder.setLayoutData(fdTabs);
@@ -304,19 +366,22 @@ public class HopEnvironmentDialog extends Dialog {
createDependenciesTab(wTabFolder);
wTabFolder.setSelection(0);
+ updateYamlButtons();
+ applyExplorerModeVisibility();
+
// Load initial content (dialog mode only; embed() loads after createControls)
if (!embedded) {
- if (currentPath != null && Files.isRegularFile(currentPath)) {
- loadFromPath(currentPath);
+ if (HopInstallSpecFiles.exists(currentFilename, variables())) {
+ loadFromFilename(currentFilename);
} else {
- loadSpec(newEmptySpec(), null);
+ loadSpec(newEmptySpec(), StringUtils.isBlank(currentFilename) ? null : currentFilename);
}
}
}
private void createGeneralTab(CTabFolder folder) {
CTabItem tab = new CTabItem(folder, SWT.NONE);
- tab.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Tab.General"));
+ tab.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Tab.General"));
Composite comp = new Composite(folder, SWT.NONE);
PropsUi.setLook(comp);
FormLayout layout = new FormLayout();
@@ -327,7 +392,7 @@ public class HopEnvironmentDialog extends Dialog {
Label wlHelp = new Label(comp, SWT.LEFT | SWT.WRAP);
PropsUi.setLook(wlHelp);
- wlHelp.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.General.Help"));
+ wlHelp.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.General.Help"));
FormData fdlHelp = new FormData();
fdlHelp.left = new FormAttachment(0, 0);
fdlHelp.top = new FormAttachment(0, 0);
@@ -337,7 +402,7 @@ public class HopEnvironmentDialog extends Dialog {
int middle = 30;
Label wlVersion = new Label(comp, SWT.RIGHT);
PropsUi.setLook(wlVersion);
- wlVersion.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.General.Version"));
+ wlVersion.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.General.Version"));
FormData fdlVersion = new FormData();
fdlVersion.left = new FormAttachment(0, 0);
fdlVersion.top = new FormAttachment(wlHelp, PropsUi.getMargin() * 2);
@@ -354,7 +419,7 @@ public class HopEnvironmentDialog extends Dialog {
Label wlHopVersion = new Label(comp, SWT.RIGHT);
PropsUi.setLook(wlHopVersion);
- wlHopVersion.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.General.HopVersion"));
+ wlHopVersion.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.General.HopVersion"));
FormData fdlHopVersion = new FormData();
fdlHopVersion.left = new FormAttachment(0, 0);
fdlHopVersion.top = new FormAttachment(wVersion, PropsUi.getMargin());
@@ -371,9 +436,9 @@ public class HopEnvironmentDialog extends Dialog {
wEnforceOnRun = new Button(comp, SWT.CHECK);
PropsUi.setLook(wEnforceOnRun);
- wEnforceOnRun.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.General.EnforceOnRun"));
+ wEnforceOnRun.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.General.EnforceOnRun"));
wEnforceOnRun.setToolTipText(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.General.EnforceOnRun.Tooltip"));
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.General.EnforceOnRun.Tooltip"));
FormData fdEnforce = new FormData();
fdEnforce.left = new FormAttachment(middle, 0);
fdEnforce.top = new FormAttachment(wHopVersion, PropsUi.getMargin() * 2);
@@ -383,7 +448,7 @@ public class HopEnvironmentDialog extends Dialog {
private void createRepositoriesTab(CTabFolder folder) {
CTabItem tab = new CTabItem(folder, SWT.NONE);
- tab.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Tab.Repositories"));
+ tab.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Tab.Repositories"));
tab.setImage(GuiResource.getInstance().getImageRepository());
Composite comp = new Composite(folder, SWT.NONE);
PropsUi.setLook(comp);
@@ -395,19 +460,19 @@ public class HopEnvironmentDialog extends Dialog {
Label wlHelp = new Label(comp, SWT.LEFT | SWT.WRAP);
PropsUi.setLook(wlHelp);
- wlHelp.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Repositories.Help"));
+ wlHelp.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Repositories.Help"));
FormData fdlHelp = new FormData();
fdlHelp.left = new FormAttachment(0, 0);
fdlHelp.top = new FormAttachment(0, 0);
fdlHelp.right = new FormAttachment(100, 0);
wlHelp.setLayoutData(fdlHelp);
- Button wAdd = sideButton(comp, "HopEnvironmentDialog.Button.Add", wlHelp);
- Button wEdit = sideButton(comp, "HopEnvironmentDialog.Button.Edit", wAdd);
- Button wRemove = sideButton(comp, "HopEnvironmentDialog.Button.Remove", wEdit);
- Button wUp = sideButton(comp, "HopEnvironmentDialog.Button.MoveUp", wRemove);
- Button wDown = sideButton(comp, "HopEnvironmentDialog.Button.MoveDown", wUp);
- Button wImport = sideButton(comp, "HopEnvironmentDialog.Button.ImportRepos", wDown);
+ Button wAdd = sideButton(comp, "HopInstallSpecEditor.Button.Add", wlHelp);
+ Button wEdit = sideButton(comp, "HopInstallSpecEditor.Button.Edit", wAdd);
+ Button wRemove = sideButton(comp, "HopInstallSpecEditor.Button.Remove", wEdit);
+ Button wUp = sideButton(comp, "HopInstallSpecEditor.Button.MoveUp", wRemove);
+ Button wDown = sideButton(comp, "HopInstallSpecEditor.Button.MoveDown", wUp);
+ Button wImport = sideButton(comp, "HopInstallSpecEditor.Button.ImportRepos", wDown);
wAdd.addListener(SWT.Selection, e -> addRepository());
wEdit.addListener(SWT.Selection, e -> editRepository());
@@ -423,22 +488,22 @@ public class HopEnvironmentDialog extends Dialog {
wAdd,
new ColumnInfo[] {
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Id"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Repo.Column.Id"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Url"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Repo.Column.Url"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Username"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Repo.Column.Username"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Auth"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Repo.Column.Auth"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
@@ -448,7 +513,7 @@ public class HopEnvironmentDialog extends Dialog {
private void createPluginsTab(CTabFolder folder) {
CTabItem tab = new CTabItem(folder, SWT.NONE);
- tab.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Tab.Plugins"));
+ tab.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Tab.Plugins"));
tab.setImage(GuiResource.getInstance().getImagePlugin());
Composite comp = new Composite(folder, SWT.NONE);
PropsUi.setLook(comp);
@@ -460,19 +525,19 @@ public class HopEnvironmentDialog extends Dialog {
Label wlHelp = new Label(comp, SWT.LEFT | SWT.WRAP);
PropsUi.setLook(wlHelp);
- wlHelp.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Plugins.Help"));
+ wlHelp.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Plugins.Help"));
FormData fdlHelp = new FormData();
fdlHelp.left = new FormAttachment(0, 0);
fdlHelp.top = new FormAttachment(0, 0);
fdlHelp.right = new FormAttachment(100, 0);
wlHelp.setLayoutData(fdlHelp);
- Button wCatalog = sideButton(comp, "HopEnvironmentDialog.Button.AddFromCatalog", wlHelp, null);
- Button wAdd = sideButton(comp, "HopEnvironmentDialog.Button.Add", wCatalog, wCatalog);
- Button wEdit = sideButton(comp, "HopEnvironmentDialog.Button.Edit", wAdd, wCatalog);
- Button wRemove = sideButton(comp, "HopEnvironmentDialog.Button.Remove", wEdit, wCatalog);
- Button wUp = sideButton(comp, "HopEnvironmentDialog.Button.MoveUp", wRemove, wCatalog);
- Button wDown = sideButton(comp, "HopEnvironmentDialog.Button.MoveDown", wUp, wCatalog);
+ Button wCatalog = sideButton(comp, "HopInstallSpecEditor.Button.AddFromCatalog", wlHelp, null);
+ Button wAdd = sideButton(comp, "HopInstallSpecEditor.Button.Add", wCatalog, wCatalog);
+ Button wEdit = sideButton(comp, "HopInstallSpecEditor.Button.Edit", wAdd, wCatalog);
+ Button wRemove = sideButton(comp, "HopInstallSpecEditor.Button.Remove", wEdit, wCatalog);
+ Button wUp = sideButton(comp, "HopInstallSpecEditor.Button.MoveUp", wRemove, wCatalog);
+ Button wDown = sideButton(comp, "HopInstallSpecEditor.Button.MoveDown", wUp, wCatalog);
wCatalog.addListener(SWT.Selection, e -> addPluginsFromCatalog());
wAdd.addListener(SWT.Selection, e -> addPlugin());
@@ -488,17 +553,17 @@ public class HopEnvironmentDialog extends Dialog {
wCatalog,
new ColumnInfo[] {
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Plugin.Column.GroupId"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Plugin.Column.GroupId"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Plugin.Column.ArtifactId"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Plugin.Column.ArtifactId"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Plugin.Column.Version"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Plugin.Column.Version"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
@@ -508,7 +573,7 @@ public class HopEnvironmentDialog extends Dialog {
private void createDependenciesTab(CTabFolder folder) {
CTabItem tab = new CTabItem(folder, SWT.NONE);
- tab.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Tab.Dependencies"));
+ tab.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Tab.Dependencies"));
tab.setImage(GuiResource.getInstance().getImageDependence());
Composite comp = new Composite(folder, SWT.NONE);
PropsUi.setLook(comp);
@@ -520,18 +585,18 @@ public class HopEnvironmentDialog extends Dialog {
Label wlHelp = new Label(comp, SWT.LEFT | SWT.WRAP);
PropsUi.setLook(wlHelp);
- wlHelp.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Dependencies.Help"));
+ wlHelp.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Dependencies.Help"));
FormData fdlHelp = new FormData();
fdlHelp.left = new FormAttachment(0, 0);
fdlHelp.top = new FormAttachment(0, 0);
fdlHelp.right = new FormAttachment(100, 0);
wlHelp.setLayoutData(fdlHelp);
- Button wAdd = sideButton(comp, "HopEnvironmentDialog.Button.Add", wlHelp);
- Button wEdit = sideButton(comp, "HopEnvironmentDialog.Button.Edit", wAdd);
- Button wRemove = sideButton(comp, "HopEnvironmentDialog.Button.Remove", wEdit);
- Button wUp = sideButton(comp, "HopEnvironmentDialog.Button.MoveUp", wRemove);
- Button wDown = sideButton(comp, "HopEnvironmentDialog.Button.MoveDown", wUp);
+ Button wAdd = sideButton(comp, "HopInstallSpecEditor.Button.Add", wlHelp);
+ Button wEdit = sideButton(comp, "HopInstallSpecEditor.Button.Edit", wAdd);
+ Button wRemove = sideButton(comp, "HopInstallSpecEditor.Button.Remove", wEdit);
+ Button wUp = sideButton(comp, "HopInstallSpecEditor.Button.MoveUp", wRemove);
+ Button wDown = sideButton(comp, "HopInstallSpecEditor.Button.MoveDown", wUp);
wAdd.addListener(SWT.Selection, e -> addDependency());
wEdit.addListener(SWT.Selection, e -> editDependency());
@@ -546,22 +611,22 @@ public class HopEnvironmentDialog extends Dialog {
wAdd,
new ColumnInfo[] {
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Dep.Column.GroupId"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Dep.Column.GroupId"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Dep.Column.ArtifactId"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Dep.Column.ArtifactId"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Dep.Column.Version"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Dep.Column.Version"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
new ColumnInfo(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Dep.Column.Target"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Dep.Column.Target"),
ColumnInfo.COLUMN_TYPE_TEXT,
false,
true),
@@ -613,30 +678,30 @@ public class HopEnvironmentDialog extends Dialog {
// --- load / save / dirty ---
- private static HopEnvironmentSpec newEmptySpec() {
- HopEnvironmentSpec spec = new HopEnvironmentSpec();
+ private static HopInstallSpec newEmptySpec() {
+ HopInstallSpec spec = new HopInstallSpec();
spec.setVersion("1.0");
return spec;
}
- private void loadFromPath(Path path) {
+ private void loadFromFilename(String filename) {
try {
- HopEnvironmentSpec spec = HopEnvironmentLoader.load(path);
- loadSpec(spec, path);
- rememberEnvFile(path);
+ HopInstallSpec spec = HopInstallSpecLoader.load(filename, variables());
+ loadSpec(spec, filename);
+ rememberEnvFile(filename);
} catch (Exception e) {
new ErrorDialog(
shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Load", path.toString()),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.Header"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.Load", filename),
e);
}
}
- private void loadSpec(HopEnvironmentSpec spec, Path path) {
+ private void loadSpec(HopInstallSpec spec, String filename) {
ignoreDirtyEvents = true;
try {
- currentPath = path;
+ currentFilename = filename;
wVersion.setText(Const.NVL(spec.getVersion(), "1.0"));
wHopVersion.setText(Const.NVL(spec.getHopVersion(), ""));
wEnforceOnRun.setSelection(spec.isEnforceOnRun());
@@ -649,17 +714,19 @@ public class HopEnvironmentDialog extends Dialog {
dirty = false;
updateFileLabel();
updateTitle();
+ updateGuidance();
+ updateYamlButtons();
} finally {
ignoreDirtyEvents = false;
}
}
- private void fillRepos(List<HopEnvironmentSpec.RepositoryRef> list) {
+ private void fillRepos(List<HopInstallSpec.RepositoryRef> list) {
wRepos.table.removeAll();
if (list == null) {
return;
}
- for (HopEnvironmentSpec.RepositoryRef ref : list) {
+ for (HopInstallSpec.RepositoryRef ref : list) {
if (ref == null) {
continue;
}
@@ -667,7 +734,7 @@ public class HopEnvironmentDialog extends Dialog {
}
}
- private void addRepoItem(HopEnvironmentSpec.RepositoryRef ref) {
+ private void addRepoItem(HopInstallSpec.RepositoryRef ref) {
TableItem item = new TableItem(wRepos.table, SWT.NONE);
item.setText(1, Const.NVL(ref.getId(), ""));
item.setText(2, Const.NVL(ref.getUrl(), ""));
@@ -676,12 +743,12 @@ public class HopEnvironmentDialog extends Dialog {
item.setData(ref);
}
- private void fillPlugins(List<HopEnvironmentSpec.PluginRef> list) {
+ private void fillPlugins(List<HopInstallSpec.PluginRef> list) {
wPlugins.table.removeAll();
if (list == null) {
return;
}
- for (HopEnvironmentSpec.PluginRef ref : list) {
+ for (HopInstallSpec.PluginRef ref : list) {
if (ref == null) {
continue;
}
@@ -689,7 +756,7 @@ public class HopEnvironmentDialog extends Dialog {
}
}
- private void addPluginItem(HopEnvironmentSpec.PluginRef ref) {
+ private void addPluginItem(HopInstallSpec.PluginRef ref) {
TableItem item = new TableItem(wPlugins.table, SWT.NONE);
item.setText(1, Const.NVL(ref.getGroupId(), ""));
item.setText(2, Const.NVL(ref.getArtifactId(), ""));
@@ -697,12 +764,12 @@ public class HopEnvironmentDialog extends Dialog {
item.setData(ref);
}
- private void fillDependencies(List<HopEnvironmentSpec.DependencyRef> list) {
+ private void fillDependencies(List<HopInstallSpec.DependencyRef> list) {
wDependencies.table.removeAll();
if (list == null) {
return;
}
- for (HopEnvironmentSpec.DependencyRef ref : list) {
+ for (HopInstallSpec.DependencyRef ref : list) {
if (ref == null) {
continue;
}
@@ -710,7 +777,7 @@ public class HopEnvironmentDialog extends Dialog {
}
}
- private void addDepItem(HopEnvironmentSpec.DependencyRef ref) {
+ private void addDepItem(HopInstallSpec.DependencyRef ref) {
TableItem item = new TableItem(wDependencies.table, SWT.NONE);
item.setText(1, Const.NVL(ref.getGroupId(), ""));
item.setText(2, Const.NVL(ref.getArtifactId(), ""));
@@ -719,32 +786,32 @@ public class HopEnvironmentDialog extends Dialog {
item.setData(ref);
}
- private HopEnvironmentSpec collectSpec() {
- HopEnvironmentSpec spec = new HopEnvironmentSpec();
+ private HopInstallSpec collectSpec() {
+ HopInstallSpec spec = new HopInstallSpec();
spec.setVersion(StringUtils.defaultIfBlank(wVersion.getText(), "1.0").trim());
String hopVer = wHopVersion.getText();
spec.setHopVersion(StringUtils.isBlank(hopVer) ? null : hopVer.trim());
spec.setEnforceOnRun(wEnforceOnRun.getSelection());
- List<HopEnvironmentSpec.RepositoryRef> repos = new ArrayList<>();
+ List<HopInstallSpec.RepositoryRef> repos = new ArrayList<>();
for (TableItem item : wRepos.table.getItems()) {
- if (item.getData() instanceof HopEnvironmentSpec.RepositoryRef ref) {
+ if (item.getData() instanceof HopInstallSpec.RepositoryRef ref) {
repos.add(ref);
}
}
spec.setRepositories(repos);
- List<HopEnvironmentSpec.PluginRef> plugins = new ArrayList<>();
+ List<HopInstallSpec.PluginRef> plugins = new ArrayList<>();
for (TableItem item : wPlugins.table.getItems()) {
- if (item.getData() instanceof HopEnvironmentSpec.PluginRef ref) {
+ if (item.getData() instanceof HopInstallSpec.PluginRef ref) {
plugins.add(ref);
}
}
spec.setPlugins(plugins);
- List<HopEnvironmentSpec.DependencyRef> deps = new ArrayList<>();
+ List<HopInstallSpec.DependencyRef> deps = new ArrayList<>();
for (TableItem item : wDependencies.table.getItems()) {
- if (item.getData() instanceof HopEnvironmentSpec.DependencyRef ref) {
+ if (item.getData() instanceof HopInstallSpec.DependencyRef ref) {
deps.add(ref);
}
}
@@ -759,6 +826,9 @@ public class HopEnvironmentDialog extends Dialog {
if (!dirty) {
dirty = true;
updateTitle();
+ if (dirtyListener != null) {
+ dirtyListener.run();
+ }
}
}
@@ -767,11 +837,11 @@ public class HopEnvironmentDialog extends Dialog {
return;
}
String name =
- currentPath != null
- ? currentPath.getFileName().toString()
- : BaseMessages.getString(PKG, "HopEnvironmentDialog.Untitled");
+ StringUtils.isNotBlank(currentFilename)
+ ? HopInstallSpecFiles.baseName(currentFilename)
+ : BaseMessages.getString(PKG, "HopInstallSpecEditor.Untitled");
String title =
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Shell.Title", name) + (dirty ? " *" : "");
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Shell.Title", name) + (dirty ? " *" : "");
if (shell != null && !shell.isDisposed()) {
shell.setText(title);
}
@@ -781,11 +851,58 @@ public class HopEnvironmentDialog extends Dialog {
if (wFileCombo == null || wFileCombo.isDisposed()) {
return;
}
- if (currentPath != null) {
- refreshFileComboItems(currentPath.toString());
+ if (StringUtils.isNotBlank(currentFilename)) {
+ refreshFileComboItems(currentFilename);
} else {
refreshFileComboItems("");
- wFileCombo.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Untitled"));
+ wFileCombo.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Untitled"));
+ }
+ }
+
+ private void updateGuidance() {
+ if (wFullClientBanner == null || wFullClientBanner.isDisposed()) {
+ return;
+ }
+ if (HopInstallSpecFiles.isFullClient(currentFilename)) {
+ wFullClientBanner.setText(
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.FullClient.Banner"));
+ } else if (StringUtils.isBlank(currentFilename)) {
+ wFullClientBanner.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Guidance.New"));
+ } else {
+ wFullClientBanner.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Guidance"));
+ }
+ }
+
+ private void updateYamlButtons() {
+ boolean hasFile = StringUtils.isNotBlank(currentFilename);
+ if (wEditYaml != null && !wEditYaml.isDisposed()) {
+ wEditYaml.setEnabled(hasFile && !includeCloseIsModalOnly());
+ }
+ if (wReload != null && !wReload.isDisposed()) {
+ wReload.setEnabled(hasFile);
+ }
+ }
+
+ private boolean includeCloseIsModalOnly() {
+ return !embedded;
+ }
+
+ private void applyExplorerModeVisibility() {
+ boolean showFileButtons = !explorerMode;
+ if (wNew != null && !wNew.isDisposed()) {
+ wNew.setVisible(showFileButtons);
+ }
+ if (wOpen != null && !wOpen.isDisposed()) {
+ wOpen.setVisible(showFileButtons);
+ }
+ if (wSave != null && !wSave.isDisposed()) {
+ wSave.setVisible(showFileButtons);
+ }
+ if (wSaveAs != null && !wSaveAs.isDisposed()) {
+ wSaveAs.setVisible(showFileButtons);
+ }
+ if (wEditYaml != null && !wEditYaml.isDisposed()) {
+ wEditYaml.setVisible(embedded);
}
}
@@ -806,7 +923,7 @@ public class HopEnvironmentDialog extends Dialog {
wFileCombo.setItems(new String[0]);
}
} catch (Exception e) {
- log.logError("Unable to load marketplace environment file audit list", e);
+ log.logError("Unable to load marketplace install spec file audit list", e);
wFileCombo.setItems(AuditManagerGuiUtil.getLastUsedValues(AUDIT_TYPE_ENV_FILES));
}
if (StringUtils.isNotBlank(selectedPath)) {
@@ -815,13 +932,12 @@ public class HopEnvironmentDialog extends Dialog {
}
/** Remember path in the audit list (most-recent first) and refresh the combo. */
- private void rememberEnvFile(Path path) {
- if (path == null) {
+ private void rememberEnvFile(String filename) {
+ if (StringUtils.isBlank(filename)) {
return;
}
- String absolute = path.toAbsolutePath().normalize().toString();
- AuditManagerGuiUtil.addLastUsedValue(AUDIT_TYPE_ENV_FILES, absolute);
- refreshFileComboItems(absolute);
+ AuditManagerGuiUtil.addLastUsedValue(AUDIT_TYPE_ENV_FILES, filename);
+ refreshFileComboItems(filename);
}
private void onFileComboSelected() {
@@ -832,18 +948,31 @@ public class HopEnvironmentDialog extends Dialog {
if (StringUtils.isBlank(text)) {
return;
}
- Path p = Path.of(text.trim()).toAbsolutePath().normalize();
- if (currentPath != null && currentPath.equals(p)) {
+ String filename = text.trim();
+ if (filename.equals(currentFilename)) {
return;
}
- if (!Files.isRegularFile(p)) {
+ if (!HopInstallSpecFiles.exists(filename, variables())) {
+ if (confirmDiscardIfDirty()) {
+ updateFileLabel();
+ return;
+ }
+ currentFilename = filename;
+ updateFileLabel();
+ updateGuidance();
+ updateYamlButtons();
+ MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
+ box.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.NewPath.Header"));
+ box.setMessage(BaseMessages.getString(PKG, "HopInstallSpecEditor.NewPath.Message", filename));
+ box.open();
+ markDirty();
return;
}
if (confirmDiscardIfDirty()) {
updateFileLabel();
return;
}
- loadFromPath(p);
+ loadFromFilename(filename);
}
private boolean confirmDiscardIfDirty() {
@@ -851,8 +980,8 @@ public class HopEnvironmentDialog extends Dialog {
return false;
}
MessageBox box = new MessageBox(shell, SWT.YES | SWT.NO | SWT.CANCEL | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Dirty.Header"));
- box.setMessage(BaseMessages.getString(PKG, "HopEnvironmentDialog.Dirty.Message"));
+ box.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Dirty.Header"));
+ box.setMessage(BaseMessages.getString(PKG, "HopInstallSpecEditor.Dirty.Message"));
int answer = box.open();
if (answer == SWT.CANCEL) {
return true;
@@ -874,116 +1003,172 @@ public class HopEnvironmentDialog extends Dialog {
if (confirmDiscardIfDirty()) {
return;
}
- String path =
- BaseDialog.presentFileDialog(
- false,
- shell,
- new String[] {"*.yaml;*.yml;*.json", "*.*"},
- new String[] {
- BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.Env"),
- BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.All")
- },
- false);
+ String path = presentSpecFileDialog(false);
if (StringUtils.isBlank(path)) {
return;
}
- Path p = Path.of(path.trim()).toAbsolutePath().normalize();
- if (!Files.isRegularFile(p)) {
+ if (!HopInstallSpecFiles.exists(path, variables())) {
MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING);
box.setText(BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.NotFound.Header"));
box.setMessage(
- BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.NotFound.Message", p.toString()));
+ BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.NotFound.Message", path));
box.open();
return;
}
- loadFromPath(p);
- rememberEnvFile(p);
+ loadFromFilename(path);
}
private boolean save() {
- if (currentPath == null) {
+ if (StringUtils.isBlank(currentFilename)) {
return saveAs();
}
- return writeTo(currentPath);
+ return writeTo(currentFilename);
}
private boolean saveAs() {
- String path =
- BaseDialog.presentFileDialog(
- true,
- shell,
- new String[] {"*.yaml;*.yml", "*.json", "*.*"},
- new String[] {
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Filter.Yaml"),
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Filter.Json"),
- BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.All")
- },
- false);
+ String path = presentSpecFileDialog(true);
if (StringUtils.isBlank(path)) {
return false;
}
- Path p = Path.of(path.trim()).toAbsolutePath().normalize();
- String name = p.getFileName().toString().toLowerCase();
- if (!name.endsWith(".yaml") && !name.endsWith(".yml") && !name.endsWith(".json")) {
- p = p.resolveSibling(p.getFileName().toString() + ".yaml");
- }
- return writeTo(p);
+ return writeTo(HopInstallSpecFiles.ensureSpecExtension(path));
+ }
+
+ private String presentSpecFileDialog(boolean save) {
+ IVariables vars = variables();
+ FileObject start = null;
+ try {
+ if (StringUtils.isNotBlank(currentFilename)) {
+ start = HopVfs.getFileObject(HopInstallSpecFiles.resolve(currentFilename, vars), vars);
+ } else {
+ String folder = HopInstallSpecFiles.defaultSaveFolder(vars, hopHome);
+ start = HopVfs.getFileObject(folder + "/" + HopInstallSpecFiles.DEFAULT_FILENAME, vars);
+ }
+ } catch (Exception e) {
+ start = null;
+ }
+ String[] filterExtensions =
+ save
+ ? new String[] {"*.yaml;*.yml", "*.json", "*.*"}
+ : new String[] {"*.yaml;*.yml;*.json", "*.*"};
+ String[] filterNames =
+ save
+ ? new String[] {
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Filter.Yaml"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Filter.Json"),
+ BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.All")
+ }
+ : new String[] {
+ BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.Env"),
+ BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.All")
+ };
+ return BaseDialog.presentFileDialog(
+ save, shell, null, vars, start, filterExtensions, filterNames, false);
}
- private boolean writeTo(Path path) {
+ private boolean writeTo(String filename) {
try {
- HopEnvironmentSpec spec = collectSpec();
+ HopInstallSpec spec = collectSpec();
String validationError = validateSpec(spec);
if (validationError != null) {
MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.Header"));
+ box.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.Header"));
box.setMessage(validationError);
box.open();
return false;
}
- HopEnvironmentLoader.save(path, spec);
- currentPath = path;
- resultPath = path;
+ HopInstallSpecLoader.save(filename, spec, variables());
+ currentFilename = filename;
+ resultFilename = filename;
saved = true;
dirty = false;
- rememberEnvFile(path);
+ rememberEnvFile(filename);
updateFileLabel();
updateTitle();
+ updateGuidance();
+ updateYamlButtons();
return true;
} catch (Exception e) {
new ErrorDialog(
shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Save", path.toString()),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.Header"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.Save", filename),
e);
return false;
}
}
- private String validateSpec(HopEnvironmentSpec spec) {
- for (HopEnvironmentSpec.RepositoryRef ref : spec.getRepositories()) {
+ public boolean saveCurrent() {
+ return save();
+ }
+
+ private IVariables variables() {
+ try {
+ HopGui hopGui = HopGui.getInstance();
+ if (hopGui != null && hopGui.getVariables() != null) {
+ return hopGui.getVariables();
+ }
+ } catch (Exception ignored) {
+ // headless / tests
+ }
+ return Variables.getADefaultVariableSpace();
+ }
+
+ public void reloadFromDisk() {
+ if (StringUtils.isBlank(currentFilename)) {
+ return;
+ }
+ if (confirmDiscardIfDirty()) {
+ return;
+ }
+ loadFromFilename(currentFilename);
+ }
+
+ private void editYamlInExplorer() {
+ if (StringUtils.isBlank(currentFilename)) {
+ return;
+ }
+ if (dirty) {
+ if (confirmDiscardIfDirty()) {
+ return;
+ }
+ }
+ try {
+ HopGui hopGui = HopGui.getInstance();
+ String resolved = HopInstallSpecFiles.resolve(currentFilename, variables());
+ hopGui.fileDelegate.fileOpenWithType(resolved, new YamlExplorerFileType(), true);
+ } catch (Exception e) {
+ new ErrorDialog(
+ shell,
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.Header"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.OpenYaml", currentFilename),
+ e);
+ }
+ }
+
+ private String validateSpec(HopInstallSpec spec) {
+ for (HopInstallSpec.RepositoryRef ref : spec.getRepositories()) {
if (StringUtils.isBlank(ref.getId()) || StringUtils.isBlank(ref.getUrl())) {
- return BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.RepoIdUrl");
+ return BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.RepoIdUrl");
}
}
- for (HopEnvironmentSpec.PluginRef ref : spec.getPlugins()) {
+ for (HopInstallSpec.PluginRef ref : spec.getPlugins()) {
if (StringUtils.isBlank(ref.getArtifactId())) {
- return BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.PluginArtifact");
+ return BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.PluginArtifact");
}
}
- for (HopEnvironmentSpec.DependencyRef ref : spec.getDependencies()) {
+ for (HopInstallSpec.DependencyRef ref : spec.getDependencies()) {
if (StringUtils.isAnyBlank(ref.getGroupId(), ref.getArtifactId(), ref.getVersion())) {
- return BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.DepGav");
+ return BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.DepGav");
}
}
return null;
}
private boolean ensureSavedForAction() {
- if (dirty || currentPath == null) {
+ if (dirty || StringUtils.isBlank(currentFilename)) {
MessageBox box = new MessageBox(shell, SWT.YES | SWT.NO | SWT.ICON_QUESTION);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.SaveFirst.Header"));
- box.setMessage(BaseMessages.getString(PKG, "HopEnvironmentDialog.SaveFirst.Message"));
+ box.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.SaveFirst.Header"));
+ box.setMessage(BaseMessages.getString(PKG, "HopInstallSpecEditor.SaveFirst.Message"));
if (box.open() != SWT.YES) {
return true;
}
@@ -991,7 +1176,7 @@ public class HopEnvironmentDialog extends Dialog {
return true;
}
}
- return currentPath == null || !Files.isRegularFile(currentPath);
+ return !HopInstallSpecFiles.exists(currentFilename, variables());
}
private void validate() {
@@ -999,7 +1184,7 @@ public class HopEnvironmentDialog extends Dialog {
return;
}
try {
- HopEnvironmentSpec env = HopEnvironmentLoader.load(currentPath);
+ HopInstallSpec env = HopInstallSpecLoader.load(currentFilename, variables());
EnvironmentApplier applier = new EnvironmentApplier(log, hopHome, MarketplaceConfig.load());
EnvironmentDrift drift = applier.validate(env);
if (wStrict.getSelection()) {
@@ -1014,8 +1199,7 @@ public class HopEnvironmentDialog extends Dialog {
MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
box.setText(BaseMessages.getString(PKG, "MarketplaceDialog.Validate.Ok.Header"));
box.setMessage(
- BaseMessages.getString(
- PKG, "MarketplaceDialog.Validate.Ok.Message", currentPath.toString()));
+ BaseMessages.getString(PKG, "MarketplaceDialog.Validate.Ok.Message", currentFilename));
box.open();
notifyStatus(BaseMessages.getString(PKG, "MarketplaceDialog.Status.RestartHint"));
return;
@@ -1033,7 +1217,7 @@ public class HopEnvironmentDialog extends Dialog {
} catch (Exception e) {
new ErrorDialog(
shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.Header"),
BaseMessages.getString(PKG, "MarketplaceDialog.Validate.Error"),
e);
}
@@ -1060,12 +1244,12 @@ public class HopEnvironmentDialog extends Dialog {
MarketplaceConfig live = MarketplaceConfig.load();
if (!live.isEnabled()) {
MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"));
+ box.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.Header"));
box.setMessage(BaseMessages.getString(PKG, "MarketplaceDialog.Apply.Disabled"));
box.open();
return;
}
- HopEnvironmentSpec env = HopEnvironmentLoader.load(currentPath);
+ HopInstallSpec env = HopInstallSpecLoader.load(currentFilename, variables());
if (!runApply(env, live, prune)) {
notifyStatus(BaseMessages.getString(PKG, "MarketplaceDialog.Status.Cancelled"));
return;
@@ -1073,8 +1257,7 @@ public class HopEnvironmentDialog extends Dialog {
MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
box.setText(BaseMessages.getString(PKG, "MarketplaceDialog.Apply.Done.Header"));
box.setMessage(
- BaseMessages.getString(
- PKG, "MarketplaceDialog.Apply.Done.Message", currentPath.toString()));
+ BaseMessages.getString(PKG, "MarketplaceDialog.Apply.Done.Message", currentFilename));
box.open();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
@@ -1090,7 +1273,7 @@ public class HopEnvironmentDialog extends Dialog {
e instanceof InvocationTargetException ite && ite.getCause() != null ? ite.getCause() : e;
new ErrorDialog(
shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.Header"),
BaseMessages.getString(PKG, "MarketplaceDialog.Apply.Error"),
cause);
}
@@ -1101,7 +1284,7 @@ public class HopEnvironmentDialog extends Dialog {
*
* @return true when the environment was applied, false when the user cancelled
*/
- private boolean runApply(HopEnvironmentSpec env, MarketplaceConfig live, boolean prune)
+ private boolean runApply(HopInstallSpec env, MarketplaceConfig live, boolean prune)
throws InvocationTargetException, InterruptedException {
EnvironmentApplier applier = new EnvironmentApplier(log, hopHome, live);
AtomicBoolean cancelled = new AtomicBoolean(false);
@@ -1131,11 +1314,10 @@ public class HopEnvironmentDialog extends Dialog {
return !cancelled.get();
}
- private void populateExtraPlugins(HopEnvironmentSpec env, EnvironmentDrift drift)
- throws Exception {
+ private void populateExtraPlugins(HopInstallSpec env, EnvironmentDrift drift) throws Exception {
Set<String> desired = new HashSet<>();
if (env.getPlugins() != null) {
- for (HopEnvironmentSpec.PluginRef ref : env.getPlugins()) {
+ for (HopInstallSpec.PluginRef ref : env.getPlugins()) {
if (ref.getArtifactId() != null) {
desired.add(ref.getArtifactId());
}
@@ -1170,7 +1352,7 @@ public class HopEnvironmentDialog extends Dialog {
// --- repository CRUD ---
private void addRepository() {
- HopEnvironmentSpec.RepositoryRef ref = new HopEnvironmentSpec.RepositoryRef();
+ HopInstallSpec.RepositoryRef ref = new HopInstallSpec.RepositoryRef();
if (editRepositoryDialog(ref, true)) {
addRepoItem(ref);
markDirty();
@@ -1182,7 +1364,7 @@ public class HopEnvironmentDialog extends Dialog {
if (sel == null || sel.length == 0) {
return;
}
- HopEnvironmentSpec.RepositoryRef ref = (HopEnvironmentSpec.RepositoryRef) sel[0].getData();
+ HopInstallSpec.RepositoryRef ref = (HopInstallSpec.RepositoryRef) sel[0].getData();
if (ref == null) {
return;
}
@@ -1195,13 +1377,13 @@ public class HopEnvironmentDialog extends Dialog {
}
}
- private boolean editRepositoryDialog(HopEnvironmentSpec.RepositoryRef ref, boolean isNew) {
+ private boolean editRepositoryDialog(HopInstallSpec.RepositoryRef ref, boolean isNew) {
Shell dialog = new Shell(shell, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
PropsUi.setLook(dialog);
dialog.setText(
BaseMessages.getString(
PKG,
- isNew ? "HopEnvironmentDialog.Repo.Edit.Add" : "HopEnvironmentDialog.Repo.Edit.Edit"));
+ isNew ? "HopInstallSpecEditor.Repo.Edit.Add" : "HopInstallSpecEditor.Repo.Edit.Edit"));
FormLayout layout = new FormLayout();
layout.marginWidth = PropsUi.getFormMargin();
layout.marginHeight = PropsUi.getFormMargin();
@@ -1209,20 +1391,20 @@ public class HopEnvironmentDialog extends Dialog {
int middle = 30;
int margin = PropsUi.getMargin();
- Label wlId = labeled(dialog, "HopEnvironmentDialog.Repo.Column.Id", 0, middle, margin);
+ Label wlId = labeled(dialog, "HopInstallSpecEditor.Repo.Column.Id", 0, middle, margin);
Text wId = textField(dialog, wlId, middle, Const.NVL(ref.getId(), ""));
- Label wlUrl = labeled(dialog, "HopEnvironmentDialog.Repo.Column.Url", wId, middle, margin);
+ Label wlUrl = labeled(dialog, "HopInstallSpecEditor.Repo.Column.Url", wId, middle, margin);
Text wUrl = textField(dialog, wlUrl, middle, Const.NVL(ref.getUrl(), ""));
Label wlUser =
- labeled(dialog, "HopEnvironmentDialog.Repo.Column.Username", wUrl, middle, margin);
+ labeled(dialog, "HopInstallSpecEditor.Repo.Column.Username", wUrl, middle, margin);
Text wUser = textField(dialog, wlUser, middle, Const.NVL(ref.getUsername(), ""));
Label wlPass =
- labeled(dialog, "HopEnvironmentDialog.Repo.Column.Password", wUser, middle, margin);
+ labeled(dialog, "HopInstallSpecEditor.Repo.Column.Password", wUser, middle, margin);
Text wPass = new Text(dialog, SWT.SINGLE | SWT.LEFT | SWT.BORDER | SWT.PASSWORD);
PropsUi.setLook(wPass);
wPass.setText(Const.NVL(ref.getPassword(), ""));
String passwordTooltip =
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Repo.Column.Password.Tooltip");
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Repo.Column.Password.Tooltip");
wlPass.setToolTipText(passwordTooltip);
wPass.setToolTipText(passwordTooltip);
FormData fdPass = new FormData();
@@ -1233,18 +1415,18 @@ public class HopEnvironmentDialog extends Dialog {
final boolean[] ok = {false};
Button wOk = new Button(dialog, SWT.PUSH);
- wOk.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Ok"));
+ wOk.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Ok"));
Button wCancel = new Button(dialog, SWT.PUSH);
- wCancel.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Cancel"));
+ wCancel.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Cancel"));
wCancel.addListener(SWT.Selection, e -> dialog.dispose());
wOk.addListener(
SWT.Selection,
e -> {
if (StringUtils.isBlank(wId.getText()) || StringUtils.isBlank(wUrl.getText())) {
MessageBox box = new MessageBox(dialog, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.Header"));
+ box.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.Header"));
box.setMessage(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.RepoIdUrl"));
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.RepoIdUrl"));
box.open();
return;
}
@@ -1274,8 +1456,8 @@ public class HopEnvironmentDialog extends Dialog {
return;
}
MessageBox confirm = new MessageBox(shell, SWT.YES | SWT.NO | SWT.ICON_QUESTION);
- confirm.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.ImportRepos.Header"));
- confirm.setMessage(BaseMessages.getString(PKG, "HopEnvironmentDialog.ImportRepos.Message"));
+ confirm.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.ImportRepos.Header"));
+ confirm.setMessage(BaseMessages.getString(PKG, "HopInstallSpecEditor.ImportRepos.Message"));
if (confirm.open() != SWT.YES) {
return;
}
@@ -1284,7 +1466,7 @@ public class HopEnvironmentDialog extends Dialog {
if (repo == null || !repo.isEnabled()) {
continue;
}
- HopEnvironmentSpec.RepositoryRef ref = new HopEnvironmentSpec.RepositoryRef();
+ HopInstallSpec.RepositoryRef ref = new HopInstallSpec.RepositoryRef();
ref.setId(repo.getId());
ref.setUrl(repo.getUrl());
ref.setUsername(repo.getUsername());
@@ -1295,8 +1477,8 @@ public class HopEnvironmentDialog extends Dialog {
} catch (Exception e) {
new ErrorDialog(
shell,
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.Header"),
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Error.ImportRepos"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.Header"),
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Error.ImportRepos"),
e);
}
}
@@ -1304,7 +1486,7 @@ public class HopEnvironmentDialog extends Dialog {
// --- plugin CRUD ---
private void addPlugin() {
- HopEnvironmentSpec.PluginRef ref = new HopEnvironmentSpec.PluginRef();
+ HopInstallSpec.PluginRef ref = new HopInstallSpec.PluginRef();
ref.setVersion(StringUtils.trimToNull(wHopVersion.getText()));
if (editPluginDialog(ref, true)) {
addPluginItem(ref);
@@ -1317,7 +1499,7 @@ public class HopEnvironmentDialog extends Dialog {
if (sel == null || sel.length == 0) {
return;
}
- HopEnvironmentSpec.PluginRef ref = (HopEnvironmentSpec.PluginRef) sel[0].getData();
+ HopInstallSpec.PluginRef ref = (HopInstallSpec.PluginRef) sel[0].getData();
if (ref == null) {
return;
}
@@ -1329,15 +1511,15 @@ public class HopEnvironmentDialog extends Dialog {
}
}
- private boolean editPluginDialog(HopEnvironmentSpec.PluginRef ref, boolean isNew) {
+ private boolean editPluginDialog(HopInstallSpec.PluginRef ref, boolean isNew) {
Shell dialog = new Shell(shell, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
PropsUi.setLook(dialog);
dialog.setText(
BaseMessages.getString(
PKG,
isNew
- ? "HopEnvironmentDialog.Plugin.Edit.Add"
- : "HopEnvironmentDialog.Plugin.Edit.Edit"));
+ ? "HopInstallSpecEditor.Plugin.Edit.Add"
+ : "HopInstallSpecEditor.Plugin.Edit.Edit"));
FormLayout layout = new FormLayout();
layout.marginWidth = PropsUi.getFormMargin();
layout.marginHeight = PropsUi.getFormMargin();
@@ -1346,29 +1528,29 @@ public class HopEnvironmentDialog extends Dialog {
int margin = PropsUi.getMargin();
Label wlGroup =
- labeled(dialog, "HopEnvironmentDialog.Plugin.Column.GroupId", 0, middle, margin);
+ labeled(dialog, "HopInstallSpecEditor.Plugin.Column.GroupId", 0, middle, margin);
Text wGroup = textField(dialog, wlGroup, middle, Const.NVL(ref.getGroupId(), ""));
Label wlArt =
- labeled(dialog, "HopEnvironmentDialog.Plugin.Column.ArtifactId", wGroup, middle, margin);
+ labeled(dialog, "HopInstallSpecEditor.Plugin.Column.ArtifactId", wGroup, middle, margin);
Text wArt = textField(dialog, wlArt, middle, Const.NVL(ref.getArtifactId(), ""));
Label wlVer =
- labeled(dialog, "HopEnvironmentDialog.Plugin.Column.Version", wArt, middle, margin);
+ labeled(dialog, "HopInstallSpecEditor.Plugin.Column.Version", wArt, middle, margin);
Text wVer = textField(dialog, wlVer, middle, Const.NVL(ref.getVersion(), ""));
final boolean[] ok = {false};
Button wOk = new Button(dialog, SWT.PUSH);
- wOk.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Ok"));
+ wOk.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Ok"));
Button wCancel = new Button(dialog, SWT.PUSH);
- wCancel.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Cancel"));
+ wCancel.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Cancel"));
wCancel.addListener(SWT.Selection, e -> dialog.dispose());
wOk.addListener(
SWT.Selection,
e -> {
if (StringUtils.isBlank(wArt.getText())) {
MessageBox box = new MessageBox(dialog, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.Header"));
+ box.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.Header"));
box.setMessage(
- BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.PluginArtifact"));
+ BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.PluginArtifact"));
box.open();
return;
}
@@ -1393,7 +1575,7 @@ public class HopEnvironmentDialog extends Dialog {
private void addPluginsFromCatalog() {
Set<String> existing = new HashSet<>();
for (TableItem item : wPlugins.table.getItems()) {
- if (item.getData() instanceof HopEnvironmentSpec.PluginRef ref
+ if (item.getData() instanceof HopInstallSpec.PluginRef ref
&& StringUtils.isNotBlank(ref.getArtifactId())) {
existing.add(ref.getArtifactId());
}
@@ -1404,7 +1586,7 @@ public class HopEnvironmentDialog extends Dialog {
}
String defaultVersion = StringUtils.trimToNull(wHopVersion.getText());
for (OptionalPluginInfo info : chosen) {
- HopEnvironmentSpec.PluginRef ref = new HopEnvironmentSpec.PluginRef();
+ HopInstallSpec.PluginRef ref = new HopInstallSpec.PluginRef();
ref.setArtifactId(info.getArtifactId());
ref.setVersion(defaultVersion);
addPluginItem(ref);
@@ -1415,7 +1597,7 @@ public class HopEnvironmentDialog extends Dialog {
// --- dependency CRUD ---
private void addDependency() {
- HopEnvironmentSpec.DependencyRef ref = new HopEnvironmentSpec.DependencyRef();
+ HopInstallSpec.DependencyRef ref = new HopInstallSpec.DependencyRef();
ref.setTarget("lib/jdbc");
if (editDependencyDialog(ref, true)) {
addDepItem(ref);
@@ -1428,7 +1610,7 @@ public class HopEnvironmentDialog extends Dialog {
if (sel == null || sel.length == 0) {
return;
}
- HopEnvironmentSpec.DependencyRef ref = (HopEnvironmentSpec.DependencyRef) sel[0].getData();
+ HopInstallSpec.DependencyRef ref = (HopInstallSpec.DependencyRef) sel[0].getData();
if (ref == null) {
return;
}
@@ -1441,13 +1623,13 @@ public class HopEnvironmentDialog extends Dialog {
}
}
- private boolean editDependencyDialog(HopEnvironmentSpec.DependencyRef ref, boolean isNew) {
+ private boolean editDependencyDialog(HopInstallSpec.DependencyRef ref, boolean isNew) {
Shell dialog = new Shell(shell, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
PropsUi.setLook(dialog);
dialog.setText(
BaseMessages.getString(
PKG,
- isNew ? "HopEnvironmentDialog.Dep.Edit.Add" : "HopEnvironmentDialog.Dep.Edit.Edit"));
+ isNew ? "HopInstallSpecEditor.Dep.Edit.Add" : "HopInstallSpecEditor.Dep.Edit.Edit"));
FormLayout layout = new FormLayout();
layout.marginWidth = PropsUi.getFormMargin();
layout.marginHeight = PropsUi.getFormMargin();
@@ -1455,30 +1637,30 @@ public class HopEnvironmentDialog extends Dialog {
int middle = 30;
int margin = PropsUi.getMargin();
- Label wlGroup = labeled(dialog, "HopEnvironmentDialog.Dep.Column.GroupId", 0, middle, margin);
+ Label wlGroup = labeled(dialog, "HopInstallSpecEditor.Dep.Column.GroupId", 0, middle, margin);
Text wGroup = textField(dialog, wlGroup, middle, Const.NVL(ref.getGroupId(), ""));
Label wlArt =
- labeled(dialog, "HopEnvironmentDialog.Dep.Column.ArtifactId", wGroup, middle, margin);
+ labeled(dialog, "HopInstallSpecEditor.Dep.Column.ArtifactId", wGroup, middle, margin);
Text wArt = textField(dialog, wlArt, middle, Const.NVL(ref.getArtifactId(), ""));
- Label wlVer = labeled(dialog, "HopEnvironmentDialog.Dep.Column.Version", wArt, middle, margin);
+ Label wlVer = labeled(dialog, "HopInstallSpecEditor.Dep.Column.Version", wArt, middle, margin);
Text wVer = textField(dialog, wlVer, middle, Const.NVL(ref.getVersion(), ""));
Label wlTarget =
- labeled(dialog, "HopEnvironmentDialog.Dep.Column.Target", wVer, middle, margin);
+ labeled(dialog, "HopInstallSpecEditor.Dep.Column.Target", wVer, middle, margin);
Text wTarget = textField(dialog, wlTarget, middle, Const.NVL(ref.getTarget(), "lib/jdbc"));
final boolean[] ok = {false};
Button wOk = new Button(dialog, SWT.PUSH);
- wOk.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Ok"));
+ wOk.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Ok"));
Button wCancel = new Button(dialog, SWT.PUSH);
- wCancel.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Button.Cancel"));
+ wCancel.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Button.Cancel"));
wCancel.addListener(SWT.Selection, e -> dialog.dispose());
wOk.addListener(
SWT.Selection,
e -> {
if (StringUtils.isAnyBlank(wGroup.getText(), wArt.getText(), wVer.getText())) {
MessageBox box = new MessageBox(dialog, SWT.OK | SWT.ICON_WARNING);
- box.setText(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.Header"));
- box.setMessage(BaseMessages.getString(PKG, "HopEnvironmentDialog.Validation.DepGav"));
+ box.setText(BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.Header"));
+ box.setMessage(BaseMessages.getString(PKG, "HopInstallSpecEditor.Validation.DepGav"));
box.open();
return;
}
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopInstallSpecFileType.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopInstallSpecFileType.java
new file mode 100644
index 0000000000..1a3921d973
--- /dev/null
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopInstallSpecFileType.java
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hop.marketplace.gui;
+
+import org.apache.hop.core.exception.HopException;
+import org.apache.hop.core.variables.IVariables;
+import org.apache.hop.marketplace.env.HopInstallSpecFiles;
+import org.apache.hop.ui.hopgui.HopGui;
+import org.apache.hop.ui.hopgui.file.HopFileTypeBase;
+import org.apache.hop.ui.hopgui.file.HopFileTypePlugin;
+import org.apache.hop.ui.hopgui.file.IHopFileType;
+import org.apache.hop.ui.hopgui.file.IHopFileTypeHandler;
+import org.apache.hop.ui.hopgui.file.empty.EmptyHopFileTypeHandler;
+import org.apache.hop.ui.hopgui.perspective.explorer.ExplorerFile;
+import org.apache.hop.ui.hopgui.perspective.explorer.ExplorerPerspective;
+import org.apache.hop.ui.hopgui.perspective.explorer.file.capabilities.FileTypeCapabilities;
+import org.apache.hop.ui.hopgui.perspective.explorer.file.types.base.BaseExplorerFileType;
+
+@HopFileTypePlugin(
+ id = "HopInstallSpecFileType",
+ name = "Hop install spec",
+ description = "Hop install spec (hop-env.yaml) editor",
+ image = "ui/images/marketplace.svg")
+public class HopInstallSpecFileType extends BaseExplorerFileType<HopInstallSpecFileTypeHandler> {
+
+ public HopInstallSpecFileType() {
+ super(
+ "Hop install spec",
+ ".yaml",
+ HopInstallSpecFiles.WELL_KNOWN_NAMES.toArray(new String[0]),
+ new String[] {
+ "Hop install spec", "Hop install spec", "Hop install spec", "Hop install spec"
+ },
+ FileTypeCapabilities.getCapabilities(
+ IHopFileType.CAPABILITY_SAVE,
+ IHopFileType.CAPABILITY_SAVE_AS,
+ IHopFileType.CAPABILITY_CLOSE,
+ IHopFileType.CAPABILITY_FILE_HISTORY));
+ }
+
+ @Override
+ public boolean isHandledBy(String filename, boolean checkContent) throws HopException {
+ return HopInstallSpecFiles.isWellKnown(filename);
+ }
+
+ @Override
+ public HopInstallSpecFileTypeHandler createFileTypeHandler(
+ HopGui hopGui, ExplorerPerspective perspective, ExplorerFile file) {
+ return new HopInstallSpecFileTypeHandler(hopGui, perspective, file);
+ }
+
+ @Override
+ public IHopFileTypeHandler newFile(HopGui hopGui, IVariables parentVariableSpace)
+ throws HopException {
+ return new EmptyHopFileTypeHandler();
+ }
+
+ /**
+ * True when {@code filename} is a YAML/JSON file that can be opened as an install spec, including
+ * custom names such as {@code deploy/plugins.yaml}.
+ */
+ public static boolean isYamlOrJson(String filename) {
+ String ext = HopFileTypeBase.extractExtension(filename);
+ return "yaml".equals(ext) || "yml".equals(ext) || "json".equals(ext);
+ }
+}
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopInstallSpecFileTypeHandler.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopInstallSpecFileTypeHandler.java
new file mode 100644
index 0000000000..383ebf8846
--- /dev/null
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/HopInstallSpecFileTypeHandler.java
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hop.marketplace.gui;
+
+import org.apache.hop.core.exception.HopException;
+import org.apache.hop.ui.hopgui.HopGui;
+import org.apache.hop.ui.hopgui.perspective.explorer.ExplorerFile;
+import org.apache.hop.ui.hopgui.perspective.explorer.ExplorerPerspective;
+import org.apache.hop.ui.hopgui.perspective.explorer.file.types.base.BaseExplorerFileTypeHandler;
+import org.eclipse.swt.widgets.Composite;
+
+public class HopInstallSpecFileTypeHandler extends BaseExplorerFileTypeHandler {
+
+ private HopInstallSpecEditor editor;
+
+ public HopInstallSpecFileTypeHandler(
+ HopGui hopGui, ExplorerPerspective perspective, ExplorerFile explorerFile) {
+ super(hopGui, perspective, explorerFile);
+ }
+
+ @Override
+ public void renderFile(Composite composite) {
+ editor =
+ HopInstallSpecEditor.embed(
+ composite, explorerFile.getFilename(), message -> hopGui.getLog().logBasic(message));
+ editor.setExplorerMode(true);
+ editor.setDirtyListener(
+ () -> {
+ setChanged();
+ updateGui();
+ });
+ }
+
+ @Override
+ public void save() throws HopException {
+ if (editor == null) {
+ return;
+ }
+ if (!editor.saveCurrent()) {
+ return;
+ }
+ if (editor.getCurrentFilename() != null) {
+ setFilename(editor.getCurrentFilename());
+ }
+ clearChanged();
+ updateGui();
+ }
+
+ @Override
+ public void saveAs(String filename) throws HopException {
+ if (editor == null) {
+ return;
+ }
+ editor.setCurrentFilename(filename);
+ if (!editor.saveCurrent()) {
+ return;
+ }
+ setFilename(editor.getCurrentFilename());
+ hopGui.fileRefreshDelegate.register(getFilename(), this);
+ clearChanged();
+ updateGui();
+ perspective.refresh();
+ }
+
+ @Override
+ public void reload() {
+ if (editor != null) {
+ editor.reloadFromDisk();
+ }
+ }
+}
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/MarketplaceDialog.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/MarketplaceDialog.java
index e9d8c31c30..c1be4e5d9c 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/MarketplaceDialog.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/MarketplaceDialog.java
@@ -18,7 +18,6 @@
package org.apache.hop.marketplace.gui;
import java.lang.reflect.InvocationTargetException;
-import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.LinkedHashMap;
@@ -40,6 +39,7 @@ import org.apache.hop.marketplace.command.MarketplaceCommand;
import org.apache.hop.marketplace.config.MarketplaceConfig;
import org.apache.hop.marketplace.config.MarketplaceRepository;
import org.apache.hop.marketplace.env.EnvironmentApplier;
+import org.apache.hop.marketplace.env.HopInstallSpecFiles;
import org.apache.hop.marketplace.install.HopHome;
import org.apache.hop.marketplace.install.InstallReceipt;
import org.apache.hop.marketplace.install.PluginInstaller;
@@ -53,6 +53,7 @@ import org.apache.hop.ui.core.gui.GuiResource;
import org.apache.hop.ui.core.gui.WindowProperty;
import org.apache.hop.ui.core.widget.ColumnInfo;
import org.apache.hop.ui.core.widget.TableView;
+import org.apache.hop.ui.hopgui.HopGui;
import org.apache.hop.ui.pipeline.transform.BaseTransformDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
@@ -119,14 +120,14 @@ public class MarketplaceDialog extends Dialog {
* @param initialSearch search box content on open, or null/blank to list everything
*/
public MarketplaceDialog(Shell parent, String initialSearch) {
- super(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX);
+ super(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX);
this.props = PropsUi.getInstance();
this.initialSearch = initialSearch;
}
public void open() {
Shell parent = getParent();
- shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX);
+ shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX);
PropsUi.setLook(shell);
shell.setImage(GuiResource.getInstance().getImageMarketplace());
shell.setText(BaseMessages.getString(PKG, "MarketplaceDialog.Shell.Title"));
@@ -341,8 +342,8 @@ public class MarketplaceDialog extends Dialog {
private void createEnvironmentTab(CTabFolder folder) {
CTabItem tab = new CTabItem(folder, SWT.NONE);
- tab.setText(BaseMessages.getString(PKG, "MarketplaceDialog.Tab.Environment"));
- tab.setImage(GuiResource.getInstance().getImageClientEnvironment());
+ tab.setText(BaseMessages.getString(PKG, "MarketplaceDialog.Tab.InstallSpec"));
+ tab.setImage(GuiResource.getInstance().getImageMarketplace());
Composite comp = new Composite(folder, SWT.NONE);
PropsUi.setLook(comp);
FormLayout layout = new FormLayout();
@@ -351,8 +352,7 @@ public class MarketplaceDialog extends Dialog {
comp.setLayout(layout);
tab.setControl(comp);
- // Full hop-env editor (formerly HopEnvironmentDialog modal)
- HopEnvironmentDialog.embed(
+ HopInstallSpecEditor.embed(
comp,
resolveDefaultEnvPath(),
msg -> {
@@ -362,22 +362,33 @@ public class MarketplaceDialog extends Dialog {
});
}
- private Path resolveDefaultEnvPath() {
- // Last file edited in the marketplace environment editor (audit list, most-recent first)
+ private String resolveDefaultEnvPath() {
String last =
org.apache.hop.ui.hopgui.shared.AuditManagerGuiUtil.getLastUsedValue(
- HopEnvironmentDialog.AUDIT_TYPE_ENV_FILES);
- if (StringUtils.isNotBlank(last)) {
- Path lastPath = Path.of(last.trim()).toAbsolutePath().normalize();
- if (Files.isRegularFile(lastPath)) {
- return lastPath;
+ HopInstallSpecEditor.AUDIT_TYPE_ENV_FILES);
+ if (HopInstallSpecFiles.exists(last, hopGuiVariables())) {
+ return last;
+ }
+ if (hopHome != null) {
+ String fullClient = hopHome.resolve("full-client-env.yaml").toString();
+ if (HopInstallSpecFiles.exists(fullClient, hopGuiVariables())) {
+ return fullClient;
}
}
- Path fullClient = hopHome.resolve("full-client-env.yaml");
- if (Files.isRegularFile(fullClient)) {
- return fullClient;
+ Path discovered = EnvironmentApplier.resolveEnvironmentFile(hopHome, null);
+ return discovered == null ? null : discovered.toString();
+ }
+
+ private org.apache.hop.core.variables.IVariables hopGuiVariables() {
+ try {
+ HopGui hopGui = HopGui.getInstance();
+ if (hopGui != null && hopGui.getVariables() != null) {
+ return hopGui.getVariables();
+ }
+ } catch (Exception ignored) {
+ // dialog constructed outside Hop Gui
}
- return EnvironmentApplier.resolveEnvironmentFile(hopHome, null);
+ return Variables.getADefaultVariableSpace();
}
private void createRepositoriesTab(CTabFolder folder) {
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/MarketplaceGuiPlugin.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/MarketplaceGuiPlugin.java
index b4b4752e27..91bd213e19 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/MarketplaceGuiPlugin.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/MarketplaceGuiPlugin.java
@@ -20,8 +20,11 @@ package org.apache.hop.marketplace.gui;
import org.apache.hop.core.gui.plugin.GuiPlugin;
import org.apache.hop.core.gui.plugin.menu.GuiMenuElement;
import org.apache.hop.core.gui.plugin.toolbar.GuiToolbarElement;
+import org.apache.hop.core.vfs.HopVfs;
import org.apache.hop.ui.core.dialog.ErrorDialog;
import org.apache.hop.ui.hopgui.HopGui;
+import org.apache.hop.ui.hopgui.perspective.explorer.ExplorerFile;
+import org.apache.hop.ui.hopgui.perspective.explorer.ExplorerPerspective;
/** GUI entry points for the Hop plugin marketplace. */
@GuiPlugin
@@ -68,4 +71,44 @@ public class MarketplaceGuiPlugin {
new ErrorDialog(hopGui.getShell(), "Marketplace", "Unable to open the marketplace dialog", e);
}
}
+
+ public static final String CONTEXT_MENU_EDIT_AS_INSTALL_SPEC =
+ "Marketplace-ContextMenu-10250-EditAsInstallSpec";
+
+ @GuiMenuElement(
+ root = ExplorerPerspective.GUI_PLUGIN_CONTEXT_MENU_PARENT_ID,
+ id = CONTEXT_MENU_EDIT_AS_INSTALL_SPEC,
+ label = "i18n::MarketplaceGuiPlugin.Context.EditAsInstallSpec",
+ image = "ui/images/marketplace.svg",
+ parentId = ExplorerPerspective.GUI_PLUGIN_CONTEXT_MENU_PARENT_ID)
+ public void editAsInstallSpec() {
+ ExplorerPerspective perspective = ExplorerPerspective.getInstance();
+ ExplorerFile explorerFile = perspective.getSelectedFile();
+ if (explorerFile == null || explorerFile.getFilename() == null) {
+ return;
+ }
+ String filename = explorerFile.getFilename();
+ try {
+ if (HopVfs.getFileObject(filename).isFolder()) {
+ return;
+ }
+ } catch (Exception e) {
+ HopGui.getInstance().getLog().logError("Error resolving selected item", e);
+ return;
+ }
+ if (!HopInstallSpecFileType.isYamlOrJson(filename)) {
+ return;
+ }
+ HopGui hopGui = HopGui.getInstance();
+ hopGui
+ .getDisplay()
+ .asyncExec(
+ () -> {
+ try {
+ new HopInstallSpecFileType().openFile(hopGui, filename, hopGui.getVariables());
+ } catch (Exception e) {
+ hopGui.getLog().logError("Error opening file as Hop install spec", e);
+ }
+ });
+ }
}
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/WelcomeMarketplace.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/WelcomeMarketplace.java
index ca272ed41a..aba9a820fe 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/WelcomeMarketplace.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/gui/WelcomeMarketplace.java
@@ -106,7 +106,7 @@ public class WelcomeMarketplace {
type = GuiElementType.LINK,
label =
"\nTo install all optional plugins that used to ship in the fat client:\n\n"
- + " • GUI: open the marketplace, select full-client-env.yaml as the environment file "
+ + " • GUI: open the marketplace, Install spec tab, select full-client-env.yaml "
+ "(pre-filled when present at the install root), click Apply, then restart Hop.\n"
+ " • CLI (from the Hop install directory):\n\n"
+ " ./hop marketplace apply -f full-client-env.yaml\n\n"
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/HopRunEnvironmentCheckExtensionPoint.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/HopRunEnvironmentCheckExtensionPoint.java
index 7d9cb5c9fa..237895fd5c 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/HopRunEnvironmentCheckExtensionPoint.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/HopRunEnvironmentCheckExtensionPoint.java
@@ -27,8 +27,8 @@ import org.apache.hop.core.variables.IVariables;
import org.apache.hop.marketplace.config.MarketplaceConfig;
import org.apache.hop.marketplace.env.EnvironmentApplier;
import org.apache.hop.marketplace.env.EnvironmentDrift;
-import org.apache.hop.marketplace.env.HopEnvironmentLoader;
-import org.apache.hop.marketplace.env.HopEnvironmentSpec;
+import org.apache.hop.marketplace.env.HopInstallSpec;
+import org.apache.hop.marketplace.env.HopInstallSpecLoader;
import org.apache.hop.marketplace.install.HopHome;
import org.apache.hop.run.HopRunBase;
@@ -62,14 +62,14 @@ public class HopRunEnvironmentCheckExtensionPoint implements IExtensionPoint<Hop
return;
}
- HopEnvironmentSpec env = HopEnvironmentLoader.load(envFile);
+ HopInstallSpec env = HopInstallSpecLoader.load(envFile);
boolean enforce =
env.isEnforceOnRun()
|| "true".equalsIgnoreCase(System.getProperty("hop.env.enforce", "false"))
|| "Y".equalsIgnoreCase(System.getProperty("hop.env.enforce", "N"));
if (!enforce) {
log.logDetailed(
- "Found environment file "
+ "Found install spec file "
+ envFile
+ " (enforceOnRun=false); skipping drift check. Use hop marketplace validate -f "
+ envFile.getFileName());
@@ -85,14 +85,14 @@ public class HopRunEnvironmentCheckExtensionPoint implements IExtensionPoint<Hop
|| !drift.getMissingDependencies().isEmpty();
if (hard) {
throw new HopException(
- "FATAL: Environment drift detected against "
+ "FATAL: Install spec drift detected against "
+ envFile
+ ":\n"
+ drift.formatReport()
+ "Run 'hop marketplace apply -f "
+ envFile
- + "' to fix your environment.");
+ + "' to fix the local install.");
}
- log.logBasic("Environment file " + envFile + " matches local install.");
+ log.logBasic("Install spec file " + envFile + " matches local install.");
}
}
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/LifecycleEnvironmentDialogTabsExtensionPoint.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/LifecycleEnvironmentDialogTabsExtensionPoint.java
index b5eb8e22d2..6dec21d32b 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/LifecycleEnvironmentDialogTabsExtensionPoint.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/LifecycleEnvironmentDialogTabsExtensionPoint.java
@@ -17,8 +17,6 @@
package org.apache.hop.marketplace.xp;
-import java.nio.file.Files;
-import java.nio.file.Path;
import org.apache.commons.lang3.StringUtils;
import org.apache.hop.core.AttributesContext;
import org.apache.hop.core.Const;
@@ -28,8 +26,9 @@ import org.apache.hop.core.extension.IExtensionPoint;
import org.apache.hop.core.logging.ILogChannel;
import org.apache.hop.core.variables.IVariables;
import org.apache.hop.i18n.BaseMessages;
+import org.apache.hop.marketplace.env.HopInstallSpecFiles;
import org.apache.hop.marketplace.env.MarketplaceAttributes;
-import org.apache.hop.marketplace.gui.HopEnvironmentDialog;
+import org.apache.hop.marketplace.gui.HopInstallSpecEditor;
import org.apache.hop.marketplace.gui.MarketplaceGuiPlugin;
import org.apache.hop.ui.core.PropsUi;
import org.apache.hop.ui.core.dialog.AttributesDialogExtension;
@@ -48,12 +47,13 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
/**
- * Contributes a Marketplace / Plugins tab on the lifecycle environment dialog. Settings are stored
- * under {@link MarketplaceAttributes#GROUP} on the shared {@link AttributesContext}.
+ * Contributes a Marketplace plugins tab on the lifecycle environment dialog, including a pointer to
+ * a Hop install spec file. Settings are stored under {@link MarketplaceAttributes#GROUP} on the
+ * shared {@link AttributesContext}.
*/
@ExtensionPoint(
id = "MarketplaceLifecycleEnvironmentDialogTabs",
- description = "Add marketplace plugin policy tab to the lifecycle environment dialog",
+ description = "Add marketplace install-spec policy tab to the lifecycle environment dialog",
extensionPointId = "HopGuiLifecycleEnvironmentDialogTabs")
public class LifecycleEnvironmentDialogTabsExtensionPoint
implements IExtensionPoint<AttributesDialogExtension> {
@@ -116,18 +116,14 @@ public class LifecycleEnvironmentDialogTabsExtensionPoint
wEditEnv.addListener(
SWT.Selection,
e -> {
- Path initial = null;
- String text = wEnvFile.getText();
- if (StringUtils.isNotBlank(text)) {
- String resolved = variables != null ? variables.resolve(text.trim()) : text.trim();
- Path candidate = Path.of(resolved).toAbsolutePath().normalize();
- if (Files.isRegularFile(candidate)) {
- initial = candidate;
- }
+ String initial = StringUtils.trimToNull(wEnvFile.getText());
+ if (initial != null && !HopInstallSpecFiles.exists(initial, variables)) {
+ initial = null;
}
- Path saved = new HopEnvironmentDialog(extension.getShell(), initial).open();
- if (saved != null) {
- wEnvFile.setText(saved.toString());
+ HopInstallSpecEditor editor = new HopInstallSpecEditor(extension.getShell(), initial);
+ editor.open();
+ if (editor.wasSaved() && StringUtils.isNotBlank(editor.getCurrentFilename())) {
+ wEnvFile.setText(editor.getCurrentFilename());
}
});
@@ -144,6 +140,8 @@ public class LifecycleEnvironmentDialogTabsExtensionPoint
BaseDialog.presentFileDialog(
false,
extension.getShell(),
+ null,
+ variables,
new String[] {"*.yaml;*.yml;*.json", "*.*"},
new String[] {
BaseMessages.getString(PKG, "MarketplaceDialog.EnvFile.Filter.Env"),
diff --git a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/ProjectEnvironmentAfterEnabledExtensionPoint.java b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/ProjectEnvironmentAfterEnabledExtensionPoint.java
index 1e9d03606a..c9d0090a0a 100644
--- a/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/ProjectEnvironmentAfterEnabledExtensionPoint.java
+++ b/plugins/misc/marketplace/src/main/java/org/apache/hop/marketplace/xp/ProjectEnvironmentAfterEnabledExtensionPoint.java
@@ -23,6 +23,7 @@ import java.nio.file.Path;
import java.util.HashSet;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.vfs2.FileObject;
import org.apache.hop.core.AttributesContext;
import org.apache.hop.core.Const;
import org.apache.hop.core.exception.HopException;
@@ -32,11 +33,13 @@ import org.apache.hop.core.logging.ILogChannel;
import org.apache.hop.core.security.HopSecurity;
import org.apache.hop.core.security.Permission;
import org.apache.hop.core.variables.IVariables;
+import org.apache.hop.core.vfs.HopVfs;
import org.apache.hop.marketplace.config.MarketplaceConfig;
import org.apache.hop.marketplace.env.EnvironmentApplier;
import org.apache.hop.marketplace.env.EnvironmentDrift;
-import org.apache.hop.marketplace.env.HopEnvironmentLoader;
-import org.apache.hop.marketplace.env.HopEnvironmentSpec;
+import org.apache.hop.marketplace.env.HopInstallSpec;
+import org.apache.hop.marketplace.env.HopInstallSpecFiles;
+import org.apache.hop.marketplace.env.HopInstallSpecLoader;
import org.apache.hop.marketplace.env.MarketplaceAttributes;
import org.apache.hop.marketplace.install.HopHome;
import org.apache.hop.marketplace.install.PluginInstaller;
@@ -151,7 +154,7 @@ public class ProjectEnvironmentAfterEnabledExtensionPoint
}
MarketplaceConfig config = MarketplaceConfig.load();
- HopEnvironmentSpec env = HopEnvironmentLoader.load(envFile);
+ HopInstallSpec env = HopInstallSpecLoader.load(envFile);
EnvironmentApplier applier = new EnvironmentApplier(log, hopHome, config);
EnvironmentDrift drift = applier.validate(env);
@@ -261,22 +264,21 @@ public class ProjectEnvironmentAfterEnabledExtensionPoint
AttributesContext context, IVariables variables, Path hopHome) {
String explicit = MarketplaceAttributes.envFile(context);
if (StringUtils.isNotBlank(explicit)) {
- String resolved = variables != null ? variables.resolve(explicit.trim()) : explicit.trim();
- Path path = Path.of(resolved).toAbsolutePath().normalize();
- if (Files.isRegularFile(path)) {
- return path;
+ Path found = existingSpecPath(explicit.trim(), variables);
+ if (found != null) {
+ return found;
}
}
// Project home hop-env.yaml
if (StringUtils.isNotBlank(context.getProjectHome())) {
- Path candidate = Path.of(context.getProjectHome()).resolve("hop-env.yaml");
- if (Files.isRegularFile(candidate)) {
- return candidate.toAbsolutePath().normalize();
+ Path yaml = existingSpecPath(context.getProjectHome() + "/hop-env.yaml", variables);
+ if (yaml != null) {
+ return yaml;
}
- candidate = Path.of(context.getProjectHome()).resolve("hop-env.yml");
- if (Files.isRegularFile(candidate)) {
- return candidate.toAbsolutePath().normalize();
+ Path yml = existingSpecPath(context.getProjectHome() + "/hop-env.yml", variables);
+ if (yml != null) {
+ return yml;
}
}
@@ -284,11 +286,37 @@ public class ProjectEnvironmentAfterEnabledExtensionPoint
return EnvironmentApplier.resolveEnvironmentFile(hopHome, varFile);
}
- private static void populateExtraPlugins(
- Path hopHome, HopEnvironmentSpec env, EnvironmentDrift drift) throws Exception {
+ private static Path existingSpecPath(String filename, IVariables variables) {
+ if (!HopInstallSpecFiles.exists(filename, variables)) {
+ return null;
+ }
+ try {
+ String resolved = HopInstallSpecFiles.resolve(filename, variables);
+ FileObject fileObject = HopVfs.getFileObject(resolved, variables);
+ String local = HopVfs.getFilename(fileObject);
+ if (StringUtils.isNotBlank(local)) {
+ Path path = Path.of(local);
+ if (Files.isRegularFile(path)) {
+ return path.toAbsolutePath().normalize();
+ }
+ }
+ } catch (Exception e) {
+ // Fall through to java.nio for local paths that Path.of can still see.
+ }
+ try {
+ String resolved = HopInstallSpecFiles.resolve(filename, variables);
+ Path path = Path.of(resolved).toAbsolutePath().normalize();
+ return Files.isRegularFile(path) ? path : null;
+ } catch (Exception e) {
+ return null;
+ }
+ }
+
+ private static void populateExtraPlugins(Path hopHome, HopInstallSpec env, EnvironmentDrift drift)
+ throws Exception {
Set<String> desired = new HashSet<>();
if (env.getPlugins() != null) {
- for (HopEnvironmentSpec.PluginRef ref : env.getPlugins()) {
+ for (HopInstallSpec.PluginRef ref : env.getPlugins()) {
if (ref.getArtifactId() != null) {
desired.add(ref.getArtifactId());
}
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_de_DE.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_de_DE.properties
index 52de1d2ec4..56831da30d 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_de_DE.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_de_DE.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Marketplace-Plugins
-MarketplaceLifecycleEnv.Help=Der Plugin-Satz wird in einer hop-env-Datei definiert. Diese Optionen steuern, wann Hop diese Datei für diese Lifecycle-Umgebung prüft (in der Entwicklung locker; in Produktion streng).
-MarketplaceLifecycleEnv.EnvFile.Label=Umgebungsdatei
+MarketplaceLifecycleEnv.Help=Der Plugin-Satz wird in einer Hop-Installationsspezifikation (hop-env.yaml) definiert, nicht in dieser Lifecycle-Umgebung. Diese Optionen steuern, wann Hop diese Spezifikation für diese Umgebung prüft (in der Entwicklung locker; in Produktion streng).
+MarketplaceLifecycleEnv.EnvFile.Label=Installationsspezifikation
MarketplaceLifecycleEnv.Button.Browse=Durchsuchen…
MarketplaceLifecycleEnv.Button.EditEnv=Bearbeiten…
MarketplaceLifecycleEnv.OnEnable.Label=Beim Aktivieren
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: keine Pr\u00C3\u00BCfung; warn: Protokoll/Dialog bei Abweichung; enforce: Aktivierung bei Abweichung fehlschlagen lassen
MarketplaceLifecycleEnv.Strict.Label=Streng (fehlschlagen, wenn zusätzliche Marketplace-Plugins installiert sind)
-MarketplaceLifecycleEnv.Strict.Tooltip=Beim Validieren auch Marketplace-Plugins mit Receipt, die nicht in der Env-Datei stehen, als Abweichung werten
+MarketplaceLifecycleEnv.Strict.Tooltip=Beim Validieren auch Marketplace-Plugins mit Receipt, die nicht in der Installationsspezifikation stehen, als Abweichung werten
MarketplaceLifecycleEnv.AutoApply.Label=Fehlende Plugins beim Aktivieren automatisch anwenden
MarketplaceLifecycleEnv.AutoApply.Tooltip=Wenn aktiviert, wird marketplace apply für fehlende Plugins ausgeführt (nur auf kontrollierten Systemen; standardmäßig aus)
MarketplaceDialog.Shell.Title=Plugin-Marketplace
MarketplaceDialog.Tab.Plugins=Plugins
MarketplaceDialog.Tab.Environment=Umgebung
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Repositories
MarketplaceDialog.Repository.Label=Primäres Repository
MarketplaceDialog.Repository.SetPrimary.Error=Primäres Repository konnte nicht gesetzt werden
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Passwort
ManageRepositoriesDialog.Edit.Enabled=Aktiviert (in Fallback-Kette verwenden)
ManageRepositoriesDialog.Edit.Primary=Primär (zuerst versucht)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id und URL sind erforderlich.
-HopEnvironmentDialog.Shell.Title=Marketplace-Umgebung — {0}
-HopEnvironmentDialog.Untitled=Unbenannt
-HopEnvironmentDialog.Button.New=Neu
-HopEnvironmentDialog.Button.Open=Öffnen…
-HopEnvironmentDialog.Button.Save=Speichern
-HopEnvironmentDialog.Button.SaveAs=Speichern unter…
-HopEnvironmentDialog.Button.Validate=Validieren
-HopEnvironmentDialog.Button.Validate.Tooltip=Lokale Installation mit dieser Umgebungsdatei vergleichen, ohne zu installieren
-HopEnvironmentDialog.Button.Apply=Anwenden
-HopEnvironmentDialog.Button.Apply.Tooltip=In dieser Umgebungsdatei deklarierte Plugins und Abhängigkeiten installieren
-HopEnvironmentDialog.Button.Close=Schließen
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=Abbrechen
-HopEnvironmentDialog.Button.Add=Hinzufügen
-HopEnvironmentDialog.Button.Edit=Bearbeiten
-HopEnvironmentDialog.Button.Remove=Entfernen
-HopEnvironmentDialog.Button.MoveUp=Hoch
-HopEnvironmentDialog.Button.MoveDown=Runter
-HopEnvironmentDialog.Button.AddFromCatalog=Aus Katalog…
-HopEnvironmentDialog.Button.ImportRepos=Aus hop-config importieren…
-HopEnvironmentDialog.Prune=Extras beim Anwenden entfernen
-HopEnvironmentDialog.Prune.Tooltip=Beim Anwenden Marketplace-Plugins mit Receipt deinstallieren, die nicht in der Datei stehen
-HopEnvironmentDialog.Strict=Strenge Validierung
-HopEnvironmentDialog.Strict.Tooltip=Beim Validieren auch fehlschlagen, wenn zusätzliche Marketplace-Plugins jenseits der Datei installiert sind
-HopEnvironmentDialog.Filter.Yaml=YAML-Umgebung (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=JSON-Umgebung (*.json)
-HopEnvironmentDialog.Tab.General=Allgemein
-HopEnvironmentDialog.Tab.Repositories=Repositories
-HopEnvironmentDialog.Tab.Plugins=Plugins
-HopEnvironmentDialog.Tab.Dependencies=Abhängigkeiten
-HopEnvironmentDialog.General.Help=Legen Sie fest, welche Plugins und JARs diese Hop-Installation haben soll. Speichern Sie als hop-env.yaml für CI/Docker oder nutzen Sie Validieren / Anwenden in diesem Dialog.
-HopEnvironmentDialog.General.Version=Spec-Version
-HopEnvironmentDialog.General.HopVersion=Hop-Version
-HopEnvironmentDialog.General.EnforceOnRun=Bei hop-run erzwingen
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Wenn true, kann hop-run fehlschlagen, wenn die Installation von dieser Datei abweicht (auch gesteuert durch -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=Die erste Zeile ist primär (zuerst versucht); spätere Zeilen sind Fallbacks. Diese Repositories liegen in der Umgebungsdatei (nicht hop-config). Passwörter möglichst nicht committen.
-HopEnvironmentDialog.Plugins.Help=Zu installierende Marketplace-Plugins. Group ID leer lassen für org.apache.hop. Version kann beim Anwenden von der Hop-Version auf der Registerkarte Allgemein kommen.
-HopEnvironmentDialog.Dependencies.Help=Optionale Maven-JARs (z. B. JDBC-Treiber), installiert unter dem Zielverzeichnis der Hop-Home (Standard lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Benutzername
-HopEnvironmentDialog.Repo.Column.Password=Passwort
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Repository hinzufügen
-HopEnvironmentDialog.Repo.Edit.Edit=Repository bearbeiten
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Version
-HopEnvironmentDialog.Plugin.Edit.Add=Plugin hinzufügen
-HopEnvironmentDialog.Plugin.Edit.Edit=Plugin bearbeiten
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Version
-HopEnvironmentDialog.Dep.Column.Target=Ziel
-HopEnvironmentDialog.Dep.Edit.Add=Abhängigkeit hinzufügen
-HopEnvironmentDialog.Dep.Edit.Edit=Abhängigkeit bearbeiten
-HopEnvironmentDialog.Dirty.Header=Ungespeicherte Änderungen
-HopEnvironmentDialog.Dirty.Message=Änderungen an der Umgebungsdatei vor dem Fortfahren speichern?
-HopEnvironmentDialog.SaveFirst.Header=Umgebungsdatei speichern?
-HopEnvironmentDialog.SaveFirst.Message=Umgebungsdatei vor Validieren oder Anwenden speichern?
-HopEnvironmentDialog.Validation.Header=Ungültige Umgebung
-HopEnvironmentDialog.Validation.RepoIdUrl=Jedes Repository benötigt eine Id und URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Jedes Plugin benötigt eine Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Jede Abhängigkeit benötigt Group ID, Artifact ID und Version.
-HopEnvironmentDialog.ImportRepos.Header=Repositories importieren
-HopEnvironmentDialog.ImportRepos.Message=Repository-Liste durch aktivierte Repositories aus hop-config.json ersetzen?
-HopEnvironmentDialog.Error.Header=Fehler im Umgebungeneditor
-HopEnvironmentDialog.Error.Load=Umgebungsdatei konnte nicht geladen werden:\n{0}
-HopEnvironmentDialog.Error.Save=Umgebungsdatei konnte nicht gespeichert werden:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=Repositories konnten nicht aus hop-config importiert werden
+HopInstallSpecEditor.Shell.Title=Marketplace-Umgebung — {0}
+HopInstallSpecEditor.Untitled=Unbenannt
+HopInstallSpecEditor.Button.New=Neu
+HopInstallSpecEditor.Button.Open=Öffnen…
+HopInstallSpecEditor.Button.Save=Speichern
+HopInstallSpecEditor.Button.SaveAs=Speichern unter…
+HopInstallSpecEditor.Button.Validate=Validieren
+HopInstallSpecEditor.Button.Validate.Tooltip=Lokale Installation mit dieser Umgebungsdatei vergleichen, ohne zu installieren
+HopInstallSpecEditor.Button.Apply=Anwenden
+HopInstallSpecEditor.Button.Apply.Tooltip=In dieser Umgebungsdatei deklarierte Plugins und Abhängigkeiten installieren
+HopInstallSpecEditor.Button.Close=Schließen
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=Abbrechen
+HopInstallSpecEditor.Button.Add=Hinzufügen
+HopInstallSpecEditor.Button.Edit=Bearbeiten
+HopInstallSpecEditor.Button.Remove=Entfernen
+HopInstallSpecEditor.Button.MoveUp=Hoch
+HopInstallSpecEditor.Button.MoveDown=Runter
+HopInstallSpecEditor.Button.AddFromCatalog=Aus Katalog…
+HopInstallSpecEditor.Button.ImportRepos=Aus hop-config importieren…
+HopInstallSpecEditor.Prune=Extras beim Anwenden entfernen
+HopInstallSpecEditor.Prune.Tooltip=Beim Anwenden Marketplace-Plugins mit Receipt deinstallieren, die nicht in der Datei stehen
+HopInstallSpecEditor.Strict=Strenge Validierung
+HopInstallSpecEditor.Strict.Tooltip=Beim Validieren auch fehlschlagen, wenn zusätzliche Marketplace-Plugins jenseits der Datei installiert sind
+HopInstallSpecEditor.Filter.Yaml=YAML-Umgebung (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=JSON-Umgebung (*.json)
+HopInstallSpecEditor.Tab.General=Allgemein
+HopInstallSpecEditor.Tab.Repositories=Repositories
+HopInstallSpecEditor.Tab.Plugins=Plugins
+HopInstallSpecEditor.Tab.Dependencies=Abhängigkeiten
+HopInstallSpecEditor.General.Help=Legen Sie fest, welche Plugins und JARs diese Hop-Installation haben soll. Speichern Sie als hop-env.yaml für CI/Docker oder nutzen Sie Validieren / Anwenden in diesem Dialog.
+HopInstallSpecEditor.General.Version=Spec-Version
+HopInstallSpecEditor.General.HopVersion=Hop-Version
+HopInstallSpecEditor.General.EnforceOnRun=Bei hop-run erzwingen
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Wenn true, kann hop-run fehlschlagen, wenn die Installation von dieser Datei abweicht (auch gesteuert durch -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=Die erste Zeile ist primär (zuerst versucht); spätere Zeilen sind Fallbacks. Diese Repositories liegen in der Umgebungsdatei (nicht hop-config). Passwörter möglichst nicht committen.
+HopInstallSpecEditor.Plugins.Help=Zu installierende Marketplace-Plugins. Group ID leer lassen für org.apache.hop. Version kann beim Anwenden von der Hop-Version auf der Registerkarte Allgemein kommen.
+HopInstallSpecEditor.Dependencies.Help=Optionale Maven-JARs (z. B. JDBC-Treiber), installiert unter dem Zielverzeichnis der Hop-Home (Standard lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Benutzername
+HopInstallSpecEditor.Repo.Column.Password=Passwort
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Repository hinzufügen
+HopInstallSpecEditor.Repo.Edit.Edit=Repository bearbeiten
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Version
+HopInstallSpecEditor.Plugin.Edit.Add=Plugin hinzufügen
+HopInstallSpecEditor.Plugin.Edit.Edit=Plugin bearbeiten
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Version
+HopInstallSpecEditor.Dep.Column.Target=Ziel
+HopInstallSpecEditor.Dep.Edit.Add=Abhängigkeit hinzufügen
+HopInstallSpecEditor.Dep.Edit.Edit=Abhängigkeit bearbeiten
+HopInstallSpecEditor.Dirty.Header=Ungespeicherte Änderungen
+HopInstallSpecEditor.Dirty.Message=Änderungen an der Umgebungsdatei vor dem Fortfahren speichern?
+HopInstallSpecEditor.SaveFirst.Header=Umgebungsdatei speichern?
+HopInstallSpecEditor.SaveFirst.Message=Umgebungsdatei vor Validieren oder Anwenden speichern?
+HopInstallSpecEditor.Validation.Header=Ungültige Umgebung
+HopInstallSpecEditor.Validation.RepoIdUrl=Jedes Repository benötigt eine Id und URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Jedes Plugin benötigt eine Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Jede Abhängigkeit benötigt Group ID, Artifact ID und Version.
+HopInstallSpecEditor.ImportRepos.Header=Repositories importieren
+HopInstallSpecEditor.ImportRepos.Message=Repository-Liste durch aktivierte Repositories aus hop-config.json ersetzen?
+HopInstallSpecEditor.Error.Header=Fehler im Umgebungeneditor
+HopInstallSpecEditor.Error.Load=Umgebungsdatei konnte nicht geladen werden:\n{0}
+HopInstallSpecEditor.Error.Save=Umgebungsdatei konnte nicht gespeichert werden:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=Repositories konnten nicht aus hop-config importiert werden
AddPluginsFromCatalogDialog.Shell.Title=Plugins aus Katalog hinzufügen
AddPluginsFromCatalogDialog.Filter.Label=Filter
AddPluginsFromCatalogDialog.Button.Add=Auswahl hinzufügen
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_en_US.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_en_US.properties
index fb393a3c25..1414ad653e 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_en_US.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_en_US.properties
@@ -17,22 +17,24 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
+MarketplaceGuiPlugin.Context.EditAsInstallSpec=Edit as Hop install spec
MarketplaceLifecycleEnv.Tab.Plugins=Marketplace plugins
-MarketplaceLifecycleEnv.Help=Plugin set is defined in a hop-env file. These options control when Hop checks that file for this lifecycle environment (dev can stay loose; production can enforce).
-MarketplaceLifecycleEnv.EnvFile.Label=Environment file
+MarketplaceLifecycleEnv.Help=The plugin set is defined in a Hop install spec (hop-env.yaml), not in this lifecycle environment. These options control when Hop checks that spec for this environment (dev can stay loose; production can enforce).
+MarketplaceLifecycleEnv.EnvFile.Label=Install spec file
MarketplaceLifecycleEnv.Button.Browse=Browse…
MarketplaceLifecycleEnv.Button.EditEnv=Edit…
MarketplaceLifecycleEnv.OnEnable.Label=On enable
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: no check; warn: log/dialog on drift; enforce: hard-fail only outside Hop GUI (hop-run / automation). In Hop GUI, enforce is treated as warn so environments always open.
MarketplaceLifecycleEnv.Strict.Label=Strict (fail if extra marketplace plugins installed)
-MarketplaceLifecycleEnv.Strict.Tooltip=When validating, also treat marketplace plugins with receipts that are not listed in the env file as drift
+MarketplaceLifecycleEnv.Strict.Tooltip=When validating, also treat marketplace plugins with receipts that are not listed in the install spec as drift
MarketplaceLifecycleEnv.AutoApply.Label=Auto-apply missing plugins on enable
MarketplaceLifecycleEnv.AutoApply.Tooltip=When enabled, run marketplace apply for missing plugins (use only on controlled machines; default off)
MarketplaceDialog.Shell.Title=Plugin Marketplace
MarketplaceDialog.Tab.Plugins=Plugins
MarketplaceDialog.Tab.Environment=Environment
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Repositories
MarketplaceDialog.Repository.Label=Primary repository
MarketplaceDialog.Repository.SetPrimary.Error=Could not set primary repository
@@ -70,25 +72,25 @@ MarketplaceDialog.EnvFile.Prune=Prune extras on apply
MarketplaceDialog.EnvFile.Prune.Tooltip=When applying, uninstall marketplace plugins that have a receipt but are not listed in the file
MarketplaceDialog.EnvFile.Strict=Strict validate
MarketplaceDialog.EnvFile.Strict.Tooltip=When validating, also fail if extra marketplace plugins are installed beyond the file
-MarketplaceDialog.EnvFile.Filter.Env=Hop environment files (*.yaml, *.yml, *.json)
+MarketplaceDialog.EnvFile.Filter.Env=Hop install spec (*.yaml, *.yml, *.json)
MarketplaceDialog.EnvFile.Filter.All=All files
MarketplaceDialog.EnvFile.Missing.Header=Environment file required
MarketplaceDialog.EnvFile.Missing.Message=Select a hop-env.yaml (or full-client-env.yaml) with Browse…, or type the path.
MarketplaceDialog.EnvFile.NotFound.Header=File not found
-MarketplaceDialog.EnvFile.NotFound.Message=Environment file does not exist:\n{0}
+MarketplaceDialog.EnvFile.NotFound.Message=Install spec file does not exist:\n{0}
MarketplaceDialog.Status.Installed=Installed
MarketplaceDialog.Status.Present=Present on disk
MarketplaceDialog.Status.NotInstalled=Not installed
MarketplaceDialog.Status.RestartHint=Restart Hop after install, apply, or uninstall so plugins are reloaded. Install tries the primary repository, then other enabled repositories.
MarketplaceDialog.Status.Installing=Installing {0}...
MarketplaceDialog.Status.InstallingCount=Installing {0} plugins...
-MarketplaceDialog.Status.Validating=Validating environment file...
-MarketplaceDialog.Status.Applying=Applying environment file...
-MarketplaceDialog.Status.Drift=Environment drift detected — use Apply to fix
+MarketplaceDialog.Status.Validating=Validating install spec...
+MarketplaceDialog.Status.Applying=Applying install spec...
+MarketplaceDialog.Status.Drift=Install spec drift detected — use Apply to fix
MarketplaceDialog.Status.Cancelled=Cancelled.
MarketplaceDialog.Progress.Installing=Installing {0}
MarketplaceDialog.Progress.InstallingCount=Installing {0} plugins
-MarketplaceDialog.Progress.Applying=Applying environment file
+MarketplaceDialog.Progress.Applying=Applying install spec
MarketplaceDialog.Progress.Searching=Searching repositories...
MarketplaceDialog.Progress.Item={0} ({1} of {2})
MarketplaceDialog.Progress.Phase.Resolve=Resolving {0}...
@@ -125,18 +127,18 @@ MarketplaceDialog.Uninstall.NoReceipt.Header=Cannot uninstall
MarketplaceDialog.Uninstall.NoReceipt.Message=No marketplace install receipt for {0}. Only plugins installed via the marketplace can be uninstalled here.
MarketplaceDialog.Uninstall.NoReceipt.MessageMultiple=No marketplace install receipt for:\n\n{0}\n\nOnly plugins installed via the marketplace can be uninstalled here.
MarketplaceDialog.Uninstall.Error=Failed to uninstall {0}
-MarketplaceDialog.Validate.Ok.Header=Environment OK
+MarketplaceDialog.Validate.Ok.Header=Install spec OK
MarketplaceDialog.Validate.Ok.Message=Local install matches:\n{0}
-MarketplaceDialog.Validate.Drift.Header=Environment drift
-MarketplaceDialog.Validate.Drift.Message=The local install does not match the environment file:
+MarketplaceDialog.Validate.Drift.Header=Install spec drift
+MarketplaceDialog.Validate.Drift.Message=The local install does not match the install spec file:
MarketplaceDialog.Validate.Drift.Hint=Use Apply to install missing plugins (or fix versions), then restart Hop.
-MarketplaceDialog.Validate.Error=Failed to validate the environment file
+MarketplaceDialog.Validate.Error=Failed to validate the install spec file
MarketplaceDialog.Apply.PruneConfirm.Header=Prune marketplace plugins?
-MarketplaceDialog.Apply.PruneConfirm.Message=Apply with prune will uninstall marketplace plugins that are not listed in the environment file.\n\nContinue?
+MarketplaceDialog.Apply.PruneConfirm.Message=Apply with prune will uninstall marketplace plugins that are not listed in the install spec file.\n\nContinue?
MarketplaceDialog.Apply.Disabled=Marketplace is disabled in hop-config.json.
-MarketplaceDialog.Apply.Done.Header=Environment applied
+MarketplaceDialog.Apply.Done.Header=Install spec applied
MarketplaceDialog.Apply.Done.Message=Applied:\n{0}\n\nPlease restart Hop so new plugins are loaded.
-MarketplaceDialog.Apply.Error=Failed to apply the environment file
+MarketplaceDialog.Apply.Error=Failed to apply the install spec file
ManageRepositoriesDialog.Shell.Title=Marketplace repositories
ManageRepositoriesDialog.Help=Primary repo is tried first for installs; other enabled repos are fallbacks. Enable Browse to list zips live on the Plugins tab.\nImport/Export shareable repository YAML. Edit connection fields and plugin metadata (name, category, version pin, Hop range) via Add/Edit repository.\nDefaults: Apache Repository then Maven Central. Settings: hop-config.json under '${HOP_CONFIG_FOLDER}'.
@@ -220,77 +222,87 @@ ManageRepositoriesDialog.Plugins.Column.MinHop=Min Hop version
ManageRepositoriesDialog.Plugins.Column.MaxHop=Max Hop version
ManageRepositoriesDialog.Button.AddPlugin=Add plugin
ManageRepositoriesDialog.Button.RemovePlugin=Remove plugin
-HopEnvironmentDialog.Shell.Title=Marketplace environment — {0}
-HopEnvironmentDialog.Untitled=Untitled
-HopEnvironmentDialog.Button.New=New
-HopEnvironmentDialog.Button.Open=Open…
-HopEnvironmentDialog.Button.Save=Save
-HopEnvironmentDialog.Button.SaveAs=Save As…
-HopEnvironmentDialog.Button.Validate=Validate
-HopEnvironmentDialog.Button.Validate.Tooltip=Check the local install against this environment file without installing
-HopEnvironmentDialog.Button.Apply=Apply
-HopEnvironmentDialog.Button.Apply.Tooltip=Install plugins and dependencies declared in this environment file
-HopEnvironmentDialog.Button.Close=Close
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=Cancel
-HopEnvironmentDialog.Button.Add=Add
-HopEnvironmentDialog.Button.Edit=Edit
-HopEnvironmentDialog.Button.Remove=Remove
-HopEnvironmentDialog.Button.MoveUp=Up
-HopEnvironmentDialog.Button.MoveDown=Down
-HopEnvironmentDialog.Button.AddFromCatalog=From catalog…
-HopEnvironmentDialog.Button.ImportRepos=Import from hop-config…
-HopEnvironmentDialog.Prune=Prune extras on apply
-HopEnvironmentDialog.Prune.Tooltip=When applying, uninstall marketplace plugins that have a receipt but are not listed in the file
-HopEnvironmentDialog.Strict=Strict validate
-HopEnvironmentDialog.Strict.Tooltip=When validating, also fail if extra marketplace plugins are installed beyond the file
-HopEnvironmentDialog.Filter.Yaml=YAML environment (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=JSON environment (*.json)
-HopEnvironmentDialog.Tab.General=General
-HopEnvironmentDialog.Tab.Repositories=Repositories
-HopEnvironmentDialog.Tab.Plugins=Plugins
-HopEnvironmentDialog.Tab.Dependencies=Dependencies
-HopEnvironmentDialog.General.Help=Declare which plugins and jars this Hop install should have. Save as hop-env.yaml for CI/Docker, or use Validate / Apply from this dialog.
-HopEnvironmentDialog.General.Version=Spec version
-HopEnvironmentDialog.General.HopVersion=Hop version
-HopEnvironmentDialog.General.EnforceOnRun=Enforce on hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=When true, hop-run can fail if the install drifts from this file (also controlled by -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=First row is primary (tried first); later rows are fallbacks. These repositories live in the environment file (not hop-config). Prefer not to commit passwords.
-HopEnvironmentDialog.Plugins.Help=Marketplace plugins to install. Leave Group ID blank to use org.apache.hop. Version can default from Hop version on the General tab when applying.
-HopEnvironmentDialog.Dependencies.Help=Optional Maven jars (for example JDBC drivers) installed under the Hop home target directory (default lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Username
-HopEnvironmentDialog.Repo.Column.Password=Password
-HopEnvironmentDialog.Repo.Column.Password.Tooltip=Stored obfuscated in the environment file, which is not encryption. Environment files are meant to be shared: prefer a variable like $'{'MY_TOKEN'}' or the HOP_MARKETPLACE_<ID>_PASSWORD environment variable.
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Add repository
-HopEnvironmentDialog.Repo.Edit.Edit=Edit repository
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Version
-HopEnvironmentDialog.Plugin.Edit.Add=Add plugin
-HopEnvironmentDialog.Plugin.Edit.Edit=Edit plugin
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Version
-HopEnvironmentDialog.Dep.Column.Target=Target
-HopEnvironmentDialog.Dep.Edit.Add=Add dependency
-HopEnvironmentDialog.Dep.Edit.Edit=Edit dependency
-HopEnvironmentDialog.Dirty.Header=Unsaved changes
-HopEnvironmentDialog.Dirty.Message=Save changes to the environment file before continuing?
-HopEnvironmentDialog.SaveFirst.Header=Save environment file?
-HopEnvironmentDialog.SaveFirst.Message=Save the environment file before Validate or Apply?
-HopEnvironmentDialog.Validation.Header=Invalid environment
-HopEnvironmentDialog.Validation.RepoIdUrl=Each repository needs an Id and URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Each plugin needs an Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Each dependency needs Group ID, Artifact ID, and Version.
-HopEnvironmentDialog.ImportRepos.Header=Import repositories
-HopEnvironmentDialog.ImportRepos.Message=Replace the repository list with enabled repositories from hop-config.json?
-HopEnvironmentDialog.Error.Header=Environment editor error
-HopEnvironmentDialog.Error.Load=Could not load environment file:\n{0}
-HopEnvironmentDialog.Error.Save=Could not save environment file:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=Could not import repositories from hop-config
+HopInstallSpecEditor.Shell.Title=Hop install spec — {0}
+HopInstallSpecEditor.Untitled=Untitled
+HopInstallSpecEditor.Button.New=New
+HopInstallSpecEditor.Button.Open=Open…
+HopInstallSpecEditor.Button.Save=Save
+HopInstallSpecEditor.Button.SaveAs=Save As…
+HopInstallSpecEditor.Button.EditYaml=Edit YAML in Explorer
+HopInstallSpecEditor.Button.EditYaml.Tooltip=Open this file in the Explorer perspective as YAML so you can edit it by hand
+HopInstallSpecEditor.Button.Reload=Reload
+HopInstallSpecEditor.Button.Reload.Tooltip=Reload the file from disk (use after a manual YAML edit)
+HopInstallSpecEditor.Guidance=This file declares plugins and jars this Hop installation should have. It is not a project lifecycle environment. Typical path: New, add plugins, Save As hop-env.yaml in the project, then Validate / Apply.
+HopInstallSpecEditor.Guidance.New=New install spec. Add plugins from the catalog, then Save As hop-env.yaml under your project (or the Hop install). Validate / Apply after saving.
+HopInstallSpecEditor.FullClient.Banner=This is the generated full-client plugin list at the Hop install root. Prefer Save As hop-env.yaml in your project for a custom set. Apply here to restore every optional plugin.
+HopInstallSpecEditor.NewPath.Header=New install spec path
+HopInstallSpecEditor.NewPath.Message=That file does not exist yet. Save (or Save As) to create:\n{0}
+HopInstallSpecEditor.Button.Validate=Validate
+HopInstallSpecEditor.Button.Validate.Tooltip=Check the local install against this install spec file without installing
+HopInstallSpecEditor.Button.Apply=Apply
+HopInstallSpecEditor.Button.Apply.Tooltip=Install plugins and dependencies declared in this install spec file
+HopInstallSpecEditor.Button.Close=Close
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=Cancel
+HopInstallSpecEditor.Button.Add=Add
+HopInstallSpecEditor.Button.Edit=Edit
+HopInstallSpecEditor.Button.Remove=Remove
+HopInstallSpecEditor.Button.MoveUp=Up
+HopInstallSpecEditor.Button.MoveDown=Down
+HopInstallSpecEditor.Button.AddFromCatalog=From catalog…
+HopInstallSpecEditor.Button.ImportRepos=Import from hop-config…
+HopInstallSpecEditor.Prune=Prune extras on apply
+HopInstallSpecEditor.Prune.Tooltip=When applying, uninstall marketplace plugins that have a receipt but are not listed in the file
+HopInstallSpecEditor.Strict=Strict validate
+HopInstallSpecEditor.Strict.Tooltip=When validating, also fail if extra marketplace plugins are installed beyond the file
+HopInstallSpecEditor.Filter.Yaml=YAML install spec (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=JSON install spec (*.json)
+HopInstallSpecEditor.Tab.General=General
+HopInstallSpecEditor.Tab.Repositories=Repositories
+HopInstallSpecEditor.Tab.Plugins=Plugins
+HopInstallSpecEditor.Tab.Dependencies=Dependencies
+HopInstallSpecEditor.General.Help=A Hop install spec lists the marketplace plugins and jars this installation should have. Save as hop-env.yaml for CI/Docker. This is not a project lifecycle environment.
+HopInstallSpecEditor.General.Version=Spec version
+HopInstallSpecEditor.General.HopVersion=Hop version
+HopInstallSpecEditor.General.EnforceOnRun=Enforce on hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=When true, hop-run can fail if the install drifts from this file (also controlled by -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=First row is primary (tried first); later rows are fallbacks. These repositories live in the install spec file (not hop-config). Prefer not to commit passwords.
+HopInstallSpecEditor.Plugins.Help=Marketplace plugins to install. Leave Group ID blank to use org.apache.hop. Version can default from Hop version on the General tab when applying.
+HopInstallSpecEditor.Dependencies.Help=Optional Maven jars (for example JDBC drivers) installed under the Hop home target directory (default lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Username
+HopInstallSpecEditor.Repo.Column.Password=Password
+HopInstallSpecEditor.Repo.Column.Password.Tooltip=Stored obfuscated in the install spec file, which is not encryption. These files are meant to be shared: prefer a variable like $'{'MY_TOKEN'}' or the HOP_MARKETPLACE_<ID>_PASSWORD environment variable.
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Add repository
+HopInstallSpecEditor.Repo.Edit.Edit=Edit repository
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Version
+HopInstallSpecEditor.Plugin.Edit.Add=Add plugin
+HopInstallSpecEditor.Plugin.Edit.Edit=Edit plugin
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Version
+HopInstallSpecEditor.Dep.Column.Target=Target
+HopInstallSpecEditor.Dep.Edit.Add=Add dependency
+HopInstallSpecEditor.Dep.Edit.Edit=Edit dependency
+HopInstallSpecEditor.Dirty.Header=Unsaved changes
+HopInstallSpecEditor.Dirty.Message=Save changes to the install spec file before continuing?
+HopInstallSpecEditor.SaveFirst.Header=Save install spec?
+HopInstallSpecEditor.SaveFirst.Message=Save the install spec file before Validate or Apply?
+HopInstallSpecEditor.Validation.Header=Invalid install spec
+HopInstallSpecEditor.Validation.RepoIdUrl=Each repository needs an Id and URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Each plugin needs an Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Each dependency needs Group ID, Artifact ID, and Version.
+HopInstallSpecEditor.ImportRepos.Header=Import repositories
+HopInstallSpecEditor.ImportRepos.Message=Replace the repository list with enabled repositories from hop-config.json?
+HopInstallSpecEditor.Error.Header=Install spec editor error
+HopInstallSpecEditor.Error.Load=Could not load install spec file:\n{0}
+HopInstallSpecEditor.Error.Save=Could not save install spec file:\n{0}
+HopInstallSpecEditor.Error.OpenYaml=Could not open the install spec as YAML in Explorer:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=Could not import repositories from hop-config
AddPluginsFromCatalogDialog.Shell.Title=Add plugins from catalog
AddPluginsFromCatalogDialog.Filter.Label=Filter
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_es_AR.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_es_AR.properties
index ff51f50a80..892d517e44 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_es_AR.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_es_AR.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Plugins de Marketplace
-MarketplaceLifecycleEnv.Help=El conjunto de plugins se define en un archivo hop-env. Estas opciones controlan cuándo Hop verifica ese archivo para este entorno de ciclo de vida (desarrollo flexible; producción estricta).
-MarketplaceLifecycleEnv.EnvFile.Label=Archivo de entorno
+MarketplaceLifecycleEnv.Help=El conjunto de plugins se define en una especificación de instalación Hop (hop-env.yaml), no en este entorno de ciclo de vida. Estas opciones controlan cuándo Hop verifica esa especificación para este entorno (desarrollo flexible; producción estricta).
+MarketplaceLifecycleEnv.EnvFile.Label=Especificación de instalación
MarketplaceLifecycleEnv.Button.Browse=Examinar…
MarketplaceLifecycleEnv.Button.EditEnv=Editar…
MarketplaceLifecycleEnv.OnEnable.Label=Al habilitar
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: sin comprobaci\u00C3\u00B3n; warn: registro/di\u00C3\u00A1logo si hay divergencia; enforce: fallar al habilitar el entorno si hay divergencia
MarketplaceLifecycleEnv.Strict.Label=Estricto (fallar si hay plugins de marketplace extra instalados)
-MarketplaceLifecycleEnv.Strict.Tooltip=Al validar, tratar también como divergencia los plugins de marketplace con recibo que no estén en el archivo de entorno
+MarketplaceLifecycleEnv.Strict.Tooltip=Al validar, tratar también como divergencia los plugins de marketplace con recibo que no estén en la especificación de instalación
MarketplaceLifecycleEnv.AutoApply.Label=Aplicar automáticamente plugins faltantes al habilitar
MarketplaceLifecycleEnv.AutoApply.Tooltip=Si está habilitado, ejecuta marketplace apply para plugins faltantes (solo en máquinas controladas; desactivado por defecto)
MarketplaceDialog.Shell.Title=Marketplace de plugins
MarketplaceDialog.Tab.Plugins=Plugins
MarketplaceDialog.Tab.Environment=Entorno
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Repositorios
MarketplaceDialog.Repository.Label=Repositorio principal
MarketplaceDialog.Repository.SetPrimary.Error=No se pudo establecer el repositorio principal
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Contraseña
ManageRepositoriesDialog.Edit.Enabled=Habilitado (usar en cadena de respaldo)
ManageRepositoriesDialog.Edit.Primary=Principal (se prueba primero)
ManageRepositoriesDialog.Edit.IdUrlRequired=Se requieren Id y URL.
-HopEnvironmentDialog.Shell.Title=Entorno Marketplace — {0}
-HopEnvironmentDialog.Untitled=Sin título
-HopEnvironmentDialog.Button.New=Nuevo
-HopEnvironmentDialog.Button.Open=Abrir…
-HopEnvironmentDialog.Button.Save=Guardar
-HopEnvironmentDialog.Button.SaveAs=Guardar como…
-HopEnvironmentDialog.Button.Validate=Validar
-HopEnvironmentDialog.Button.Validate.Tooltip=Comprobar la instalación local con este archivo de entorno sin instalar
-HopEnvironmentDialog.Button.Apply=Aplicar
-HopEnvironmentDialog.Button.Apply.Tooltip=Instalar plugins y dependencias declarados en este archivo de entorno
-HopEnvironmentDialog.Button.Close=Cerrar
-HopEnvironmentDialog.Button.Ok=Aceptar
-HopEnvironmentDialog.Button.Cancel=Cancelar
-HopEnvironmentDialog.Button.Add=Agregar
-HopEnvironmentDialog.Button.Edit=Editar
-HopEnvironmentDialog.Button.Remove=Quitar
-HopEnvironmentDialog.Button.MoveUp=Arriba
-HopEnvironmentDialog.Button.MoveDown=Abajo
-HopEnvironmentDialog.Button.AddFromCatalog=Desde catálogo…
-HopEnvironmentDialog.Button.ImportRepos=Importar desde hop-config…
-HopEnvironmentDialog.Prune=Eliminar extras al aplicar
-HopEnvironmentDialog.Prune.Tooltip=Al aplicar, desinstalar plugins de marketplace con recibo que no estén en el archivo
-HopEnvironmentDialog.Strict=Validación estricta
-HopEnvironmentDialog.Strict.Tooltip=Al validar, fallar también si hay plugins de marketplace instalados más allá del archivo
-HopEnvironmentDialog.Filter.Yaml=Entorno YAML (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=Entorno JSON (*.json)
-HopEnvironmentDialog.Tab.General=General
-HopEnvironmentDialog.Tab.Repositories=Repositorios
-HopEnvironmentDialog.Tab.Plugins=Plugins
-HopEnvironmentDialog.Tab.Dependencies=Dependencias
-HopEnvironmentDialog.General.Help=Declare qué plugins y jars debe tener esta instalación de Hop. Guarde como hop-env.yaml para CI/Docker, o use Validar / Aplicar en este diálogo.
-HopEnvironmentDialog.General.Version=Versión de especificación
-HopEnvironmentDialog.General.HopVersion=Versión de Hop
-HopEnvironmentDialog.General.EnforceOnRun=Forzar en hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Si es true, hop-run puede fallar si la instalación se desvía de este archivo (también controlado por -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=La primera fila es principal (se prueba primero); las siguientes son de respaldo. Estos repositorios viven en el archivo de entorno (no hop-config). Prefiera no confirmar contraseñas.
-HopEnvironmentDialog.Plugins.Help=Plugins de marketplace a instalar. Deje Group ID en blanco para usar org.apache.hop. La versión puede tomarse de la versión de Hop en la pestaña General al aplicar.
-HopEnvironmentDialog.Dependencies.Help=Jars Maven opcionales (por ejemplo controladores JDBC) instalados bajo el directorio destino de Hop home (predeterminado lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Usuario
-HopEnvironmentDialog.Repo.Column.Password=Contraseña
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Agregar repositorio
-HopEnvironmentDialog.Repo.Edit.Edit=Editar repositorio
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Versión
-HopEnvironmentDialog.Plugin.Edit.Add=Agregar plugin
-HopEnvironmentDialog.Plugin.Edit.Edit=Editar plugin
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Versión
-HopEnvironmentDialog.Dep.Column.Target=Destino
-HopEnvironmentDialog.Dep.Edit.Add=Agregar dependencia
-HopEnvironmentDialog.Dep.Edit.Edit=Editar dependencia
-HopEnvironmentDialog.Dirty.Header=Cambios sin guardar
-HopEnvironmentDialog.Dirty.Message=¿Guardar los cambios del archivo de entorno antes de continuar?
-HopEnvironmentDialog.SaveFirst.Header=¿Guardar archivo de entorno?
-HopEnvironmentDialog.SaveFirst.Message=¿Guardar el archivo de entorno antes de Validar o Aplicar?
-HopEnvironmentDialog.Validation.Header=Entorno no válido
-HopEnvironmentDialog.Validation.RepoIdUrl=Cada repositorio necesita un Id y una URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Cada plugin necesita un Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Cada dependencia necesita Group ID, Artifact ID y Version.
-HopEnvironmentDialog.ImportRepos.Header=Importar repositorios
-HopEnvironmentDialog.ImportRepos.Message=¿Reemplazar la lista de repositorios con los repositorios habilitados de hop-config.json?
-HopEnvironmentDialog.Error.Header=Error del editor de entorno
-HopEnvironmentDialog.Error.Load=No se pudo cargar el archivo de entorno:\n{0}
-HopEnvironmentDialog.Error.Save=No se pudo guardar el archivo de entorno:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=No se pudieron importar repositorios desde hop-config
+HopInstallSpecEditor.Shell.Title=Entorno Marketplace — {0}
+HopInstallSpecEditor.Untitled=Sin título
+HopInstallSpecEditor.Button.New=Nuevo
+HopInstallSpecEditor.Button.Open=Abrir…
+HopInstallSpecEditor.Button.Save=Guardar
+HopInstallSpecEditor.Button.SaveAs=Guardar como…
+HopInstallSpecEditor.Button.Validate=Validar
+HopInstallSpecEditor.Button.Validate.Tooltip=Comprobar la instalación local con este archivo de entorno sin instalar
+HopInstallSpecEditor.Button.Apply=Aplicar
+HopInstallSpecEditor.Button.Apply.Tooltip=Instalar plugins y dependencias declarados en este archivo de entorno
+HopInstallSpecEditor.Button.Close=Cerrar
+HopInstallSpecEditor.Button.Ok=Aceptar
+HopInstallSpecEditor.Button.Cancel=Cancelar
+HopInstallSpecEditor.Button.Add=Agregar
+HopInstallSpecEditor.Button.Edit=Editar
+HopInstallSpecEditor.Button.Remove=Quitar
+HopInstallSpecEditor.Button.MoveUp=Arriba
+HopInstallSpecEditor.Button.MoveDown=Abajo
+HopInstallSpecEditor.Button.AddFromCatalog=Desde catálogo…
+HopInstallSpecEditor.Button.ImportRepos=Importar desde hop-config…
+HopInstallSpecEditor.Prune=Eliminar extras al aplicar
+HopInstallSpecEditor.Prune.Tooltip=Al aplicar, desinstalar plugins de marketplace con recibo que no estén en el archivo
+HopInstallSpecEditor.Strict=Validación estricta
+HopInstallSpecEditor.Strict.Tooltip=Al validar, fallar también si hay plugins de marketplace instalados más allá del archivo
+HopInstallSpecEditor.Filter.Yaml=Entorno YAML (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=Entorno JSON (*.json)
+HopInstallSpecEditor.Tab.General=General
+HopInstallSpecEditor.Tab.Repositories=Repositorios
+HopInstallSpecEditor.Tab.Plugins=Plugins
+HopInstallSpecEditor.Tab.Dependencies=Dependencias
+HopInstallSpecEditor.General.Help=Declare qué plugins y jars debe tener esta instalación de Hop. Guarde como hop-env.yaml para CI/Docker, o use Validar / Aplicar en este diálogo.
+HopInstallSpecEditor.General.Version=Versión de especificación
+HopInstallSpecEditor.General.HopVersion=Versión de Hop
+HopInstallSpecEditor.General.EnforceOnRun=Forzar en hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Si es true, hop-run puede fallar si la instalación se desvía de este archivo (también controlado por -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=La primera fila es principal (se prueba primero); las siguientes son de respaldo. Estos repositorios viven en el archivo de entorno (no hop-config). Prefiera no confirmar contraseñas.
+HopInstallSpecEditor.Plugins.Help=Plugins de marketplace a instalar. Deje Group ID en blanco para usar org.apache.hop. La versión puede tomarse de la versión de Hop en la pestaña General al aplicar.
+HopInstallSpecEditor.Dependencies.Help=Jars Maven opcionales (por ejemplo controladores JDBC) instalados bajo el directorio destino de Hop home (predeterminado lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Usuario
+HopInstallSpecEditor.Repo.Column.Password=Contraseña
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Agregar repositorio
+HopInstallSpecEditor.Repo.Edit.Edit=Editar repositorio
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Versión
+HopInstallSpecEditor.Plugin.Edit.Add=Agregar plugin
+HopInstallSpecEditor.Plugin.Edit.Edit=Editar plugin
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Versión
+HopInstallSpecEditor.Dep.Column.Target=Destino
+HopInstallSpecEditor.Dep.Edit.Add=Agregar dependencia
+HopInstallSpecEditor.Dep.Edit.Edit=Editar dependencia
+HopInstallSpecEditor.Dirty.Header=Cambios sin guardar
+HopInstallSpecEditor.Dirty.Message=¿Guardar los cambios del archivo de entorno antes de continuar?
+HopInstallSpecEditor.SaveFirst.Header=¿Guardar archivo de entorno?
+HopInstallSpecEditor.SaveFirst.Message=¿Guardar el archivo de entorno antes de Validar o Aplicar?
+HopInstallSpecEditor.Validation.Header=Entorno no válido
+HopInstallSpecEditor.Validation.RepoIdUrl=Cada repositorio necesita un Id y una URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Cada plugin necesita un Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Cada dependencia necesita Group ID, Artifact ID y Version.
+HopInstallSpecEditor.ImportRepos.Header=Importar repositorios
+HopInstallSpecEditor.ImportRepos.Message=¿Reemplazar la lista de repositorios con los repositorios habilitados de hop-config.json?
+HopInstallSpecEditor.Error.Header=Error del editor de entorno
+HopInstallSpecEditor.Error.Load=No se pudo cargar el archivo de entorno:\n{0}
+HopInstallSpecEditor.Error.Save=No se pudo guardar el archivo de entorno:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=No se pudieron importar repositorios desde hop-config
AddPluginsFromCatalogDialog.Shell.Title=Agregar plugins del catálogo
AddPluginsFromCatalogDialog.Filter.Label=Filtro
AddPluginsFromCatalogDialog.Button.Add=Agregar seleccionados
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_es_ES.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_es_ES.properties
index 6a134b3f82..43b605b9fe 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_es_ES.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_es_ES.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Plugins de Marketplace
-MarketplaceLifecycleEnv.Help=El conjunto de plugins se define en un archivo hop-env. Estas opciones controlan cuándo Hop comprueba ese archivo para este entorno de ciclo de vida (desarrollo flexible; producción estricta).
-MarketplaceLifecycleEnv.EnvFile.Label=Archivo de entorno
+MarketplaceLifecycleEnv.Help=El conjunto de plugins se define en una especificación de instalación Hop (hop-env.yaml), no en este entorno de ciclo de vida. Estas opciones controlan cuándo Hop comprueba esa especificación para este entorno (desarrollo flexible; producción estricta).
+MarketplaceLifecycleEnv.EnvFile.Label=Especificación de instalación
MarketplaceLifecycleEnv.Button.Browse=Examinar…
MarketplaceLifecycleEnv.Button.EditEnv=Editar…
MarketplaceLifecycleEnv.OnEnable.Label=Al habilitar
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: sin comprobaci\u00C3\u00B3n; warn: registro/di\u00C3\u00A1logo si hay divergencia; enforce: fallar al habilitar el entorno si hay divergencia
MarketplaceLifecycleEnv.Strict.Label=Estricto (fallar si hay plugins de marketplace extra instalados)
-MarketplaceLifecycleEnv.Strict.Tooltip=Al validar, tratar también como divergencia los plugins de marketplace con recibo que no estén en el archivo de entorno
+MarketplaceLifecycleEnv.Strict.Tooltip=Al validar, tratar también como divergencia los plugins de marketplace con recibo que no estén en la especificación de instalación
MarketplaceLifecycleEnv.AutoApply.Label=Aplicar automáticamente plugins faltantes al habilitar
MarketplaceLifecycleEnv.AutoApply.Tooltip=Si está habilitado, ejecuta marketplace apply para plugins faltantes (solo en máquinas controladas; desactivado por defecto)
MarketplaceDialog.Shell.Title=Marketplace de plugins
MarketplaceDialog.Tab.Plugins=Plugins
MarketplaceDialog.Tab.Environment=Entorno
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Repositorios
MarketplaceDialog.Repository.Label=Repositorio principal
MarketplaceDialog.Repository.SetPrimary.Error=No se pudo establecer el repositorio principal
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Contraseña
ManageRepositoriesDialog.Edit.Enabled=Habilitado (usar en cadena de respaldo)
ManageRepositoriesDialog.Edit.Primary=Principal (se prueba primero)
ManageRepositoriesDialog.Edit.IdUrlRequired=Se requieren Id y URL.
-HopEnvironmentDialog.Shell.Title=Entorno Marketplace — {0}
-HopEnvironmentDialog.Untitled=Sin título
-HopEnvironmentDialog.Button.New=Nuevo
-HopEnvironmentDialog.Button.Open=Abrir…
-HopEnvironmentDialog.Button.Save=Guardar
-HopEnvironmentDialog.Button.SaveAs=Guardar como…
-HopEnvironmentDialog.Button.Validate=Validar
-HopEnvironmentDialog.Button.Validate.Tooltip=Comprobar la instalación local con este archivo de entorno sin instalar
-HopEnvironmentDialog.Button.Apply=Aplicar
-HopEnvironmentDialog.Button.Apply.Tooltip=Instalar plugins y dependencias declarados en este archivo de entorno
-HopEnvironmentDialog.Button.Close=Cerrar
-HopEnvironmentDialog.Button.Ok=Aceptar
-HopEnvironmentDialog.Button.Cancel=Cancelar
-HopEnvironmentDialog.Button.Add=Agregar
-HopEnvironmentDialog.Button.Edit=Editar
-HopEnvironmentDialog.Button.Remove=Quitar
-HopEnvironmentDialog.Button.MoveUp=Arriba
-HopEnvironmentDialog.Button.MoveDown=Abajo
-HopEnvironmentDialog.Button.AddFromCatalog=Desde catálogo…
-HopEnvironmentDialog.Button.ImportRepos=Importar desde hop-config…
-HopEnvironmentDialog.Prune=Eliminar extras al aplicar
-HopEnvironmentDialog.Prune.Tooltip=Al aplicar, desinstalar plugins de marketplace con recibo que no estén en el archivo
-HopEnvironmentDialog.Strict=Validación estricta
-HopEnvironmentDialog.Strict.Tooltip=Al validar, fallar también si hay plugins de marketplace instalados más allá del archivo
-HopEnvironmentDialog.Filter.Yaml=Entorno YAML (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=Entorno JSON (*.json)
-HopEnvironmentDialog.Tab.General=General
-HopEnvironmentDialog.Tab.Repositories=Repositorios
-HopEnvironmentDialog.Tab.Plugins=Plugins
-HopEnvironmentDialog.Tab.Dependencies=Dependencias
-HopEnvironmentDialog.General.Help=Declare qué plugins y jars debe tener esta instalación de Hop. Guarde como hop-env.yaml para CI/Docker, o use Validar / Aplicar en este diálogo.
-HopEnvironmentDialog.General.Version=Versión de especificación
-HopEnvironmentDialog.General.HopVersion=Versión de Hop
-HopEnvironmentDialog.General.EnforceOnRun=Forzar en hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Si es true, hop-run puede fallar si la instalación se desvía de este archivo (también controlado por -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=La primera fila es principal (se prueba primero); las siguientes son de respaldo. Estos repositorios viven en el archivo de entorno (no hop-config). Prefiera no confirmar contraseñas.
-HopEnvironmentDialog.Plugins.Help=Plugins de marketplace a instalar. Deje Group ID en blanco para usar org.apache.hop. La versión puede tomarse de la versión de Hop en la pestaña General al aplicar.
-HopEnvironmentDialog.Dependencies.Help=Jars Maven opcionales (por ejemplo controladores JDBC) instalados bajo el directorio destino de Hop home (predeterminado lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Usuario
-HopEnvironmentDialog.Repo.Column.Password=Contraseña
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Añadir repositorio
-HopEnvironmentDialog.Repo.Edit.Edit=Editar repositorio
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Versión
-HopEnvironmentDialog.Plugin.Edit.Add=Añadir plugin
-HopEnvironmentDialog.Plugin.Edit.Edit=Editar plugin
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Versión
-HopEnvironmentDialog.Dep.Column.Target=Destino
-HopEnvironmentDialog.Dep.Edit.Add=Añadir dependencia
-HopEnvironmentDialog.Dep.Edit.Edit=Editar dependencia
-HopEnvironmentDialog.Dirty.Header=Cambios sin guardar
-HopEnvironmentDialog.Dirty.Message=¿Guardar los cambios del archivo de entorno antes de continuar?
-HopEnvironmentDialog.SaveFirst.Header=¿Guardar archivo de entorno?
-HopEnvironmentDialog.SaveFirst.Message=¿Guardar el archivo de entorno antes de Validar o Aplicar?
-HopEnvironmentDialog.Validation.Header=Entorno no válido
-HopEnvironmentDialog.Validation.RepoIdUrl=Cada repositorio necesita un Id y una URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Cada plugin necesita un Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Cada dependencia necesita Group ID, Artifact ID y Version.
-HopEnvironmentDialog.ImportRepos.Header=Importar repositorios
-HopEnvironmentDialog.ImportRepos.Message=¿Reemplazar la lista de repositorios con los repositorios habilitados de hop-config.json?
-HopEnvironmentDialog.Error.Header=Error del editor de entorno
-HopEnvironmentDialog.Error.Load=No se pudo cargar el archivo de entorno:\n{0}
-HopEnvironmentDialog.Error.Save=No se pudo guardar el archivo de entorno:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=No se pudieron importar repositorios desde hop-config
+HopInstallSpecEditor.Shell.Title=Entorno Marketplace — {0}
+HopInstallSpecEditor.Untitled=Sin título
+HopInstallSpecEditor.Button.New=Nuevo
+HopInstallSpecEditor.Button.Open=Abrir…
+HopInstallSpecEditor.Button.Save=Guardar
+HopInstallSpecEditor.Button.SaveAs=Guardar como…
+HopInstallSpecEditor.Button.Validate=Validar
+HopInstallSpecEditor.Button.Validate.Tooltip=Comprobar la instalación local con este archivo de entorno sin instalar
+HopInstallSpecEditor.Button.Apply=Aplicar
+HopInstallSpecEditor.Button.Apply.Tooltip=Instalar plugins y dependencias declarados en este archivo de entorno
+HopInstallSpecEditor.Button.Close=Cerrar
+HopInstallSpecEditor.Button.Ok=Aceptar
+HopInstallSpecEditor.Button.Cancel=Cancelar
+HopInstallSpecEditor.Button.Add=Agregar
+HopInstallSpecEditor.Button.Edit=Editar
+HopInstallSpecEditor.Button.Remove=Quitar
+HopInstallSpecEditor.Button.MoveUp=Arriba
+HopInstallSpecEditor.Button.MoveDown=Abajo
+HopInstallSpecEditor.Button.AddFromCatalog=Desde catálogo…
+HopInstallSpecEditor.Button.ImportRepos=Importar desde hop-config…
+HopInstallSpecEditor.Prune=Eliminar extras al aplicar
+HopInstallSpecEditor.Prune.Tooltip=Al aplicar, desinstalar plugins de marketplace con recibo que no estén en el archivo
+HopInstallSpecEditor.Strict=Validación estricta
+HopInstallSpecEditor.Strict.Tooltip=Al validar, fallar también si hay plugins de marketplace instalados más allá del archivo
+HopInstallSpecEditor.Filter.Yaml=Entorno YAML (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=Entorno JSON (*.json)
+HopInstallSpecEditor.Tab.General=General
+HopInstallSpecEditor.Tab.Repositories=Repositorios
+HopInstallSpecEditor.Tab.Plugins=Plugins
+HopInstallSpecEditor.Tab.Dependencies=Dependencias
+HopInstallSpecEditor.General.Help=Declare qué plugins y jars debe tener esta instalación de Hop. Guarde como hop-env.yaml para CI/Docker, o use Validar / Aplicar en este diálogo.
+HopInstallSpecEditor.General.Version=Versión de especificación
+HopInstallSpecEditor.General.HopVersion=Versión de Hop
+HopInstallSpecEditor.General.EnforceOnRun=Forzar en hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Si es true, hop-run puede fallar si la instalación se desvía de este archivo (también controlado por -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=La primera fila es principal (se prueba primero); las siguientes son de respaldo. Estos repositorios viven en el archivo de entorno (no hop-config). Prefiera no confirmar contraseñas.
+HopInstallSpecEditor.Plugins.Help=Plugins de marketplace a instalar. Deje Group ID en blanco para usar org.apache.hop. La versión puede tomarse de la versión de Hop en la pestaña General al aplicar.
+HopInstallSpecEditor.Dependencies.Help=Jars Maven opcionales (por ejemplo controladores JDBC) instalados bajo el directorio destino de Hop home (predeterminado lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Usuario
+HopInstallSpecEditor.Repo.Column.Password=Contraseña
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Añadir repositorio
+HopInstallSpecEditor.Repo.Edit.Edit=Editar repositorio
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Versión
+HopInstallSpecEditor.Plugin.Edit.Add=Añadir plugin
+HopInstallSpecEditor.Plugin.Edit.Edit=Editar plugin
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Versión
+HopInstallSpecEditor.Dep.Column.Target=Destino
+HopInstallSpecEditor.Dep.Edit.Add=Añadir dependencia
+HopInstallSpecEditor.Dep.Edit.Edit=Editar dependencia
+HopInstallSpecEditor.Dirty.Header=Cambios sin guardar
+HopInstallSpecEditor.Dirty.Message=¿Guardar los cambios del archivo de entorno antes de continuar?
+HopInstallSpecEditor.SaveFirst.Header=¿Guardar archivo de entorno?
+HopInstallSpecEditor.SaveFirst.Message=¿Guardar el archivo de entorno antes de Validar o Aplicar?
+HopInstallSpecEditor.Validation.Header=Entorno no válido
+HopInstallSpecEditor.Validation.RepoIdUrl=Cada repositorio necesita un Id y una URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Cada plugin necesita un Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Cada dependencia necesita Group ID, Artifact ID y Version.
+HopInstallSpecEditor.ImportRepos.Header=Importar repositorios
+HopInstallSpecEditor.ImportRepos.Message=¿Reemplazar la lista de repositorios con los repositorios habilitados de hop-config.json?
+HopInstallSpecEditor.Error.Header=Error del editor de entorno
+HopInstallSpecEditor.Error.Load=No se pudo cargar el archivo de entorno:\n{0}
+HopInstallSpecEditor.Error.Save=No se pudo guardar el archivo de entorno:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=No se pudieron importar repositorios desde hop-config
AddPluginsFromCatalogDialog.Shell.Title=Añadir plugins del catálogo
AddPluginsFromCatalogDialog.Filter.Label=Filtro
AddPluginsFromCatalogDialog.Button.Add=Añadir seleccionados
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_fr_FR.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_fr_FR.properties
index 50f805105a..2d0073e3d8 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_fr_FR.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_fr_FR.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Plugins Marketplace
-MarketplaceLifecycleEnv.Help=L'ensemble des plugins est défini dans un fichier hop-env. Ces options contrôlent quand Hop vérifie ce fichier pour cet environnement de cycle de vie (souple en dev ; strict en production).
-MarketplaceLifecycleEnv.EnvFile.Label=Fichier d'environnement
+MarketplaceLifecycleEnv.Help=L'ensemble des plugins est défini dans une spécification d'installation Hop (hop-env.yaml), pas dans cet environnement de cycle de vie. Ces options contrôlent quand Hop vérifie cette spécification pour cet environnement (souple en dev ; strict en production).
+MarketplaceLifecycleEnv.EnvFile.Label=Spécification d'installation
MarketplaceLifecycleEnv.Button.Browse=Parcourir…
MarketplaceLifecycleEnv.Button.EditEnv=Modifier…
MarketplaceLifecycleEnv.OnEnable.Label=À l'activation
MarketplaceLifecycleEnv.OnEnable.Tooltip=off : pas de contr\u00C3\u00B4le ; warn : journal/dialogue en cas d'\u00C3\u00A9cart ; enforce : \u00C3\u00A9chouer \u00C3\u00A0 l'activation en cas d'\u00C3\u00A9cart
MarketplaceLifecycleEnv.Strict.Label=Strict (échouer si des plugins marketplace supplémentaires sont installés)
-MarketplaceLifecycleEnv.Strict.Tooltip=Lors de la validation, traiter aussi comme écart les plugins marketplace avec reçu absents du fichier d'environnement
+MarketplaceLifecycleEnv.Strict.Tooltip=Lors de la validation, traiter aussi comme écart les plugins marketplace avec reçu absents de la spécification d'installation
MarketplaceLifecycleEnv.AutoApply.Label=Appliquer automatiquement les plugins manquants à l'activation
MarketplaceLifecycleEnv.AutoApply.Tooltip=Si activé, exécute marketplace apply pour les plugins manquants (uniquement sur machines contrôlées ; désactivé par défaut)
MarketplaceDialog.Shell.Title=Marketplace de plugins
MarketplaceDialog.Tab.Plugins=Plugins
MarketplaceDialog.Tab.Environment=Environnement
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Dépôts
MarketplaceDialog.Repository.Label=Dépôt principal
MarketplaceDialog.Repository.SetPrimary.Error=Impossible de définir le dépôt principal
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Mot de passe
ManageRepositoriesDialog.Edit.Enabled=Activé (utiliser dans la chaîne de bascule)
ManageRepositoriesDialog.Edit.Primary=Principal (essayé en premier)
ManageRepositoriesDialog.Edit.IdUrlRequired=L'Id et l'URL sont obligatoires.
-HopEnvironmentDialog.Shell.Title=Environnement Marketplace — {0}
-HopEnvironmentDialog.Untitled=Sans titre
-HopEnvironmentDialog.Button.New=Nouveau
-HopEnvironmentDialog.Button.Open=Ouvrir…
-HopEnvironmentDialog.Button.Save=Enregistrer
-HopEnvironmentDialog.Button.SaveAs=Enregistrer sous…
-HopEnvironmentDialog.Button.Validate=Valider
-HopEnvironmentDialog.Button.Validate.Tooltip=Comparer l'installation locale à ce fichier d'environnement sans installer
-HopEnvironmentDialog.Button.Apply=Appliquer
-HopEnvironmentDialog.Button.Apply.Tooltip=Installer les plugins et dépendances déclarés dans ce fichier d'environnement
-HopEnvironmentDialog.Button.Close=Fermer
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=Annuler
-HopEnvironmentDialog.Button.Add=Ajouter
-HopEnvironmentDialog.Button.Edit=Modifier
-HopEnvironmentDialog.Button.Remove=Supprimer
-HopEnvironmentDialog.Button.MoveUp=Haut
-HopEnvironmentDialog.Button.MoveDown=Bas
-HopEnvironmentDialog.Button.AddFromCatalog=Depuis le catalogue…
-HopEnvironmentDialog.Button.ImportRepos=Importer depuis hop-config…
-HopEnvironmentDialog.Prune=Supprimer les extras à l'application
-HopEnvironmentDialog.Prune.Tooltip=Lors de l'application, désinstaller les plugins marketplace avec reçu absents du fichier
-HopEnvironmentDialog.Strict=Validation stricte
-HopEnvironmentDialog.Strict.Tooltip=Lors de la validation, échouer aussi si des plugins marketplace supplémentaires sont installés au-delà du fichier
-HopEnvironmentDialog.Filter.Yaml=Environnement YAML (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=Environnement JSON (*.json)
-HopEnvironmentDialog.Tab.General=Général
-HopEnvironmentDialog.Tab.Repositories=Dépôts
-HopEnvironmentDialog.Tab.Plugins=Plugins
-HopEnvironmentDialog.Tab.Dependencies=Dépendances
-HopEnvironmentDialog.General.Help=Déclarez quels plugins et jars cette installation Hop doit avoir. Enregistrez en hop-env.yaml pour CI/Docker, ou utilisez Valider / Appliquer dans ce dialogue.
-HopEnvironmentDialog.General.Version=Version de spécification
-HopEnvironmentDialog.General.HopVersion=Version Hop
-HopEnvironmentDialog.General.EnforceOnRun=Appliquer sur hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Si vrai, hop-run peut échouer si l'installation s'écarte de ce fichier (aussi contrôlé par -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=La première ligne est principale (essayée en premier) ; les suivantes sont des bascules. Ces dépôts sont dans le fichier d'environnement (pas hop-config). Évitez de versionner les mots de passe.
-HopEnvironmentDialog.Plugins.Help=Plugins marketplace à installer. Laissez Group ID vide pour org.apache.hop. La version peut provenir de la version Hop de l'onglet Général à l'application.
-HopEnvironmentDialog.Dependencies.Help=Jars Maven optionnels (par ex. pilotes JDBC) installés sous le répertoire cible de Hop home (par défaut lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Nom d'utilisateur
-HopEnvironmentDialog.Repo.Column.Password=Mot de passe
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Ajouter un dépôt
-HopEnvironmentDialog.Repo.Edit.Edit=Modifier le dépôt
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Version
-HopEnvironmentDialog.Plugin.Edit.Add=Ajouter un plugin
-HopEnvironmentDialog.Plugin.Edit.Edit=Modifier le plugin
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Version
-HopEnvironmentDialog.Dep.Column.Target=Cible
-HopEnvironmentDialog.Dep.Edit.Add=Ajouter une dépendance
-HopEnvironmentDialog.Dep.Edit.Edit=Modifier la dépendance
-HopEnvironmentDialog.Dirty.Header=Modifications non enregistrées
-HopEnvironmentDialog.Dirty.Message=Enregistrer les modifications du fichier d'environnement avant de continuer ?
-HopEnvironmentDialog.SaveFirst.Header=Enregistrer le fichier d'environnement ?
-HopEnvironmentDialog.SaveFirst.Message=Enregistrer le fichier d'environnement avant Valider ou Appliquer ?
-HopEnvironmentDialog.Validation.Header=Environnement non valide
-HopEnvironmentDialog.Validation.RepoIdUrl=Chaque dépôt doit avoir un Id et une URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Chaque plugin doit avoir un Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Chaque dépendance doit avoir Group ID, Artifact ID et Version.
-HopEnvironmentDialog.ImportRepos.Header=Importer les dépôts
-HopEnvironmentDialog.ImportRepos.Message=Remplacer la liste des dépôts par les dépôts activés de hop-config.json ?
-HopEnvironmentDialog.Error.Header=Erreur de l'éditeur d'environnement
-HopEnvironmentDialog.Error.Load=Impossible de charger le fichier d''environnement :\n{0}
-HopEnvironmentDialog.Error.Save=Impossible d''enregistrer le fichier d''environnement :\n{0}
-HopEnvironmentDialog.Error.ImportRepos=Impossible d'importer les dépôts depuis hop-config
+HopInstallSpecEditor.Shell.Title=Environnement Marketplace — {0}
+HopInstallSpecEditor.Untitled=Sans titre
+HopInstallSpecEditor.Button.New=Nouveau
+HopInstallSpecEditor.Button.Open=Ouvrir…
+HopInstallSpecEditor.Button.Save=Enregistrer
+HopInstallSpecEditor.Button.SaveAs=Enregistrer sous…
+HopInstallSpecEditor.Button.Validate=Valider
+HopInstallSpecEditor.Button.Validate.Tooltip=Comparer l'installation locale à ce fichier d'environnement sans installer
+HopInstallSpecEditor.Button.Apply=Appliquer
+HopInstallSpecEditor.Button.Apply.Tooltip=Installer les plugins et dépendances déclarés dans ce fichier d'environnement
+HopInstallSpecEditor.Button.Close=Fermer
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=Annuler
+HopInstallSpecEditor.Button.Add=Ajouter
+HopInstallSpecEditor.Button.Edit=Modifier
+HopInstallSpecEditor.Button.Remove=Supprimer
+HopInstallSpecEditor.Button.MoveUp=Haut
+HopInstallSpecEditor.Button.MoveDown=Bas
+HopInstallSpecEditor.Button.AddFromCatalog=Depuis le catalogue…
+HopInstallSpecEditor.Button.ImportRepos=Importer depuis hop-config…
+HopInstallSpecEditor.Prune=Supprimer les extras à l'application
+HopInstallSpecEditor.Prune.Tooltip=Lors de l'application, désinstaller les plugins marketplace avec reçu absents du fichier
+HopInstallSpecEditor.Strict=Validation stricte
+HopInstallSpecEditor.Strict.Tooltip=Lors de la validation, échouer aussi si des plugins marketplace supplémentaires sont installés au-delà du fichier
+HopInstallSpecEditor.Filter.Yaml=Environnement YAML (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=Environnement JSON (*.json)
+HopInstallSpecEditor.Tab.General=Général
+HopInstallSpecEditor.Tab.Repositories=Dépôts
+HopInstallSpecEditor.Tab.Plugins=Plugins
+HopInstallSpecEditor.Tab.Dependencies=Dépendances
+HopInstallSpecEditor.General.Help=Déclarez quels plugins et jars cette installation Hop doit avoir. Enregistrez en hop-env.yaml pour CI/Docker, ou utilisez Valider / Appliquer dans ce dialogue.
+HopInstallSpecEditor.General.Version=Version de spécification
+HopInstallSpecEditor.General.HopVersion=Version Hop
+HopInstallSpecEditor.General.EnforceOnRun=Appliquer sur hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Si vrai, hop-run peut échouer si l'installation s'écarte de ce fichier (aussi contrôlé par -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=La première ligne est principale (essayée en premier) ; les suivantes sont des bascules. Ces dépôts sont dans le fichier d'environnement (pas hop-config). Évitez de versionner les mots de passe.
+HopInstallSpecEditor.Plugins.Help=Plugins marketplace à installer. Laissez Group ID vide pour org.apache.hop. La version peut provenir de la version Hop de l'onglet Général à l'application.
+HopInstallSpecEditor.Dependencies.Help=Jars Maven optionnels (par ex. pilotes JDBC) installés sous le répertoire cible de Hop home (par défaut lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Nom d'utilisateur
+HopInstallSpecEditor.Repo.Column.Password=Mot de passe
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Ajouter un dépôt
+HopInstallSpecEditor.Repo.Edit.Edit=Modifier le dépôt
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Version
+HopInstallSpecEditor.Plugin.Edit.Add=Ajouter un plugin
+HopInstallSpecEditor.Plugin.Edit.Edit=Modifier le plugin
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Version
+HopInstallSpecEditor.Dep.Column.Target=Cible
+HopInstallSpecEditor.Dep.Edit.Add=Ajouter une dépendance
+HopInstallSpecEditor.Dep.Edit.Edit=Modifier la dépendance
+HopInstallSpecEditor.Dirty.Header=Modifications non enregistrées
+HopInstallSpecEditor.Dirty.Message=Enregistrer les modifications du fichier d'environnement avant de continuer ?
+HopInstallSpecEditor.SaveFirst.Header=Enregistrer le fichier d'environnement ?
+HopInstallSpecEditor.SaveFirst.Message=Enregistrer le fichier d'environnement avant Valider ou Appliquer ?
+HopInstallSpecEditor.Validation.Header=Environnement non valide
+HopInstallSpecEditor.Validation.RepoIdUrl=Chaque dépôt doit avoir un Id et une URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Chaque plugin doit avoir un Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Chaque dépendance doit avoir Group ID, Artifact ID et Version.
+HopInstallSpecEditor.ImportRepos.Header=Importer les dépôts
+HopInstallSpecEditor.ImportRepos.Message=Remplacer la liste des dépôts par les dépôts activés de hop-config.json ?
+HopInstallSpecEditor.Error.Header=Erreur de l'éditeur d'environnement
+HopInstallSpecEditor.Error.Load=Impossible de charger le fichier d''environnement :\n{0}
+HopInstallSpecEditor.Error.Save=Impossible d''enregistrer le fichier d''environnement :\n{0}
+HopInstallSpecEditor.Error.ImportRepos=Impossible d'importer les dépôts depuis hop-config
AddPluginsFromCatalogDialog.Shell.Title=Ajouter des plugins depuis le catalogue
AddPluginsFromCatalogDialog.Filter.Label=Filtre
AddPluginsFromCatalogDialog.Button.Add=Ajouter la sélection
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_it_IT.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_it_IT.properties
index 2507bc7af7..ced177271a 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_it_IT.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_it_IT.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Plugin Marketplace
-MarketplaceLifecycleEnv.Help=Il set di plugin è definito in un file hop-env. Queste opzioni controllano quando Hop verifica quel file per questo ambiente di lifecycle (flessibile in dev; rigoroso in produzione).
-MarketplaceLifecycleEnv.EnvFile.Label=File ambiente
+MarketplaceLifecycleEnv.Help=Il set di plugin è definito in una specifica di installazione Hop (hop-env.yaml), non in questo ambiente di lifecycle. Queste opzioni controllano quando Hop verifica quella specifica per questo ambiente (flessibile in dev; rigoroso in produzione).
+MarketplaceLifecycleEnv.EnvFile.Label=Specifica di installazione
MarketplaceLifecycleEnv.Button.Browse=Sfoglia…
MarketplaceLifecycleEnv.Button.EditEnv=Modifica…
MarketplaceLifecycleEnv.OnEnable.Label=All'abilitazione
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: nessun controllo; warn: log/dialogo in caso di scostamento; enforce: fallire l'abilitazione dell'ambiente in caso di scostamento
MarketplaceLifecycleEnv.Strict.Label=Rigoroso (fallire se sono installati plugin marketplace extra)
-MarketplaceLifecycleEnv.Strict.Tooltip=In validazione, considera anche come scostamento i plugin marketplace con ricevuta non elencati nel file ambiente
+MarketplaceLifecycleEnv.Strict.Tooltip=In validazione, considera anche come scostamento i plugin marketplace con ricevuta non elencati nella specifica di installazione
MarketplaceLifecycleEnv.AutoApply.Label=Applica automaticamente i plugin mancanti all'abilitazione
MarketplaceLifecycleEnv.AutoApply.Tooltip=Se abilitato, esegue marketplace apply per i plugin mancanti (solo su macchine controllate; predefinito off)
MarketplaceDialog.Shell.Title=Marketplace dei plugin
MarketplaceDialog.Tab.Plugins=Plugin
MarketplaceDialog.Tab.Environment=Ambiente
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Repository
MarketplaceDialog.Repository.Label=Repository principale
MarketplaceDialog.Repository.SetPrimary.Error=Impossibile impostare il repository principale
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Password
ManageRepositoriesDialog.Edit.Enabled=Abilitato (usa nella catena di fallback)
ManageRepositoriesDialog.Edit.Primary=Principale (provato per primo)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id e URL sono obbligatori.
-HopEnvironmentDialog.Shell.Title=Ambiente Marketplace — {0}
-HopEnvironmentDialog.Untitled=Senza titolo
-HopEnvironmentDialog.Button.New=Nuovo
-HopEnvironmentDialog.Button.Open=Apri…
-HopEnvironmentDialog.Button.Save=Salva
-HopEnvironmentDialog.Button.SaveAs=Salva con nome…
-HopEnvironmentDialog.Button.Validate=Valida
-HopEnvironmentDialog.Button.Validate.Tooltip=Confronta l'installazione locale con questo file ambiente senza installare
-HopEnvironmentDialog.Button.Apply=Applica
-HopEnvironmentDialog.Button.Apply.Tooltip=Installa plugin e dipendenze dichiarati in questo file ambiente
-HopEnvironmentDialog.Button.Close=Chiudi
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=Annulla
-HopEnvironmentDialog.Button.Add=Aggiungi
-HopEnvironmentDialog.Button.Edit=Modifica
-HopEnvironmentDialog.Button.Remove=Rimuovi
-HopEnvironmentDialog.Button.MoveUp=Su
-HopEnvironmentDialog.Button.MoveDown=Giù
-HopEnvironmentDialog.Button.AddFromCatalog=Dal catalogo…
-HopEnvironmentDialog.Button.ImportRepos=Importa da hop-config…
-HopEnvironmentDialog.Prune=Rimuovi extra all'applicazione
-HopEnvironmentDialog.Prune.Tooltip=All'applicazione, disinstalla i plugin marketplace con ricevuta non elencati nel file
-HopEnvironmentDialog.Strict=Validazione rigorosa
-HopEnvironmentDialog.Strict.Tooltip=In validazione, fallire anche se sono installati plugin marketplace extra oltre al file
-HopEnvironmentDialog.Filter.Yaml=Ambiente YAML (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=Ambiente JSON (*.json)
-HopEnvironmentDialog.Tab.General=Generale
-HopEnvironmentDialog.Tab.Repositories=Repository
-HopEnvironmentDialog.Tab.Plugins=Plugin
-HopEnvironmentDialog.Tab.Dependencies=Dipendenze
-HopEnvironmentDialog.General.Help=Dichiarare quali plugin e jar deve avere questa installazione Hop. Salvare come hop-env.yaml per CI/Docker, oppure usare Valida / Applica in questa finestra.
-HopEnvironmentDialog.General.Version=Versione specifica
-HopEnvironmentDialog.General.HopVersion=Versione Hop
-HopEnvironmentDialog.General.EnforceOnRun=Applica su hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Se true, hop-run può fallire se l'installazione si discosta da questo file (anche controllato da -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=La prima riga è principale (provata per prima); le successive sono fallback. Questi repository sono nel file ambiente (non hop-config). Preferire non committare le password.
-HopEnvironmentDialog.Plugins.Help=Plugin marketplace da installare. Lasciare Group ID vuoto per usare org.apache.hop. La versione può derivare dalla versione Hop nella scheda Generale all'applicazione.
-HopEnvironmentDialog.Dependencies.Help=Jar Maven opzionali (ad es. driver JDBC) installati sotto la directory di destinazione di Hop home (predefinito lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Nome utente
-HopEnvironmentDialog.Repo.Column.Password=Password
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Aggiungi repository
-HopEnvironmentDialog.Repo.Edit.Edit=Modifica repository
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Versione
-HopEnvironmentDialog.Plugin.Edit.Add=Aggiungi plugin
-HopEnvironmentDialog.Plugin.Edit.Edit=Modifica plugin
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Versione
-HopEnvironmentDialog.Dep.Column.Target=Destinazione
-HopEnvironmentDialog.Dep.Edit.Add=Aggiungi dipendenza
-HopEnvironmentDialog.Dep.Edit.Edit=Modifica dipendenza
-HopEnvironmentDialog.Dirty.Header=Modifiche non salvate
-HopEnvironmentDialog.Dirty.Message=Salvare le modifiche al file ambiente prima di continuare?
-HopEnvironmentDialog.SaveFirst.Header=Salvare il file ambiente?
-HopEnvironmentDialog.SaveFirst.Message=Salvare il file ambiente prima di Valida o Applica?
-HopEnvironmentDialog.Validation.Header=Ambiente non valido
-HopEnvironmentDialog.Validation.RepoIdUrl=Ogni repository richiede un Id e un URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Ogni plugin richiede un Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Ogni dipendenza richiede Group ID, Artifact ID e Version.
-HopEnvironmentDialog.ImportRepos.Header=Importa repository
-HopEnvironmentDialog.ImportRepos.Message=Sostituire l'elenco dei repository con i repository abilitati da hop-config.json?
-HopEnvironmentDialog.Error.Header=Errore dell'editor ambiente
-HopEnvironmentDialog.Error.Load=Impossibile caricare il file ambiente:\n{0}
-HopEnvironmentDialog.Error.Save=Impossibile salvare il file ambiente:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=Impossibile importare i repository da hop-config
+HopInstallSpecEditor.Shell.Title=Ambiente Marketplace — {0}
+HopInstallSpecEditor.Untitled=Senza titolo
+HopInstallSpecEditor.Button.New=Nuovo
+HopInstallSpecEditor.Button.Open=Apri…
+HopInstallSpecEditor.Button.Save=Salva
+HopInstallSpecEditor.Button.SaveAs=Salva con nome…
+HopInstallSpecEditor.Button.Validate=Valida
+HopInstallSpecEditor.Button.Validate.Tooltip=Confronta l'installazione locale con questo file ambiente senza installare
+HopInstallSpecEditor.Button.Apply=Applica
+HopInstallSpecEditor.Button.Apply.Tooltip=Installa plugin e dipendenze dichiarati in questo file ambiente
+HopInstallSpecEditor.Button.Close=Chiudi
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=Annulla
+HopInstallSpecEditor.Button.Add=Aggiungi
+HopInstallSpecEditor.Button.Edit=Modifica
+HopInstallSpecEditor.Button.Remove=Rimuovi
+HopInstallSpecEditor.Button.MoveUp=Su
+HopInstallSpecEditor.Button.MoveDown=Giù
+HopInstallSpecEditor.Button.AddFromCatalog=Dal catalogo…
+HopInstallSpecEditor.Button.ImportRepos=Importa da hop-config…
+HopInstallSpecEditor.Prune=Rimuovi extra all'applicazione
+HopInstallSpecEditor.Prune.Tooltip=All'applicazione, disinstalla i plugin marketplace con ricevuta non elencati nel file
+HopInstallSpecEditor.Strict=Validazione rigorosa
+HopInstallSpecEditor.Strict.Tooltip=In validazione, fallire anche se sono installati plugin marketplace extra oltre al file
+HopInstallSpecEditor.Filter.Yaml=Ambiente YAML (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=Ambiente JSON (*.json)
+HopInstallSpecEditor.Tab.General=Generale
+HopInstallSpecEditor.Tab.Repositories=Repository
+HopInstallSpecEditor.Tab.Plugins=Plugin
+HopInstallSpecEditor.Tab.Dependencies=Dipendenze
+HopInstallSpecEditor.General.Help=Dichiarare quali plugin e jar deve avere questa installazione Hop. Salvare come hop-env.yaml per CI/Docker, oppure usare Valida / Applica in questa finestra.
+HopInstallSpecEditor.General.Version=Versione specifica
+HopInstallSpecEditor.General.HopVersion=Versione Hop
+HopInstallSpecEditor.General.EnforceOnRun=Applica su hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Se true, hop-run può fallire se l'installazione si discosta da questo file (anche controllato da -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=La prima riga è principale (provata per prima); le successive sono fallback. Questi repository sono nel file ambiente (non hop-config). Preferire non committare le password.
+HopInstallSpecEditor.Plugins.Help=Plugin marketplace da installare. Lasciare Group ID vuoto per usare org.apache.hop. La versione può derivare dalla versione Hop nella scheda Generale all'applicazione.
+HopInstallSpecEditor.Dependencies.Help=Jar Maven opzionali (ad es. driver JDBC) installati sotto la directory di destinazione di Hop home (predefinito lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Nome utente
+HopInstallSpecEditor.Repo.Column.Password=Password
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Aggiungi repository
+HopInstallSpecEditor.Repo.Edit.Edit=Modifica repository
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Versione
+HopInstallSpecEditor.Plugin.Edit.Add=Aggiungi plugin
+HopInstallSpecEditor.Plugin.Edit.Edit=Modifica plugin
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Versione
+HopInstallSpecEditor.Dep.Column.Target=Destinazione
+HopInstallSpecEditor.Dep.Edit.Add=Aggiungi dipendenza
+HopInstallSpecEditor.Dep.Edit.Edit=Modifica dipendenza
+HopInstallSpecEditor.Dirty.Header=Modifiche non salvate
+HopInstallSpecEditor.Dirty.Message=Salvare le modifiche al file ambiente prima di continuare?
+HopInstallSpecEditor.SaveFirst.Header=Salvare il file ambiente?
+HopInstallSpecEditor.SaveFirst.Message=Salvare il file ambiente prima di Valida o Applica?
+HopInstallSpecEditor.Validation.Header=Ambiente non valido
+HopInstallSpecEditor.Validation.RepoIdUrl=Ogni repository richiede un Id e un URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Ogni plugin richiede un Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Ogni dipendenza richiede Group ID, Artifact ID e Version.
+HopInstallSpecEditor.ImportRepos.Header=Importa repository
+HopInstallSpecEditor.ImportRepos.Message=Sostituire l'elenco dei repository con i repository abilitati da hop-config.json?
+HopInstallSpecEditor.Error.Header=Errore dell'editor ambiente
+HopInstallSpecEditor.Error.Load=Impossibile caricare il file ambiente:\n{0}
+HopInstallSpecEditor.Error.Save=Impossibile salvare il file ambiente:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=Impossibile importare i repository da hop-config
AddPluginsFromCatalogDialog.Shell.Title=Aggiungi plugin dal catalogo
AddPluginsFromCatalogDialog.Filter.Label=Filtro
AddPluginsFromCatalogDialog.Button.Add=Aggiungi selezionati
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_ja_JP.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_ja_JP.properties
index e7e28c5458..4f2f3f8d4a 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_ja_JP.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_ja_JP.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Marketplaceプラグイン
-MarketplaceLifecycleEnv.Help=プラグインのセットは hop-env ファイルで定義します。これらのオプションは、このライフサイクル環境で Hop がそのファイルをいつ確認するかを制御します(開発は緩く、本番は厳格に)。
-MarketplaceLifecycleEnv.EnvFile.Label=環境ファイル
+MarketplaceLifecycleEnv.Help=プラグインのセットは Hop インストール仕様 (hop-env.yaml) で定義します。ライフサイクル環境の設定ファイルではありません。これらのオプションは、この環境で Hop がその仕様をいつ確認するかを制御します(開発は緩く、本番は厳格に)。
+MarketplaceLifecycleEnv.EnvFile.Label=インストール仕様ファイル
MarketplaceLifecycleEnv.Button.Browse=参照…
MarketplaceLifecycleEnv.Button.EditEnv=編集…
MarketplaceLifecycleEnv.OnEnable.Label=有効化時
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: \u00E3\u0083\u0081\u00E3\u0082\u00A7\u00E3\u0083\u0083\u00E3\u0082\u00AF\u00E3\u0081\u00AA\u00E3\u0081\u0097; warn: \u00E5\u00B7\u00AE\u00E5\u0088\u0086\u00E6\u0099\u0082\u00E3\u0081\u00AB\u00E3\u0083\u00AD\u00E3\u0082\u00B0/\u00E3\u0083\u0080\u00E3\u0082\u00A4\u00E3\u0082\u00A2\u00E3\u0083\u00AD\u00E3\u0082\u00B0; enforce: \u00E5\u00B7\u00AE\u00E5\u0088\u0086\u00E6\u0099\u0082\u00E3\u0081\u00AB\u00E7\u0092\u00B0\u00E5\u00A2\u0083\u00E3\u0081 [...]
MarketplaceLifecycleEnv.Strict.Label=厳密(追加の Marketplace プラグインがインストールされている場合は失敗)
-MarketplaceLifecycleEnv.Strict.Tooltip=検証時、環境ファイルにないレシート付き Marketplace プラグインも差分として扱います
+MarketplaceLifecycleEnv.Strict.Tooltip=検証時、インストール仕様にないレシート付き Marketplace プラグインも差分として扱います
MarketplaceLifecycleEnv.AutoApply.Label=有効化時に不足プラグインを自動適用
MarketplaceLifecycleEnv.AutoApply.Tooltip=有効にすると、不足プラグインに対して marketplace apply を実行します(管理されたマシンのみ;既定はオフ)
MarketplaceDialog.Shell.Title=プラグイン Marketplace
MarketplaceDialog.Tab.Plugins=プラグイン
MarketplaceDialog.Tab.Environment=環境
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=リポジトリ
MarketplaceDialog.Repository.Label=プライマリリポジトリ
MarketplaceDialog.Repository.SetPrimary.Error=プライマリリポジトリを設定できませんでした
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=パスワード
ManageRepositoriesDialog.Edit.Enabled=有効(フォールバックチェーンで使用)
ManageRepositoriesDialog.Edit.Primary=プライマリ(最初に試行)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id と URL は必須です。
-HopEnvironmentDialog.Shell.Title=Marketplace 環境 — {0}
-HopEnvironmentDialog.Untitled=無題
-HopEnvironmentDialog.Button.New=新規
-HopEnvironmentDialog.Button.Open=開く…
-HopEnvironmentDialog.Button.Save=保存
-HopEnvironmentDialog.Button.SaveAs=名前を付けて保存…
-HopEnvironmentDialog.Button.Validate=検証
-HopEnvironmentDialog.Button.Validate.Tooltip=インストールせずにローカル環境とこの環境ファイルを照合します
-HopEnvironmentDialog.Button.Apply=適用
-HopEnvironmentDialog.Button.Apply.Tooltip=この環境ファイルで宣言されたプラグインと依存関係をインストールします
-HopEnvironmentDialog.Button.Close=閉じる
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=キャンセル
-HopEnvironmentDialog.Button.Add=追加
-HopEnvironmentDialog.Button.Edit=編集
-HopEnvironmentDialog.Button.Remove=削除
-HopEnvironmentDialog.Button.MoveUp=上へ
-HopEnvironmentDialog.Button.MoveDown=下へ
-HopEnvironmentDialog.Button.AddFromCatalog=カタログから…
-HopEnvironmentDialog.Button.ImportRepos=hop-config からインポート…
-HopEnvironmentDialog.Prune=適用時に余分なものを削除
-HopEnvironmentDialog.Prune.Tooltip=適用時、ファイルにないレシート付き Marketplace プラグインをアンインストールします
-HopEnvironmentDialog.Strict=厳密な検証
-HopEnvironmentDialog.Strict.Tooltip=検証時、ファイル以外の追加 Marketplace プラグインがインストールされている場合も失敗します
-HopEnvironmentDialog.Filter.Yaml=YAML 環境 (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=JSON 環境 (*.json)
-HopEnvironmentDialog.Tab.General=全般
-HopEnvironmentDialog.Tab.Repositories=リポジトリ
-HopEnvironmentDialog.Tab.Plugins=プラグイン
-HopEnvironmentDialog.Tab.Dependencies=依存関係
-HopEnvironmentDialog.General.Help=この Hop インストールに必要なプラグインと JAR を宣言します。CI/Docker 用に hop-env.yaml として保存するか、このダイアログで検証/適用を使用します。
-HopEnvironmentDialog.General.Version=仕様バージョン
-HopEnvironmentDialog.General.HopVersion=Hop バージョン
-HopEnvironmentDialog.General.EnforceOnRun=hop-run で強制
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=true の場合、インストールがこのファイルから逸脱すると hop-run が失敗できます(-Dhop.env.enforce=true でも制御)
-HopEnvironmentDialog.Repositories.Help=最初の行がプライマリ(最初に試行)、以降はフォールバックです。これらのリポジトリは環境ファイル内にあり(hop-config ではありません)。パスワードはコミットしないでください。
-HopEnvironmentDialog.Plugins.Help=インストールする Marketplace プラグイン。Group ID を空にすると org.apache.hop を使用します。適用時に全般タブの Hop バージョンが既定になることがあります。
-HopEnvironmentDialog.Dependencies.Help=オプションの Maven JAR(例: JDBC ドライバ)。Hop ホームのターゲットディレクトリ配下にインストール(既定 lib/jdbc)。
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=ユーザー名
-HopEnvironmentDialog.Repo.Column.Password=パスワード
-HopEnvironmentDialog.Repo.Column.Auth=認証
-HopEnvironmentDialog.Repo.Edit.Add=リポジトリを追加
-HopEnvironmentDialog.Repo.Edit.Edit=リポジトリを編集
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=バージョン
-HopEnvironmentDialog.Plugin.Edit.Add=プラグインを追加
-HopEnvironmentDialog.Plugin.Edit.Edit=プラグインを編集
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=バージョン
-HopEnvironmentDialog.Dep.Column.Target=ターゲット
-HopEnvironmentDialog.Dep.Edit.Add=依存関係を追加
-HopEnvironmentDialog.Dep.Edit.Edit=依存関係を編集
-HopEnvironmentDialog.Dirty.Header=未保存の変更
-HopEnvironmentDialog.Dirty.Message=続行する前に環境ファイルの変更を保存しますか?
-HopEnvironmentDialog.SaveFirst.Header=環境ファイルを保存しますか?
-HopEnvironmentDialog.SaveFirst.Message=検証または適用の前に環境ファイルを保存しますか?
-HopEnvironmentDialog.Validation.Header=無効な環境
-HopEnvironmentDialog.Validation.RepoIdUrl=各リポジトリには Id と URL が必要です。
-HopEnvironmentDialog.Validation.PluginArtifact=各プラグインには Artifact ID が必要です。
-HopEnvironmentDialog.Validation.DepGav=各依存関係には Group ID、Artifact ID、Version が必要です。
-HopEnvironmentDialog.ImportRepos.Header=リポジトリをインポート
-HopEnvironmentDialog.ImportRepos.Message=リポジトリ一覧を hop-config.json の有効なリポジトリで置き換えますか?
-HopEnvironmentDialog.Error.Header=環境エディタエラー
-HopEnvironmentDialog.Error.Load=環境ファイルを読み込めませんでした:\n{0}
-HopEnvironmentDialog.Error.Save=環境ファイルを保存できませんでした:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=hop-config からリポジトリをインポートできませんでした
+HopInstallSpecEditor.Shell.Title=Marketplace 環境 — {0}
+HopInstallSpecEditor.Untitled=無題
+HopInstallSpecEditor.Button.New=新規
+HopInstallSpecEditor.Button.Open=開く…
+HopInstallSpecEditor.Button.Save=保存
+HopInstallSpecEditor.Button.SaveAs=名前を付けて保存…
+HopInstallSpecEditor.Button.Validate=検証
+HopInstallSpecEditor.Button.Validate.Tooltip=インストールせずにローカル環境とこの環境ファイルを照合します
+HopInstallSpecEditor.Button.Apply=適用
+HopInstallSpecEditor.Button.Apply.Tooltip=この環境ファイルで宣言されたプラグインと依存関係をインストールします
+HopInstallSpecEditor.Button.Close=閉じる
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=キャンセル
+HopInstallSpecEditor.Button.Add=追加
+HopInstallSpecEditor.Button.Edit=編集
+HopInstallSpecEditor.Button.Remove=削除
+HopInstallSpecEditor.Button.MoveUp=上へ
+HopInstallSpecEditor.Button.MoveDown=下へ
+HopInstallSpecEditor.Button.AddFromCatalog=カタログから…
+HopInstallSpecEditor.Button.ImportRepos=hop-config からインポート…
+HopInstallSpecEditor.Prune=適用時に余分なものを削除
+HopInstallSpecEditor.Prune.Tooltip=適用時、ファイルにないレシート付き Marketplace プラグインをアンインストールします
+HopInstallSpecEditor.Strict=厳密な検証
+HopInstallSpecEditor.Strict.Tooltip=検証時、ファイル以外の追加 Marketplace プラグインがインストールされている場合も失敗します
+HopInstallSpecEditor.Filter.Yaml=YAML 環境 (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=JSON 環境 (*.json)
+HopInstallSpecEditor.Tab.General=全般
+HopInstallSpecEditor.Tab.Repositories=リポジトリ
+HopInstallSpecEditor.Tab.Plugins=プラグイン
+HopInstallSpecEditor.Tab.Dependencies=依存関係
+HopInstallSpecEditor.General.Help=この Hop インストールに必要なプラグインと JAR を宣言します。CI/Docker 用に hop-env.yaml として保存するか、このダイアログで検証/適用を使用します。
+HopInstallSpecEditor.General.Version=仕様バージョン
+HopInstallSpecEditor.General.HopVersion=Hop バージョン
+HopInstallSpecEditor.General.EnforceOnRun=hop-run で強制
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=true の場合、インストールがこのファイルから逸脱すると hop-run が失敗できます(-Dhop.env.enforce=true でも制御)
+HopInstallSpecEditor.Repositories.Help=最初の行がプライマリ(最初に試行)、以降はフォールバックです。これらのリポジトリは環境ファイル内にあり(hop-config ではありません)。パスワードはコミットしないでください。
+HopInstallSpecEditor.Plugins.Help=インストールする Marketplace プラグイン。Group ID を空にすると org.apache.hop を使用します。適用時に全般タブの Hop バージョンが既定になることがあります。
+HopInstallSpecEditor.Dependencies.Help=オプションの Maven JAR(例: JDBC ドライバ)。Hop ホームのターゲットディレクトリ配下にインストール(既定 lib/jdbc)。
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=ユーザー名
+HopInstallSpecEditor.Repo.Column.Password=パスワード
+HopInstallSpecEditor.Repo.Column.Auth=認証
+HopInstallSpecEditor.Repo.Edit.Add=リポジトリを追加
+HopInstallSpecEditor.Repo.Edit.Edit=リポジトリを編集
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=バージョン
+HopInstallSpecEditor.Plugin.Edit.Add=プラグインを追加
+HopInstallSpecEditor.Plugin.Edit.Edit=プラグインを編集
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=バージョン
+HopInstallSpecEditor.Dep.Column.Target=ターゲット
+HopInstallSpecEditor.Dep.Edit.Add=依存関係を追加
+HopInstallSpecEditor.Dep.Edit.Edit=依存関係を編集
+HopInstallSpecEditor.Dirty.Header=未保存の変更
+HopInstallSpecEditor.Dirty.Message=続行する前に環境ファイルの変更を保存しますか?
+HopInstallSpecEditor.SaveFirst.Header=環境ファイルを保存しますか?
+HopInstallSpecEditor.SaveFirst.Message=検証または適用の前に環境ファイルを保存しますか?
+HopInstallSpecEditor.Validation.Header=無効な環境
+HopInstallSpecEditor.Validation.RepoIdUrl=各リポジトリには Id と URL が必要です。
+HopInstallSpecEditor.Validation.PluginArtifact=各プラグインには Artifact ID が必要です。
+HopInstallSpecEditor.Validation.DepGav=各依存関係には Group ID、Artifact ID、Version が必要です。
+HopInstallSpecEditor.ImportRepos.Header=リポジトリをインポート
+HopInstallSpecEditor.ImportRepos.Message=リポジトリ一覧を hop-config.json の有効なリポジトリで置き換えますか?
+HopInstallSpecEditor.Error.Header=環境エディタエラー
+HopInstallSpecEditor.Error.Load=環境ファイルを読み込めませんでした:\n{0}
+HopInstallSpecEditor.Error.Save=環境ファイルを保存できませんでした:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=hop-config からリポジトリをインポートできませんでした
AddPluginsFromCatalogDialog.Shell.Title=カタログからプラグインを追加
AddPluginsFromCatalogDialog.Filter.Label=フィルタ
AddPluginsFromCatalogDialog.Button.Add=選択を追加
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_ko_KR.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_ko_KR.properties
index f743d8879e..50992154ed 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_ko_KR.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_ko_KR.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Marketplace 플러그인
-MarketplaceLifecycleEnv.Help=플러그인 집합은 hop-env 파일에 정의됩니다. 이 옵션은 이 라이프사이클 환경에서 Hop이 해당 파일을 언제 검사할지 제어합니다(개발은 유연, 운영은 엄격).
-MarketplaceLifecycleEnv.EnvFile.Label=환경 파일
+MarketplaceLifecycleEnv.Help=플러그인 집합은 Hop 설치 사양(hop-env.yaml)에 정의되며, 이 라이프사이클 환경이 아닙니다. 이 옵션은 이 환경에서 Hop이 해당 사양을 언제 검사할지 제어합니다(개발은 유연, 운영은 엄격).
+MarketplaceLifecycleEnv.EnvFile.Label=설치 사양 파일
MarketplaceLifecycleEnv.Button.Browse=찾아보기…
MarketplaceLifecycleEnv.Button.EditEnv=편집…
MarketplaceLifecycleEnv.OnEnable.Label=활성화 시
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: \u00EA\u00B2\u0080\u00EC\u0082\u00AC \u00EC\u0095\u0088 \u00ED\u0095\u00A8; warn: \u00EB\u00B6\u0088\u00EC\u009D\u00BC\u00EC\u00B9\u0098 \u00EC\u008B\u009C \u00EB\u00A1\u009C\u00EA\u00B7\u00B8/\u00EB\u008C\u0080\u00ED\u0099\u0094\u00EC\u0083\u0081\u00EC\u009E\u0090; enforce: \u00EB\u00B6\u0088\u00EC\u009D\u00BC\u00EC\u00B9\u0098 \u00EC\u008B\u009C \u00ED\u0099\u0098\u00EA\u00B2\u00BD \u00ED\u0099\u009C\u00EC\u0084\u00B1\u00ED\u0099\u0094 \u00 [...]
MarketplaceLifecycleEnv.Strict.Label=엄격(추가 Marketplace 플러그인이 설치되어 있으면 실패)
-MarketplaceLifecycleEnv.Strict.Tooltip=검증 시 환경 파일에 없는 영수증이 있는 Marketplace 플러그인도 불일치로 처리합니다
+MarketplaceLifecycleEnv.Strict.Tooltip=검증 시 설치 사양에 없는 영수증이 있는 Marketplace 플러그인도 불일치로 처리합니다
MarketplaceLifecycleEnv.AutoApply.Label=활성화 시 누락된 플러그인 자동 적용
MarketplaceLifecycleEnv.AutoApply.Tooltip=활성화하면 누락된 플러그인에 대해 marketplace apply를 실행합니다(통제된 머신만; 기본 꺼짐)
MarketplaceDialog.Shell.Title=플러그인 Marketplace
MarketplaceDialog.Tab.Plugins=플러그인
MarketplaceDialog.Tab.Environment=환경
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=리포지토리
MarketplaceDialog.Repository.Label=기본 리포지토리
MarketplaceDialog.Repository.SetPrimary.Error=기본 리포지토리를 설정할 수 없습니다
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=비밀번호
ManageRepositoriesDialog.Edit.Enabled=사용(대체 체인에서 사용)
ManageRepositoriesDialog.Edit.Primary=기본(먼저 시도)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id와 URL이 필요합니다.
-HopEnvironmentDialog.Shell.Title=Marketplace 환경 — {0}
-HopEnvironmentDialog.Untitled=제목 없음
-HopEnvironmentDialog.Button.New=새로 만들기
-HopEnvironmentDialog.Button.Open=열기…
-HopEnvironmentDialog.Button.Save=저장
-HopEnvironmentDialog.Button.SaveAs=다른 이름으로 저장…
-HopEnvironmentDialog.Button.Validate=검증
-HopEnvironmentDialog.Button.Validate.Tooltip=설치하지 않고 로컬 설치를 이 환경 파일과 대조합니다
-HopEnvironmentDialog.Button.Apply=적용
-HopEnvironmentDialog.Button.Apply.Tooltip=이 환경 파일에 선언된 플러그인 및 종속성을 설치합니다
-HopEnvironmentDialog.Button.Close=닫기
-HopEnvironmentDialog.Button.Ok=확인
-HopEnvironmentDialog.Button.Cancel=취소
-HopEnvironmentDialog.Button.Add=추가
-HopEnvironmentDialog.Button.Edit=편집
-HopEnvironmentDialog.Button.Remove=제거
-HopEnvironmentDialog.Button.MoveUp=위로
-HopEnvironmentDialog.Button.MoveDown=아래로
-HopEnvironmentDialog.Button.AddFromCatalog=카탈로그에서…
-HopEnvironmentDialog.Button.ImportRepos=hop-config에서 가져오기…
-HopEnvironmentDialog.Prune=적용 시 추가 항목 제거
-HopEnvironmentDialog.Prune.Tooltip=적용 시 파일에 없는 영수증이 있는 Marketplace 플러그인을 제거합니다
-HopEnvironmentDialog.Strict=엄격 검증
-HopEnvironmentDialog.Strict.Tooltip=검증 시 파일 범위를 넘는 추가 Marketplace 플러그인이 설치되어 있어도 실패합니다
-HopEnvironmentDialog.Filter.Yaml=YAML 환경 (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=JSON 환경 (*.json)
-HopEnvironmentDialog.Tab.General=일반
-HopEnvironmentDialog.Tab.Repositories=리포지토리
-HopEnvironmentDialog.Tab.Plugins=플러그인
-HopEnvironmentDialog.Tab.Dependencies=종속성
-HopEnvironmentDialog.General.Help=이 Hop 설치에 있어야 할 플러그인과 jar를 선언하세요. CI/Docker용 hop-env.yaml로 저장하거나 이 대화상자에서 검증/적용을 사용하세요.
-HopEnvironmentDialog.General.Version=스펙 버전
-HopEnvironmentDialog.General.HopVersion=Hop 버전
-HopEnvironmentDialog.General.EnforceOnRun=hop-run에서 강제
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=true이면 설치가 이 파일에서 벗어나면 hop-run이 실패할 수 있습니다(-Dhop.env.enforce=true로도 제어)
-HopEnvironmentDialog.Repositories.Help=첫 행이 기본(먼저 시도)이고 이후 행은 대체입니다. 이 리포지토리는 환경 파일에 있으며(hop-config 아님) 비밀번호는 커밋하지 않는 것이 좋습니다.
-HopEnvironmentDialog.Plugins.Help=설치할 Marketplace 플러그인. Group ID를 비우면 org.apache.hop을 사용합니다. 적용 시 일반 탭의 Hop 버전이 기본값이 될 수 있습니다.
-HopEnvironmentDialog.Dependencies.Help=선택적 Maven jar(예: JDBC 드라이버). Hop 홈의 대상 디렉터리 아래에 설치됩니다(기본 lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=사용자 이름
-HopEnvironmentDialog.Repo.Column.Password=비밀번호
-HopEnvironmentDialog.Repo.Column.Auth=인증
-HopEnvironmentDialog.Repo.Edit.Add=리포지토리 추가
-HopEnvironmentDialog.Repo.Edit.Edit=리포지토리 편집
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=버전
-HopEnvironmentDialog.Plugin.Edit.Add=플러그인 추가
-HopEnvironmentDialog.Plugin.Edit.Edit=플러그인 편집
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=버전
-HopEnvironmentDialog.Dep.Column.Target=대상
-HopEnvironmentDialog.Dep.Edit.Add=종속성 추가
-HopEnvironmentDialog.Dep.Edit.Edit=종속성 편집
-HopEnvironmentDialog.Dirty.Header=저장되지 않은 변경 사항
-HopEnvironmentDialog.Dirty.Message=계속하기 전에 환경 파일 변경 사항을 저장할까요?
-HopEnvironmentDialog.SaveFirst.Header=환경 파일을 저장할까요?
-HopEnvironmentDialog.SaveFirst.Message=검증 또는 적용 전에 환경 파일을 저장할까요?
-HopEnvironmentDialog.Validation.Header=잘못된 환경
-HopEnvironmentDialog.Validation.RepoIdUrl=각 리포지토리에는 Id와 URL이 필요합니다.
-HopEnvironmentDialog.Validation.PluginArtifact=각 플러그인에는 Artifact ID가 필요합니다.
-HopEnvironmentDialog.Validation.DepGav=각 종속성에는 Group ID, Artifact ID 및 Version이 필요합니다.
-HopEnvironmentDialog.ImportRepos.Header=리포지토리 가져오기
-HopEnvironmentDialog.ImportRepos.Message=리포지토리 목록을 hop-config.json의 사용 중인 리포지토리로 바꿀까요?
-HopEnvironmentDialog.Error.Header=환경 편집기 오류
-HopEnvironmentDialog.Error.Load=환경 파일을 로드할 수 없습니다:\n{0}
-HopEnvironmentDialog.Error.Save=환경 파일을 저장할 수 없습니다:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=hop-config에서 리포지토리를 가져올 수 없습니다
+HopInstallSpecEditor.Shell.Title=Marketplace 환경 — {0}
+HopInstallSpecEditor.Untitled=제목 없음
+HopInstallSpecEditor.Button.New=새로 만들기
+HopInstallSpecEditor.Button.Open=열기…
+HopInstallSpecEditor.Button.Save=저장
+HopInstallSpecEditor.Button.SaveAs=다른 이름으로 저장…
+HopInstallSpecEditor.Button.Validate=검증
+HopInstallSpecEditor.Button.Validate.Tooltip=설치하지 않고 로컬 설치를 이 환경 파일과 대조합니다
+HopInstallSpecEditor.Button.Apply=적용
+HopInstallSpecEditor.Button.Apply.Tooltip=이 환경 파일에 선언된 플러그인 및 종속성을 설치합니다
+HopInstallSpecEditor.Button.Close=닫기
+HopInstallSpecEditor.Button.Ok=확인
+HopInstallSpecEditor.Button.Cancel=취소
+HopInstallSpecEditor.Button.Add=추가
+HopInstallSpecEditor.Button.Edit=편집
+HopInstallSpecEditor.Button.Remove=제거
+HopInstallSpecEditor.Button.MoveUp=위로
+HopInstallSpecEditor.Button.MoveDown=아래로
+HopInstallSpecEditor.Button.AddFromCatalog=카탈로그에서…
+HopInstallSpecEditor.Button.ImportRepos=hop-config에서 가져오기…
+HopInstallSpecEditor.Prune=적용 시 추가 항목 제거
+HopInstallSpecEditor.Prune.Tooltip=적용 시 파일에 없는 영수증이 있는 Marketplace 플러그인을 제거합니다
+HopInstallSpecEditor.Strict=엄격 검증
+HopInstallSpecEditor.Strict.Tooltip=검증 시 파일 범위를 넘는 추가 Marketplace 플러그인이 설치되어 있어도 실패합니다
+HopInstallSpecEditor.Filter.Yaml=YAML 환경 (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=JSON 환경 (*.json)
+HopInstallSpecEditor.Tab.General=일반
+HopInstallSpecEditor.Tab.Repositories=리포지토리
+HopInstallSpecEditor.Tab.Plugins=플러그인
+HopInstallSpecEditor.Tab.Dependencies=종속성
+HopInstallSpecEditor.General.Help=이 Hop 설치에 있어야 할 플러그인과 jar를 선언하세요. CI/Docker용 hop-env.yaml로 저장하거나 이 대화상자에서 검증/적용을 사용하세요.
+HopInstallSpecEditor.General.Version=스펙 버전
+HopInstallSpecEditor.General.HopVersion=Hop 버전
+HopInstallSpecEditor.General.EnforceOnRun=hop-run에서 강제
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=true이면 설치가 이 파일에서 벗어나면 hop-run이 실패할 수 있습니다(-Dhop.env.enforce=true로도 제어)
+HopInstallSpecEditor.Repositories.Help=첫 행이 기본(먼저 시도)이고 이후 행은 대체입니다. 이 리포지토리는 환경 파일에 있으며(hop-config 아님) 비밀번호는 커밋하지 않는 것이 좋습니다.
+HopInstallSpecEditor.Plugins.Help=설치할 Marketplace 플러그인. Group ID를 비우면 org.apache.hop을 사용합니다. 적용 시 일반 탭의 Hop 버전이 기본값이 될 수 있습니다.
+HopInstallSpecEditor.Dependencies.Help=선택적 Maven jar(예: JDBC 드라이버). Hop 홈의 대상 디렉터리 아래에 설치됩니다(기본 lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=사용자 이름
+HopInstallSpecEditor.Repo.Column.Password=비밀번호
+HopInstallSpecEditor.Repo.Column.Auth=인증
+HopInstallSpecEditor.Repo.Edit.Add=리포지토리 추가
+HopInstallSpecEditor.Repo.Edit.Edit=리포지토리 편집
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=버전
+HopInstallSpecEditor.Plugin.Edit.Add=플러그인 추가
+HopInstallSpecEditor.Plugin.Edit.Edit=플러그인 편집
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=버전
+HopInstallSpecEditor.Dep.Column.Target=대상
+HopInstallSpecEditor.Dep.Edit.Add=종속성 추가
+HopInstallSpecEditor.Dep.Edit.Edit=종속성 편집
+HopInstallSpecEditor.Dirty.Header=저장되지 않은 변경 사항
+HopInstallSpecEditor.Dirty.Message=계속하기 전에 환경 파일 변경 사항을 저장할까요?
+HopInstallSpecEditor.SaveFirst.Header=환경 파일을 저장할까요?
+HopInstallSpecEditor.SaveFirst.Message=검증 또는 적용 전에 환경 파일을 저장할까요?
+HopInstallSpecEditor.Validation.Header=잘못된 환경
+HopInstallSpecEditor.Validation.RepoIdUrl=각 리포지토리에는 Id와 URL이 필요합니다.
+HopInstallSpecEditor.Validation.PluginArtifact=각 플러그인에는 Artifact ID가 필요합니다.
+HopInstallSpecEditor.Validation.DepGav=각 종속성에는 Group ID, Artifact ID 및 Version이 필요합니다.
+HopInstallSpecEditor.ImportRepos.Header=리포지토리 가져오기
+HopInstallSpecEditor.ImportRepos.Message=리포지토리 목록을 hop-config.json의 사용 중인 리포지토리로 바꿀까요?
+HopInstallSpecEditor.Error.Header=환경 편집기 오류
+HopInstallSpecEditor.Error.Load=환경 파일을 로드할 수 없습니다:\n{0}
+HopInstallSpecEditor.Error.Save=환경 파일을 저장할 수 없습니다:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=hop-config에서 리포지토리를 가져올 수 없습니다
AddPluginsFromCatalogDialog.Shell.Title=카탈로그에서 플러그인 추가
AddPluginsFromCatalogDialog.Filter.Label=필터
AddPluginsFromCatalogDialog.Button.Add=선택 항목 추가
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_nl_NL.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_nl_NL.properties
index 1950e506b3..0a721b0b3f 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_nl_NL.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_nl_NL.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Marketplace-plugins
-MarketplaceLifecycleEnv.Help=De pluginset wordt gedefinieerd in een hop-env-bestand. Deze opties bepalen wanneer Hop dat bestand controleert voor deze lifecycle-omgeving (los in development; strikt in productie).
-MarketplaceLifecycleEnv.EnvFile.Label=Omgevingsbestand
+MarketplaceLifecycleEnv.Help=De pluginset wordt gedefinieerd in een Hop-installatiespecificatie (hop-env.yaml), niet in deze lifecycle-omgeving. Deze opties bepalen wanneer Hop die specificatie controleert voor deze omgeving (los in development; strikt in productie).
+MarketplaceLifecycleEnv.EnvFile.Label=Installatiespecificatie
MarketplaceLifecycleEnv.Button.Browse=Bladeren…
MarketplaceLifecycleEnv.Button.EditEnv=Bewerken…
MarketplaceLifecycleEnv.OnEnable.Label=Bij activeren
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: geen controle; warn: log/dialoog bij afwijking; enforce: activeren van de omgeving mislukt bij afwijking
MarketplaceLifecycleEnv.Strict.Label=Strikt (mislukken als er extra marketplace-plugins geïnstalleerd zijn)
-MarketplaceLifecycleEnv.Strict.Tooltip=Bij validatie ook marketplace-plugins met receipt die niet in het env-bestand staan als afwijking behandelen
+MarketplaceLifecycleEnv.Strict.Tooltip=Bij validatie ook marketplace-plugins met receipt die niet in de installatiespecificatie staan als afwijking behandelen
MarketplaceLifecycleEnv.AutoApply.Label=Ontbrekende plugins automatisch toepassen bij activeren
MarketplaceLifecycleEnv.AutoApply.Tooltip=Indien ingeschakeld, voert marketplace apply uit voor ontbrekende plugins (alleen op gecontroleerde machines; standaard uit)
MarketplaceDialog.Shell.Title=Plugin-marketplace
MarketplaceDialog.Tab.Plugins=Plugins
MarketplaceDialog.Tab.Environment=Omgeving
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Repositories
MarketplaceDialog.Repository.Label=Primaire repository
MarketplaceDialog.Repository.SetPrimary.Error=Kon de primaire repository niet instellen
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Wachtwoord
ManageRepositoriesDialog.Edit.Enabled=Ingeschakeld (gebruiken in fallback-keten)
ManageRepositoriesDialog.Edit.Primary=Primair (eerst geprobeerd)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id en URL zijn verplicht.
-HopEnvironmentDialog.Shell.Title=Marketplace-omgeving — {0}
-HopEnvironmentDialog.Untitled=Naamloos
-HopEnvironmentDialog.Button.New=Nieuw
-HopEnvironmentDialog.Button.Open=Openen…
-HopEnvironmentDialog.Button.Save=Opslaan
-HopEnvironmentDialog.Button.SaveAs=Opslaan als…
-HopEnvironmentDialog.Button.Validate=Valideren
-HopEnvironmentDialog.Button.Validate.Tooltip=Lokale installatie controleren tegen dit omgevingsbestand zonder te installeren
-HopEnvironmentDialog.Button.Apply=Toepassen
-HopEnvironmentDialog.Button.Apply.Tooltip=Plugins en afhankelijkheden uit dit omgevingsbestand installeren
-HopEnvironmentDialog.Button.Close=Sluiten
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=Annuleren
-HopEnvironmentDialog.Button.Add=Toevoegen
-HopEnvironmentDialog.Button.Edit=Bewerken
-HopEnvironmentDialog.Button.Remove=Verwijderen
-HopEnvironmentDialog.Button.MoveUp=Omhoog
-HopEnvironmentDialog.Button.MoveDown=Omlaag
-HopEnvironmentDialog.Button.AddFromCatalog=Uit catalogus…
-HopEnvironmentDialog.Button.ImportRepos=Importeren uit hop-config…
-HopEnvironmentDialog.Prune=Extra's bij toepassen opruimen
-HopEnvironmentDialog.Prune.Tooltip=Bij toepassen marketplace-plugins met receipt deïnstalleren die niet in het bestand staan
-HopEnvironmentDialog.Strict=Strikte validatie
-HopEnvironmentDialog.Strict.Tooltip=Bij validatie ook mislukken als er extra marketplace-plugins buiten het bestand geïnstalleerd zijn
-HopEnvironmentDialog.Filter.Yaml=YAML-omgeving (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=JSON-omgeving (*.json)
-HopEnvironmentDialog.Tab.General=Algemeen
-HopEnvironmentDialog.Tab.Repositories=Repositories
-HopEnvironmentDialog.Tab.Plugins=Plugins
-HopEnvironmentDialog.Tab.Dependencies=Afhankelijkheden
-HopEnvironmentDialog.General.Help=Geef aan welke plugins en jars deze Hop-installatie moet hebben. Sla op als hop-env.yaml voor CI/Docker, of gebruik Valideren / Toepassen in dit dialoogvenster.
-HopEnvironmentDialog.General.Version=Specificatieversie
-HopEnvironmentDialog.General.HopVersion=Hop-versie
-HopEnvironmentDialog.General.EnforceOnRun=Afdwingen bij hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Indien true kan hop-run mislukken als de installatie van dit bestand afwijkt (ook gestuurd door -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=De eerste rij is primair (eerst geprobeerd); latere rijen zijn fallbacks. Deze repositories staan in het omgevingsbestand (niet hop-config). Commit bij voorkeur geen wachtwoorden.
-HopEnvironmentDialog.Plugins.Help=Te installeren marketplace-plugins. Laat Group ID leeg voor org.apache.hop. Versie kan bij toepassen van de Hop-versie op het tabblad Algemeen komen.
-HopEnvironmentDialog.Dependencies.Help=Optionele Maven-jars (bijv. JDBC-drivers) geïnstalleerd onder de doelmap van Hop home (standaard lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Gebruikersnaam
-HopEnvironmentDialog.Repo.Column.Password=Wachtwoord
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Repository toevoegen
-HopEnvironmentDialog.Repo.Edit.Edit=Repository bewerken
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Versie
-HopEnvironmentDialog.Plugin.Edit.Add=Plugin toevoegen
-HopEnvironmentDialog.Plugin.Edit.Edit=Plugin bewerken
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Versie
-HopEnvironmentDialog.Dep.Column.Target=Doel
-HopEnvironmentDialog.Dep.Edit.Add=Afhankelijkheid toevoegen
-HopEnvironmentDialog.Dep.Edit.Edit=Afhankelijkheid bewerken
-HopEnvironmentDialog.Dirty.Header=Niet-opgeslagen wijzigingen
-HopEnvironmentDialog.Dirty.Message=Wijzigingen in het omgevingsbestand opslaan voordat u doorgaat?
-HopEnvironmentDialog.SaveFirst.Header=Omgevingsbestand opslaan?
-HopEnvironmentDialog.SaveFirst.Message=Omgevingsbestand opslaan vóór Valideren of Toepassen?
-HopEnvironmentDialog.Validation.Header=Ongeldige omgeving
-HopEnvironmentDialog.Validation.RepoIdUrl=Elke repository heeft een Id en URL nodig.
-HopEnvironmentDialog.Validation.PluginArtifact=Elke plugin heeft een Artifact ID nodig.
-HopEnvironmentDialog.Validation.DepGav=Elke afhankelijkheid heeft Group ID, Artifact ID en Version nodig.
-HopEnvironmentDialog.ImportRepos.Header=Repositories importeren
-HopEnvironmentDialog.ImportRepos.Message=Repositorylijst vervangen door ingeschakelde repositories uit hop-config.json?
-HopEnvironmentDialog.Error.Header=Fout in omgevingseditor
-HopEnvironmentDialog.Error.Load=Kon omgevingsbestand niet laden:\n{0}
-HopEnvironmentDialog.Error.Save=Kon omgevingsbestand niet opslaan:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=Kon repositories niet importeren uit hop-config
+HopInstallSpecEditor.Shell.Title=Marketplace-omgeving — {0}
+HopInstallSpecEditor.Untitled=Naamloos
+HopInstallSpecEditor.Button.New=Nieuw
+HopInstallSpecEditor.Button.Open=Openen…
+HopInstallSpecEditor.Button.Save=Opslaan
+HopInstallSpecEditor.Button.SaveAs=Opslaan als…
+HopInstallSpecEditor.Button.Validate=Valideren
+HopInstallSpecEditor.Button.Validate.Tooltip=Lokale installatie controleren tegen dit omgevingsbestand zonder te installeren
+HopInstallSpecEditor.Button.Apply=Toepassen
+HopInstallSpecEditor.Button.Apply.Tooltip=Plugins en afhankelijkheden uit dit omgevingsbestand installeren
+HopInstallSpecEditor.Button.Close=Sluiten
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=Annuleren
+HopInstallSpecEditor.Button.Add=Toevoegen
+HopInstallSpecEditor.Button.Edit=Bewerken
+HopInstallSpecEditor.Button.Remove=Verwijderen
+HopInstallSpecEditor.Button.MoveUp=Omhoog
+HopInstallSpecEditor.Button.MoveDown=Omlaag
+HopInstallSpecEditor.Button.AddFromCatalog=Uit catalogus…
+HopInstallSpecEditor.Button.ImportRepos=Importeren uit hop-config…
+HopInstallSpecEditor.Prune=Extra's bij toepassen opruimen
+HopInstallSpecEditor.Prune.Tooltip=Bij toepassen marketplace-plugins met receipt deïnstalleren die niet in het bestand staan
+HopInstallSpecEditor.Strict=Strikte validatie
+HopInstallSpecEditor.Strict.Tooltip=Bij validatie ook mislukken als er extra marketplace-plugins buiten het bestand geïnstalleerd zijn
+HopInstallSpecEditor.Filter.Yaml=YAML-omgeving (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=JSON-omgeving (*.json)
+HopInstallSpecEditor.Tab.General=Algemeen
+HopInstallSpecEditor.Tab.Repositories=Repositories
+HopInstallSpecEditor.Tab.Plugins=Plugins
+HopInstallSpecEditor.Tab.Dependencies=Afhankelijkheden
+HopInstallSpecEditor.General.Help=Geef aan welke plugins en jars deze Hop-installatie moet hebben. Sla op als hop-env.yaml voor CI/Docker, of gebruik Valideren / Toepassen in dit dialoogvenster.
+HopInstallSpecEditor.General.Version=Specificatieversie
+HopInstallSpecEditor.General.HopVersion=Hop-versie
+HopInstallSpecEditor.General.EnforceOnRun=Afdwingen bij hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Indien true kan hop-run mislukken als de installatie van dit bestand afwijkt (ook gestuurd door -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=De eerste rij is primair (eerst geprobeerd); latere rijen zijn fallbacks. Deze repositories staan in het omgevingsbestand (niet hop-config). Commit bij voorkeur geen wachtwoorden.
+HopInstallSpecEditor.Plugins.Help=Te installeren marketplace-plugins. Laat Group ID leeg voor org.apache.hop. Versie kan bij toepassen van de Hop-versie op het tabblad Algemeen komen.
+HopInstallSpecEditor.Dependencies.Help=Optionele Maven-jars (bijv. JDBC-drivers) geïnstalleerd onder de doelmap van Hop home (standaard lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Gebruikersnaam
+HopInstallSpecEditor.Repo.Column.Password=Wachtwoord
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Repository toevoegen
+HopInstallSpecEditor.Repo.Edit.Edit=Repository bewerken
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Versie
+HopInstallSpecEditor.Plugin.Edit.Add=Plugin toevoegen
+HopInstallSpecEditor.Plugin.Edit.Edit=Plugin bewerken
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Versie
+HopInstallSpecEditor.Dep.Column.Target=Doel
+HopInstallSpecEditor.Dep.Edit.Add=Afhankelijkheid toevoegen
+HopInstallSpecEditor.Dep.Edit.Edit=Afhankelijkheid bewerken
+HopInstallSpecEditor.Dirty.Header=Niet-opgeslagen wijzigingen
+HopInstallSpecEditor.Dirty.Message=Wijzigingen in het omgevingsbestand opslaan voordat u doorgaat?
+HopInstallSpecEditor.SaveFirst.Header=Omgevingsbestand opslaan?
+HopInstallSpecEditor.SaveFirst.Message=Omgevingsbestand opslaan vóór Valideren of Toepassen?
+HopInstallSpecEditor.Validation.Header=Ongeldige omgeving
+HopInstallSpecEditor.Validation.RepoIdUrl=Elke repository heeft een Id en URL nodig.
+HopInstallSpecEditor.Validation.PluginArtifact=Elke plugin heeft een Artifact ID nodig.
+HopInstallSpecEditor.Validation.DepGav=Elke afhankelijkheid heeft Group ID, Artifact ID en Version nodig.
+HopInstallSpecEditor.ImportRepos.Header=Repositories importeren
+HopInstallSpecEditor.ImportRepos.Message=Repositorylijst vervangen door ingeschakelde repositories uit hop-config.json?
+HopInstallSpecEditor.Error.Header=Fout in omgevingseditor
+HopInstallSpecEditor.Error.Load=Kon omgevingsbestand niet laden:\n{0}
+HopInstallSpecEditor.Error.Save=Kon omgevingsbestand niet opslaan:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=Kon repositories niet importeren uit hop-config
AddPluginsFromCatalogDialog.Shell.Title=Plugins uit catalogus toevoegen
AddPluginsFromCatalogDialog.Filter.Label=Filter
AddPluginsFromCatalogDialog.Button.Add=Selectie toevoegen
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_no_NO.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_no_NO.properties
index 5d95bccb61..b3c182ed82 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_no_NO.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_no_NO.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Marketplace-plugins
-MarketplaceLifecycleEnv.Help=Plugin-settet defineres i en hop-env-fil. Disse alternativene styrer når Hop sjekker filen for dette livssyklusmiljøet (løst i dev; strengt i produksjon).
-MarketplaceLifecycleEnv.EnvFile.Label=Miljøfil
+MarketplaceLifecycleEnv.Help=Plugin-settet defineres i en Hop-installasjonsspesifikasjon (hop-env.yaml), ikke i dette livssyklusmiljøet. Disse alternativene styrer når Hop sjekker spesifikasjonen for dette miljøet (løst i dev; strengt i produksjon).
+MarketplaceLifecycleEnv.EnvFile.Label=Installasjonsspesifikasjon
MarketplaceLifecycleEnv.Button.Browse=Bla gjennom…
MarketplaceLifecycleEnv.Button.EditEnv=Rediger…
MarketplaceLifecycleEnv.OnEnable.Label=Ved aktivering
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: ingen sjekk; warn: logg/dialog ved avvik; enforce: mislykk aktivering ved avvik
MarketplaceLifecycleEnv.Strict.Label=Streng (mislykkes hvis ekstra marketplace-plugins er installert)
-MarketplaceLifecycleEnv.Strict.Tooltip=Ved validering, behandle også marketplace-plugins med kvittering som ikke er i env-filen som avvik
+MarketplaceLifecycleEnv.Strict.Tooltip=Ved validering, behandle også marketplace-plugins med kvittering som ikke er i installasjonsspesifikasjonen som avvik
MarketplaceLifecycleEnv.AutoApply.Label=Auto-bruk manglende plugins ved aktivering
MarketplaceLifecycleEnv.AutoApply.Tooltip=Når aktivert, kjører marketplace apply for manglende plugins (kun på kontrollerte maskiner; av som standard)
MarketplaceDialog.Shell.Title=Plugin-marketplace
MarketplaceDialog.Tab.Plugins=Plugins
MarketplaceDialog.Tab.Environment=Miljø
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Depot
MarketplaceDialog.Repository.Label=Primært depot
MarketplaceDialog.Repository.SetPrimary.Error=Kunne ikke sette primært depot
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Passord
ManageRepositoriesDialog.Edit.Enabled=Aktivert (bruk i reservekjeden)
ManageRepositoriesDialog.Edit.Primary=Primær (prøves først)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id og URL er påkrevd.
-HopEnvironmentDialog.Shell.Title=Marketplace-miljø — {0}
-HopEnvironmentDialog.Untitled=Uten navn
-HopEnvironmentDialog.Button.New=Ny
-HopEnvironmentDialog.Button.Open=Åpne…
-HopEnvironmentDialog.Button.Save=Lagre
-HopEnvironmentDialog.Button.SaveAs=Lagre som…
-HopEnvironmentDialog.Button.Validate=Valider
-HopEnvironmentDialog.Button.Validate.Tooltip=Sjekk den lokale installasjonen mot denne miljøfilen uten å installere
-HopEnvironmentDialog.Button.Apply=Bruk
-HopEnvironmentDialog.Button.Apply.Tooltip=Installer plugins og avhengigheter erklært i denne miljøfilen
-HopEnvironmentDialog.Button.Close=Lukk
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=Avbryt
-HopEnvironmentDialog.Button.Add=Legg til
-HopEnvironmentDialog.Button.Edit=Rediger
-HopEnvironmentDialog.Button.Remove=Fjern
-HopEnvironmentDialog.Button.MoveUp=Opp
-HopEnvironmentDialog.Button.MoveDown=Ned
-HopEnvironmentDialog.Button.AddFromCatalog=Fra katalog…
-HopEnvironmentDialog.Button.ImportRepos=Importer fra hop-config…
-HopEnvironmentDialog.Prune=Fjern ekstra ved bruk
-HopEnvironmentDialog.Prune.Tooltip=Ved bruk, avinstaller marketplace-plugins med kvittering som ikke er i filen
-HopEnvironmentDialog.Strict=Streng validering
-HopEnvironmentDialog.Strict.Tooltip=Ved validering, mislykkes også hvis ekstra marketplace-plugins er installert utover filen
-HopEnvironmentDialog.Filter.Yaml=YAML-miljø (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=JSON-miljø (*.json)
-HopEnvironmentDialog.Tab.General=Generelt
-HopEnvironmentDialog.Tab.Repositories=Depot
-HopEnvironmentDialog.Tab.Plugins=Plugins
-HopEnvironmentDialog.Tab.Dependencies=Avhengigheter
-HopEnvironmentDialog.General.Help=Angi hvilke plugins og jars denne Hop-installasjonen skal ha. Lagre som hop-env.yaml for CI/Docker, eller bruk Valider / Bruk i denne dialogen.
-HopEnvironmentDialog.General.Version=Spesifikasjonsversjon
-HopEnvironmentDialog.General.HopVersion=Hop-versjon
-HopEnvironmentDialog.General.EnforceOnRun=Håndhev på hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Hvis true, kan hop-run mislykkes hvis installasjonen avviker fra denne filen (også styrt av -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=Første rad er primær (prøves først); senere rader er reserve. Disse depotene ligger i miljøfilen (ikke hop-config). Unngå å committe passord.
-HopEnvironmentDialog.Plugins.Help=Marketplace-plugins som skal installeres. La Group ID stå tom for org.apache.hop. Versjon kan standard fra Hop-versjon på Generelt-fanen ved bruk.
-HopEnvironmentDialog.Dependencies.Help=Valgfrie Maven-jars (f.eks. JDBC-drivere) installert under målkatalogen i Hop home (standard lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Brukernavn
-HopEnvironmentDialog.Repo.Column.Password=Passord
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Legg til depot
-HopEnvironmentDialog.Repo.Edit.Edit=Rediger depot
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Versjon
-HopEnvironmentDialog.Plugin.Edit.Add=Legg til plugin
-HopEnvironmentDialog.Plugin.Edit.Edit=Rediger plugin
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Versjon
-HopEnvironmentDialog.Dep.Column.Target=Mål
-HopEnvironmentDialog.Dep.Edit.Add=Legg til avhengighet
-HopEnvironmentDialog.Dep.Edit.Edit=Rediger avhengighet
-HopEnvironmentDialog.Dirty.Header=Ulagrede endringer
-HopEnvironmentDialog.Dirty.Message=Lagre endringer i miljøfilen før du fortsetter?
-HopEnvironmentDialog.SaveFirst.Header=Lagre miljøfil?
-HopEnvironmentDialog.SaveFirst.Message=Lagre miljøfilen før Valider eller Bruk?
-HopEnvironmentDialog.Validation.Header=Ugyldig miljø
-HopEnvironmentDialog.Validation.RepoIdUrl=Hvert depot trenger en Id og URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Hver plugin trenger en Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Hver avhengighet trenger Group ID, Artifact ID og Version.
-HopEnvironmentDialog.ImportRepos.Header=Importer depot
-HopEnvironmentDialog.ImportRepos.Message=Erstatte depotlisten med aktiverte depot fra hop-config.json?
-HopEnvironmentDialog.Error.Header=Feil i miljøredigering
-HopEnvironmentDialog.Error.Load=Kunne ikke laste miljøfil:\n{0}
-HopEnvironmentDialog.Error.Save=Kunne ikke lagre miljøfil:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=Kunne ikke importere depot fra hop-config
+HopInstallSpecEditor.Shell.Title=Marketplace-miljø — {0}
+HopInstallSpecEditor.Untitled=Uten navn
+HopInstallSpecEditor.Button.New=Ny
+HopInstallSpecEditor.Button.Open=Åpne…
+HopInstallSpecEditor.Button.Save=Lagre
+HopInstallSpecEditor.Button.SaveAs=Lagre som…
+HopInstallSpecEditor.Button.Validate=Valider
+HopInstallSpecEditor.Button.Validate.Tooltip=Sjekk den lokale installasjonen mot denne miljøfilen uten å installere
+HopInstallSpecEditor.Button.Apply=Bruk
+HopInstallSpecEditor.Button.Apply.Tooltip=Installer plugins og avhengigheter erklært i denne miljøfilen
+HopInstallSpecEditor.Button.Close=Lukk
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=Avbryt
+HopInstallSpecEditor.Button.Add=Legg til
+HopInstallSpecEditor.Button.Edit=Rediger
+HopInstallSpecEditor.Button.Remove=Fjern
+HopInstallSpecEditor.Button.MoveUp=Opp
+HopInstallSpecEditor.Button.MoveDown=Ned
+HopInstallSpecEditor.Button.AddFromCatalog=Fra katalog…
+HopInstallSpecEditor.Button.ImportRepos=Importer fra hop-config…
+HopInstallSpecEditor.Prune=Fjern ekstra ved bruk
+HopInstallSpecEditor.Prune.Tooltip=Ved bruk, avinstaller marketplace-plugins med kvittering som ikke er i filen
+HopInstallSpecEditor.Strict=Streng validering
+HopInstallSpecEditor.Strict.Tooltip=Ved validering, mislykkes også hvis ekstra marketplace-plugins er installert utover filen
+HopInstallSpecEditor.Filter.Yaml=YAML-miljø (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=JSON-miljø (*.json)
+HopInstallSpecEditor.Tab.General=Generelt
+HopInstallSpecEditor.Tab.Repositories=Depot
+HopInstallSpecEditor.Tab.Plugins=Plugins
+HopInstallSpecEditor.Tab.Dependencies=Avhengigheter
+HopInstallSpecEditor.General.Help=Angi hvilke plugins og jars denne Hop-installasjonen skal ha. Lagre som hop-env.yaml for CI/Docker, eller bruk Valider / Bruk i denne dialogen.
+HopInstallSpecEditor.General.Version=Spesifikasjonsversjon
+HopInstallSpecEditor.General.HopVersion=Hop-versjon
+HopInstallSpecEditor.General.EnforceOnRun=Håndhev på hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Hvis true, kan hop-run mislykkes hvis installasjonen avviker fra denne filen (også styrt av -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=Første rad er primær (prøves først); senere rader er reserve. Disse depotene ligger i miljøfilen (ikke hop-config). Unngå å committe passord.
+HopInstallSpecEditor.Plugins.Help=Marketplace-plugins som skal installeres. La Group ID stå tom for org.apache.hop. Versjon kan standard fra Hop-versjon på Generelt-fanen ved bruk.
+HopInstallSpecEditor.Dependencies.Help=Valgfrie Maven-jars (f.eks. JDBC-drivere) installert under målkatalogen i Hop home (standard lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Brukernavn
+HopInstallSpecEditor.Repo.Column.Password=Passord
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Legg til depot
+HopInstallSpecEditor.Repo.Edit.Edit=Rediger depot
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Versjon
+HopInstallSpecEditor.Plugin.Edit.Add=Legg til plugin
+HopInstallSpecEditor.Plugin.Edit.Edit=Rediger plugin
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Versjon
+HopInstallSpecEditor.Dep.Column.Target=Mål
+HopInstallSpecEditor.Dep.Edit.Add=Legg til avhengighet
+HopInstallSpecEditor.Dep.Edit.Edit=Rediger avhengighet
+HopInstallSpecEditor.Dirty.Header=Ulagrede endringer
+HopInstallSpecEditor.Dirty.Message=Lagre endringer i miljøfilen før du fortsetter?
+HopInstallSpecEditor.SaveFirst.Header=Lagre miljøfil?
+HopInstallSpecEditor.SaveFirst.Message=Lagre miljøfilen før Valider eller Bruk?
+HopInstallSpecEditor.Validation.Header=Ugyldig miljø
+HopInstallSpecEditor.Validation.RepoIdUrl=Hvert depot trenger en Id og URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Hver plugin trenger en Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Hver avhengighet trenger Group ID, Artifact ID og Version.
+HopInstallSpecEditor.ImportRepos.Header=Importer depot
+HopInstallSpecEditor.ImportRepos.Message=Erstatte depotlisten med aktiverte depot fra hop-config.json?
+HopInstallSpecEditor.Error.Header=Feil i miljøredigering
+HopInstallSpecEditor.Error.Load=Kunne ikke laste miljøfil:\n{0}
+HopInstallSpecEditor.Error.Save=Kunne ikke lagre miljøfil:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=Kunne ikke importere depot fra hop-config
AddPluginsFromCatalogDialog.Shell.Title=Legg til plugins fra katalog
AddPluginsFromCatalogDialog.Filter.Label=Filter
AddPluginsFromCatalogDialog.Button.Add=Legg til valgte
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pl_PL.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pl_PL.properties
index 6eeec10889..3cbe616f05 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pl_PL.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pl_PL.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Wtyczki Marketplace
-MarketplaceLifecycleEnv.Help=Zestaw wtyczek jest zdefiniowany w pliku hop-env. Te opcje kontrolują, kiedy Hop sprawdza ten plik dla tego środowiska cyklu życia (luźno w dev; rygorystycznie w produkcji).
-MarketplaceLifecycleEnv.EnvFile.Label=Plik środowiska
+MarketplaceLifecycleEnv.Help=Zestaw wtyczek jest zdefiniowany w specyfikacji instalacji Hop (hop-env.yaml), nie w tym środowisku cyklu życia. Te opcje kontrolują, kiedy Hop sprawdza tę specyfikację dla tego środowiska (luźno w dev; rygorystycznie w produkcji).
+MarketplaceLifecycleEnv.EnvFile.Label=Specyfikacja instalacji
MarketplaceLifecycleEnv.Button.Browse=Przeglądaj…
MarketplaceLifecycleEnv.Button.EditEnv=Edytuj…
MarketplaceLifecycleEnv.OnEnable.Label=Przy włączaniu
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: bez sprawdzenia; warn: log/dialog przy rozbie\u00C5\u00BCno\u00C5\u009Bci; enforce: niepowodzenie w\u00C5\u0082\u00C4\u0085czania \u00C5\u009Brodowiska przy rozbie\u00C5\u00BCno\u00C5\u009Bci
MarketplaceLifecycleEnv.Strict.Label=Ścisłe (niepowodzenie, jeśli zainstalowano dodatkowe wtyczki marketplace)
-MarketplaceLifecycleEnv.Strict.Tooltip=Przy walidacji traktuj też wtyczki marketplace z potwierdzeniem spoza pliku env jako rozbieżność
+MarketplaceLifecycleEnv.Strict.Tooltip=Przy walidacji traktuj też wtyczki marketplace z potwierdzeniem spoza specyfikacji instalacji jako rozbieżność
MarketplaceLifecycleEnv.AutoApply.Label=Automatycznie zastosuj brakujące wtyczki przy włączaniu
MarketplaceLifecycleEnv.AutoApply.Tooltip=Gdy włączone, uruchamia marketplace apply dla brakujących wtyczek (tylko na kontrolowanych maszynach; domyślnie wyłączone)
MarketplaceDialog.Shell.Title=Marketplace wtyczek
MarketplaceDialog.Tab.Plugins=Wtyczki
MarketplaceDialog.Tab.Environment=Środowisko
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Repozytoria
MarketplaceDialog.Repository.Label=Główne repozytorium
MarketplaceDialog.Repository.SetPrimary.Error=Nie można ustawić głównego repozytorium
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Hasło
ManageRepositoriesDialog.Edit.Enabled=Włączone (użyj w łańcuchu zapasowym)
ManageRepositoriesDialog.Edit.Primary=Główne (próbowane pierwsze)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id i URL są wymagane.
-HopEnvironmentDialog.Shell.Title=Środowisko Marketplace — {0}
-HopEnvironmentDialog.Untitled=Bez tytułu
-HopEnvironmentDialog.Button.New=Nowy
-HopEnvironmentDialog.Button.Open=Otwórz…
-HopEnvironmentDialog.Button.Save=Zapisz
-HopEnvironmentDialog.Button.SaveAs=Zapisz jako…
-HopEnvironmentDialog.Button.Validate=Waliduj
-HopEnvironmentDialog.Button.Validate.Tooltip=Sprawdź lokalną instalację względem tego pliku środowiska bez instalowania
-HopEnvironmentDialog.Button.Apply=Zastosuj
-HopEnvironmentDialog.Button.Apply.Tooltip=Zainstaluj wtyczki i zależności zadeklarowane w tym pliku środowiska
-HopEnvironmentDialog.Button.Close=Zamknij
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=Anuluj
-HopEnvironmentDialog.Button.Add=Dodaj
-HopEnvironmentDialog.Button.Edit=Edytuj
-HopEnvironmentDialog.Button.Remove=Usuń
-HopEnvironmentDialog.Button.MoveUp=W górę
-HopEnvironmentDialog.Button.MoveDown=W dół
-HopEnvironmentDialog.Button.AddFromCatalog=Z katalogu…
-HopEnvironmentDialog.Button.ImportRepos=Importuj z hop-config…
-HopEnvironmentDialog.Prune=Usuń dodatkowe przy zastosowaniu
-HopEnvironmentDialog.Prune.Tooltip=Przy zastosowaniu odinstaluj wtyczki marketplace z potwierdzeniem spoza pliku
-HopEnvironmentDialog.Strict=Ścisła walidacja
-HopEnvironmentDialog.Strict.Tooltip=Przy walidacji niepowodzenie także, gdy zainstalowano dodatkowe wtyczki marketplace poza plikiem
-HopEnvironmentDialog.Filter.Yaml=Środowisko YAML (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=Środowisko JSON (*.json)
-HopEnvironmentDialog.Tab.General=Ogólne
-HopEnvironmentDialog.Tab.Repositories=Repozytoria
-HopEnvironmentDialog.Tab.Plugins=Wtyczki
-HopEnvironmentDialog.Tab.Dependencies=Zależności
-HopEnvironmentDialog.General.Help=Zadeklaruj, które wtyczki i jar-y ma mieć ta instalacja Hop. Zapisz jako hop-env.yaml na potrzeby CI/Docker lub użyj Waliduj / Zastosuj w tym oknie.
-HopEnvironmentDialog.General.Version=Wersja specyfikacji
-HopEnvironmentDialog.General.HopVersion=Wersja Hop
-HopEnvironmentDialog.General.EnforceOnRun=Wymuś przy hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Gdy true, hop-run może zakończyć się niepowodzeniem, jeśli instalacja odbiega od tego pliku (także -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=Pierwszy wiersz jest główny (próbowany pierwszy); kolejne to zapasowe. Te repozytoria są w pliku środowiska (nie hop-config). Lepiej nie committować haseł.
-HopEnvironmentDialog.Plugins.Help=Wtyczki marketplace do instalacji. Pozostaw Group ID puste, aby użyć org.apache.hop. Wersja może domyślnie pochodzić z wersji Hop na karcie Ogólne przy zastosowaniu.
-HopEnvironmentDialog.Dependencies.Help=Opcjonalne jary Maven (np. sterowniki JDBC) instalowane w katalogu docelowym Hop home (domyślnie lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Nazwa użytkownika
-HopEnvironmentDialog.Repo.Column.Password=Hasło
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Dodaj repozytorium
-HopEnvironmentDialog.Repo.Edit.Edit=Edytuj repozytorium
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Wersja
-HopEnvironmentDialog.Plugin.Edit.Add=Dodaj wtyczkę
-HopEnvironmentDialog.Plugin.Edit.Edit=Edytuj wtyczkę
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Wersja
-HopEnvironmentDialog.Dep.Column.Target=Cel
-HopEnvironmentDialog.Dep.Edit.Add=Dodaj zależność
-HopEnvironmentDialog.Dep.Edit.Edit=Edytuj zależność
-HopEnvironmentDialog.Dirty.Header=Niezapisane zmiany
-HopEnvironmentDialog.Dirty.Message=Zapisać zmiany w pliku środowiska przed kontynuacją?
-HopEnvironmentDialog.SaveFirst.Header=Zapisać plik środowiska?
-HopEnvironmentDialog.SaveFirst.Message=Zapisać plik środowiska przed Waliduj lub Zastosuj?
-HopEnvironmentDialog.Validation.Header=Nieprawidłowe środowisko
-HopEnvironmentDialog.Validation.RepoIdUrl=Każde repozytorium wymaga Id i URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Każda wtyczka wymaga Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Każda zależność wymaga Group ID, Artifact ID i Version.
-HopEnvironmentDialog.ImportRepos.Header=Importuj repozytoria
-HopEnvironmentDialog.ImportRepos.Message=Zastąpić listę repozytoriów włączonymi repozytoriami z hop-config.json?
-HopEnvironmentDialog.Error.Header=Błąd edytora środowiska
-HopEnvironmentDialog.Error.Load=Nie można wczytać pliku środowiska:\n{0}
-HopEnvironmentDialog.Error.Save=Nie można zapisać pliku środowiska:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=Nie można zaimportować repozytoriów z hop-config
+HopInstallSpecEditor.Shell.Title=Środowisko Marketplace — {0}
+HopInstallSpecEditor.Untitled=Bez tytułu
+HopInstallSpecEditor.Button.New=Nowy
+HopInstallSpecEditor.Button.Open=Otwórz…
+HopInstallSpecEditor.Button.Save=Zapisz
+HopInstallSpecEditor.Button.SaveAs=Zapisz jako…
+HopInstallSpecEditor.Button.Validate=Waliduj
+HopInstallSpecEditor.Button.Validate.Tooltip=Sprawdź lokalną instalację względem tego pliku środowiska bez instalowania
+HopInstallSpecEditor.Button.Apply=Zastosuj
+HopInstallSpecEditor.Button.Apply.Tooltip=Zainstaluj wtyczki i zależności zadeklarowane w tym pliku środowiska
+HopInstallSpecEditor.Button.Close=Zamknij
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=Anuluj
+HopInstallSpecEditor.Button.Add=Dodaj
+HopInstallSpecEditor.Button.Edit=Edytuj
+HopInstallSpecEditor.Button.Remove=Usuń
+HopInstallSpecEditor.Button.MoveUp=W górę
+HopInstallSpecEditor.Button.MoveDown=W dół
+HopInstallSpecEditor.Button.AddFromCatalog=Z katalogu…
+HopInstallSpecEditor.Button.ImportRepos=Importuj z hop-config…
+HopInstallSpecEditor.Prune=Usuń dodatkowe przy zastosowaniu
+HopInstallSpecEditor.Prune.Tooltip=Przy zastosowaniu odinstaluj wtyczki marketplace z potwierdzeniem spoza pliku
+HopInstallSpecEditor.Strict=Ścisła walidacja
+HopInstallSpecEditor.Strict.Tooltip=Przy walidacji niepowodzenie także, gdy zainstalowano dodatkowe wtyczki marketplace poza plikiem
+HopInstallSpecEditor.Filter.Yaml=Środowisko YAML (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=Środowisko JSON (*.json)
+HopInstallSpecEditor.Tab.General=Ogólne
+HopInstallSpecEditor.Tab.Repositories=Repozytoria
+HopInstallSpecEditor.Tab.Plugins=Wtyczki
+HopInstallSpecEditor.Tab.Dependencies=Zależności
+HopInstallSpecEditor.General.Help=Zadeklaruj, które wtyczki i jar-y ma mieć ta instalacja Hop. Zapisz jako hop-env.yaml na potrzeby CI/Docker lub użyj Waliduj / Zastosuj w tym oknie.
+HopInstallSpecEditor.General.Version=Wersja specyfikacji
+HopInstallSpecEditor.General.HopVersion=Wersja Hop
+HopInstallSpecEditor.General.EnforceOnRun=Wymuś przy hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Gdy true, hop-run może zakończyć się niepowodzeniem, jeśli instalacja odbiega od tego pliku (także -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=Pierwszy wiersz jest główny (próbowany pierwszy); kolejne to zapasowe. Te repozytoria są w pliku środowiska (nie hop-config). Lepiej nie committować haseł.
+HopInstallSpecEditor.Plugins.Help=Wtyczki marketplace do instalacji. Pozostaw Group ID puste, aby użyć org.apache.hop. Wersja może domyślnie pochodzić z wersji Hop na karcie Ogólne przy zastosowaniu.
+HopInstallSpecEditor.Dependencies.Help=Opcjonalne jary Maven (np. sterowniki JDBC) instalowane w katalogu docelowym Hop home (domyślnie lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Nazwa użytkownika
+HopInstallSpecEditor.Repo.Column.Password=Hasło
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Dodaj repozytorium
+HopInstallSpecEditor.Repo.Edit.Edit=Edytuj repozytorium
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Wersja
+HopInstallSpecEditor.Plugin.Edit.Add=Dodaj wtyczkę
+HopInstallSpecEditor.Plugin.Edit.Edit=Edytuj wtyczkę
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Wersja
+HopInstallSpecEditor.Dep.Column.Target=Cel
+HopInstallSpecEditor.Dep.Edit.Add=Dodaj zależność
+HopInstallSpecEditor.Dep.Edit.Edit=Edytuj zależność
+HopInstallSpecEditor.Dirty.Header=Niezapisane zmiany
+HopInstallSpecEditor.Dirty.Message=Zapisać zmiany w pliku środowiska przed kontynuacją?
+HopInstallSpecEditor.SaveFirst.Header=Zapisać plik środowiska?
+HopInstallSpecEditor.SaveFirst.Message=Zapisać plik środowiska przed Waliduj lub Zastosuj?
+HopInstallSpecEditor.Validation.Header=Nieprawidłowe środowisko
+HopInstallSpecEditor.Validation.RepoIdUrl=Każde repozytorium wymaga Id i URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Każda wtyczka wymaga Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Każda zależność wymaga Group ID, Artifact ID i Version.
+HopInstallSpecEditor.ImportRepos.Header=Importuj repozytoria
+HopInstallSpecEditor.ImportRepos.Message=Zastąpić listę repozytoriów włączonymi repozytoriami z hop-config.json?
+HopInstallSpecEditor.Error.Header=Błąd edytora środowiska
+HopInstallSpecEditor.Error.Load=Nie można wczytać pliku środowiska:\n{0}
+HopInstallSpecEditor.Error.Save=Nie można zapisać pliku środowiska:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=Nie można zaimportować repozytoriów z hop-config
AddPluginsFromCatalogDialog.Shell.Title=Dodaj wtyczki z katalogu
AddPluginsFromCatalogDialog.Filter.Label=Filtr
AddPluginsFromCatalogDialog.Button.Add=Dodaj zaznaczone
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pt_BR.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pt_BR.properties
index dbfab4de5b..f13f5e189e 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pt_BR.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pt_BR.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Plugins do Marketplace
-MarketplaceLifecycleEnv.Help=O conjunto de plugins é definido em um arquivo hop-env. Estas opções controlam quando o Hop verifica esse arquivo para este ambiente de ciclo de vida (flexível em dev; rígido em produção).
-MarketplaceLifecycleEnv.EnvFile.Label=Arquivo de ambiente
+MarketplaceLifecycleEnv.Help=O conjunto de plugins é definido em uma especificação de instalação Hop (hop-env.yaml), não neste ambiente de ciclo de vida. Estas opções controlam quando o Hop verifica essa especificação para este ambiente (flexível em dev; rígido em produção).
+MarketplaceLifecycleEnv.EnvFile.Label=Especificação de instalação
MarketplaceLifecycleEnv.Button.Browse=Procurar…
MarketplaceLifecycleEnv.Button.EditEnv=Editar…
MarketplaceLifecycleEnv.OnEnable.Label=Ao habilitar
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: sem verifica\u00C3\u00A7\u00C3\u00A3o; warn: log/di\u00C3\u00A1logo em caso de diverg\u00C3\u00AAncia; enforce: falhar ao habilitar o ambiente em caso de diverg\u00C3\u00AAncia
MarketplaceLifecycleEnv.Strict.Label=Rigoroso (falhar se houver plugins de marketplace extras instalados)
-MarketplaceLifecycleEnv.Strict.Tooltip=Ao validar, também tratar como divergência plugins de marketplace com recibo que não estejam no arquivo de ambiente
+MarketplaceLifecycleEnv.Strict.Tooltip=Ao validar, também tratar como divergência plugins de marketplace com recibo que não estejam na especificação de instalação
MarketplaceLifecycleEnv.AutoApply.Label=Aplicar automaticamente plugins ausentes ao habilitar
MarketplaceLifecycleEnv.AutoApply.Tooltip=Quando habilitado, executa marketplace apply para plugins ausentes (apenas em máquinas controladas; padrão desligado)
MarketplaceDialog.Shell.Title=Marketplace de plugins
MarketplaceDialog.Tab.Plugins=Plugins
MarketplaceDialog.Tab.Environment=Ambiente
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Repositórios
MarketplaceDialog.Repository.Label=Repositório principal
MarketplaceDialog.Repository.SetPrimary.Error=Não foi possível definir o repositório principal
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Senha
ManageRepositoriesDialog.Edit.Enabled=Habilitado (usar na cadeia de fallback)
ManageRepositoriesDialog.Edit.Primary=Principal (tentado primeiro)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id e URL são obrigatórios.
-HopEnvironmentDialog.Shell.Title=Ambiente Marketplace — {0}
-HopEnvironmentDialog.Untitled=Sem título
-HopEnvironmentDialog.Button.New=Novo
-HopEnvironmentDialog.Button.Open=Abrir…
-HopEnvironmentDialog.Button.Save=Salvar
-HopEnvironmentDialog.Button.SaveAs=Salvar como…
-HopEnvironmentDialog.Button.Validate=Validar
-HopEnvironmentDialog.Button.Validate.Tooltip=Verificar a instalação local com este arquivo de ambiente sem instalar
-HopEnvironmentDialog.Button.Apply=Aplicar
-HopEnvironmentDialog.Button.Apply.Tooltip=Instalar plugins e dependências declarados neste arquivo de ambiente
-HopEnvironmentDialog.Button.Close=Fechar
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=Cancelar
-HopEnvironmentDialog.Button.Add=Adicionar
-HopEnvironmentDialog.Button.Edit=Editar
-HopEnvironmentDialog.Button.Remove=Remover
-HopEnvironmentDialog.Button.MoveUp=Acima
-HopEnvironmentDialog.Button.MoveDown=Abaixo
-HopEnvironmentDialog.Button.AddFromCatalog=Do catálogo…
-HopEnvironmentDialog.Button.ImportRepos=Importar do hop-config…
-HopEnvironmentDialog.Prune=Remover extras ao aplicar
-HopEnvironmentDialog.Prune.Tooltip=Ao aplicar, desinstalar plugins de marketplace com recibo que não estejam no arquivo
-HopEnvironmentDialog.Strict=Validação rigorosa
-HopEnvironmentDialog.Strict.Tooltip=Ao validar, também falhar se houver plugins de marketplace instalados além do arquivo
-HopEnvironmentDialog.Filter.Yaml=Ambiente YAML (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=Ambiente JSON (*.json)
-HopEnvironmentDialog.Tab.General=Geral
-HopEnvironmentDialog.Tab.Repositories=Repositórios
-HopEnvironmentDialog.Tab.Plugins=Plugins
-HopEnvironmentDialog.Tab.Dependencies=Dependências
-HopEnvironmentDialog.General.Help=Declare quais plugins e jars esta instalação Hop deve ter. Salve como hop-env.yaml para CI/Docker, ou use Validar / Aplicar neste diálogo.
-HopEnvironmentDialog.General.Version=Versão da especificação
-HopEnvironmentDialog.General.HopVersion=Versão do Hop
-HopEnvironmentDialog.General.EnforceOnRun=Forçar no hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Se true, o hop-run pode falhar se a instalação divergir deste arquivo (também controlado por -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=A primeira linha é principal (tentada primeiro); as seguintes são fallbacks. Estes repositórios ficam no arquivo de ambiente (não hop-config). Prefira não fazer commit de senhas.
-HopEnvironmentDialog.Plugins.Help=Plugins de marketplace a instalar. Deixe Group ID em branco para usar org.apache.hop. A versão pode vir da versão do Hop na aba Geral ao aplicar.
-HopEnvironmentDialog.Dependencies.Help=Jars Maven opcionais (por exemplo drivers JDBC) instalados no diretório de destino do Hop home (padrão lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Nome de usuário
-HopEnvironmentDialog.Repo.Column.Password=Senha
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Adicionar repositório
-HopEnvironmentDialog.Repo.Edit.Edit=Editar repositório
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Versão
-HopEnvironmentDialog.Plugin.Edit.Add=Adicionar plugin
-HopEnvironmentDialog.Plugin.Edit.Edit=Editar plugin
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Versão
-HopEnvironmentDialog.Dep.Column.Target=Destino
-HopEnvironmentDialog.Dep.Edit.Add=Adicionar dependência
-HopEnvironmentDialog.Dep.Edit.Edit=Editar dependência
-HopEnvironmentDialog.Dirty.Header=Alterações não salvas
-HopEnvironmentDialog.Dirty.Message=Salvar as alterações do arquivo de ambiente antes de continuar?
-HopEnvironmentDialog.SaveFirst.Header=Salvar arquivo de ambiente?
-HopEnvironmentDialog.SaveFirst.Message=Salvar o arquivo de ambiente antes de Validar ou Aplicar?
-HopEnvironmentDialog.Validation.Header=Ambiente inválido
-HopEnvironmentDialog.Validation.RepoIdUrl=Cada repositório precisa de um Id e uma URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Cada plugin precisa de um Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Cada dependência precisa de Group ID, Artifact ID e Version.
-HopEnvironmentDialog.ImportRepos.Header=Importar repositórios
-HopEnvironmentDialog.ImportRepos.Message=Substituir a lista de repositórios pelos repositórios habilitados de hop-config.json?
-HopEnvironmentDialog.Error.Header=Erro do editor de ambiente
-HopEnvironmentDialog.Error.Load=Não foi possível carregar o arquivo de ambiente:\n{0}
-HopEnvironmentDialog.Error.Save=Não foi possível salvar o arquivo de ambiente:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=Não foi possível importar repositórios do hop-config
+HopInstallSpecEditor.Shell.Title=Ambiente Marketplace — {0}
+HopInstallSpecEditor.Untitled=Sem título
+HopInstallSpecEditor.Button.New=Novo
+HopInstallSpecEditor.Button.Open=Abrir…
+HopInstallSpecEditor.Button.Save=Salvar
+HopInstallSpecEditor.Button.SaveAs=Salvar como…
+HopInstallSpecEditor.Button.Validate=Validar
+HopInstallSpecEditor.Button.Validate.Tooltip=Verificar a instalação local com este arquivo de ambiente sem instalar
+HopInstallSpecEditor.Button.Apply=Aplicar
+HopInstallSpecEditor.Button.Apply.Tooltip=Instalar plugins e dependências declarados neste arquivo de ambiente
+HopInstallSpecEditor.Button.Close=Fechar
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=Cancelar
+HopInstallSpecEditor.Button.Add=Adicionar
+HopInstallSpecEditor.Button.Edit=Editar
+HopInstallSpecEditor.Button.Remove=Remover
+HopInstallSpecEditor.Button.MoveUp=Acima
+HopInstallSpecEditor.Button.MoveDown=Abaixo
+HopInstallSpecEditor.Button.AddFromCatalog=Do catálogo…
+HopInstallSpecEditor.Button.ImportRepos=Importar do hop-config…
+HopInstallSpecEditor.Prune=Remover extras ao aplicar
+HopInstallSpecEditor.Prune.Tooltip=Ao aplicar, desinstalar plugins de marketplace com recibo que não estejam no arquivo
+HopInstallSpecEditor.Strict=Validação rigorosa
+HopInstallSpecEditor.Strict.Tooltip=Ao validar, também falhar se houver plugins de marketplace instalados além do arquivo
+HopInstallSpecEditor.Filter.Yaml=Ambiente YAML (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=Ambiente JSON (*.json)
+HopInstallSpecEditor.Tab.General=Geral
+HopInstallSpecEditor.Tab.Repositories=Repositórios
+HopInstallSpecEditor.Tab.Plugins=Plugins
+HopInstallSpecEditor.Tab.Dependencies=Dependências
+HopInstallSpecEditor.General.Help=Declare quais plugins e jars esta instalação Hop deve ter. Salve como hop-env.yaml para CI/Docker, ou use Validar / Aplicar neste diálogo.
+HopInstallSpecEditor.General.Version=Versão da especificação
+HopInstallSpecEditor.General.HopVersion=Versão do Hop
+HopInstallSpecEditor.General.EnforceOnRun=Forçar no hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Se true, o hop-run pode falhar se a instalação divergir deste arquivo (também controlado por -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=A primeira linha é principal (tentada primeiro); as seguintes são fallbacks. Estes repositórios ficam no arquivo de ambiente (não hop-config). Prefira não fazer commit de senhas.
+HopInstallSpecEditor.Plugins.Help=Plugins de marketplace a instalar. Deixe Group ID em branco para usar org.apache.hop. A versão pode vir da versão do Hop na aba Geral ao aplicar.
+HopInstallSpecEditor.Dependencies.Help=Jars Maven opcionais (por exemplo drivers JDBC) instalados no diretório de destino do Hop home (padrão lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Nome de usuário
+HopInstallSpecEditor.Repo.Column.Password=Senha
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Adicionar repositório
+HopInstallSpecEditor.Repo.Edit.Edit=Editar repositório
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Versão
+HopInstallSpecEditor.Plugin.Edit.Add=Adicionar plugin
+HopInstallSpecEditor.Plugin.Edit.Edit=Editar plugin
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Versão
+HopInstallSpecEditor.Dep.Column.Target=Destino
+HopInstallSpecEditor.Dep.Edit.Add=Adicionar dependência
+HopInstallSpecEditor.Dep.Edit.Edit=Editar dependência
+HopInstallSpecEditor.Dirty.Header=Alterações não salvas
+HopInstallSpecEditor.Dirty.Message=Salvar as alterações do arquivo de ambiente antes de continuar?
+HopInstallSpecEditor.SaveFirst.Header=Salvar arquivo de ambiente?
+HopInstallSpecEditor.SaveFirst.Message=Salvar o arquivo de ambiente antes de Validar ou Aplicar?
+HopInstallSpecEditor.Validation.Header=Ambiente inválido
+HopInstallSpecEditor.Validation.RepoIdUrl=Cada repositório precisa de um Id e uma URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Cada plugin precisa de um Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Cada dependência precisa de Group ID, Artifact ID e Version.
+HopInstallSpecEditor.ImportRepos.Header=Importar repositórios
+HopInstallSpecEditor.ImportRepos.Message=Substituir a lista de repositórios pelos repositórios habilitados de hop-config.json?
+HopInstallSpecEditor.Error.Header=Erro do editor de ambiente
+HopInstallSpecEditor.Error.Load=Não foi possível carregar o arquivo de ambiente:\n{0}
+HopInstallSpecEditor.Error.Save=Não foi possível salvar o arquivo de ambiente:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=Não foi possível importar repositórios do hop-config
AddPluginsFromCatalogDialog.Shell.Title=Adicionar plugins do catálogo
AddPluginsFromCatalogDialog.Filter.Label=Filtro
AddPluginsFromCatalogDialog.Button.Add=Adicionar selecionados
@@ -292,4 +293,4 @@ ManageRepositoriesDialog.Plugins.Column.MinHop=Versão Min Hop
ManageRepositoriesDialog.Plugins.Column.MaxHop=Versão Max Hop
ManageRepositoriesDialog.Button.AddPlugin=Adicionar plugin
ManageRepositoriesDialog.Button.RemovePlugin=Remover plugin
-HopEnvironmentDialog.Repo.Column.Password.Tooltip=Guardado no arquivo ambiental, que não é criptografia. Os arquivos de ambiente são destinados a serem compartilhados: prefira uma variável como a variável de ambiente HOP MARKETPLACE <ID> PASSWORD.
+HopInstallSpecEditor.Repo.Column.Password.Tooltip=Guardado no arquivo ambiental, que não é criptografia. Os arquivos de ambiente são destinados a serem compartilhados: prefira uma variável como a variável de ambiente HOP MARKETPLACE <ID> PASSWORD.
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pt_PT.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pt_PT.properties
index 0f8559d148..1bb7f2486f 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pt_PT.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_pt_PT.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Plugins do Marketplace
-MarketplaceLifecycleEnv.Help=O conjunto de plugins é definido num ficheiro hop-env. Estas opções controlam quando o Hop verifica esse ficheiro para este ambiente de ciclo de vida (flexível em dev; rigoroso em produção).
-MarketplaceLifecycleEnv.EnvFile.Label=Ficheiro de ambiente
+MarketplaceLifecycleEnv.Help=O conjunto de plugins é definido numa especificação de instalação Hop (hop-env.yaml), não neste ambiente de ciclo de vida. Estas opções controlam quando o Hop verifica essa especificação para este ambiente (flexível em dev; rigoroso em produção).
+MarketplaceLifecycleEnv.EnvFile.Label=Especificação de instalação
MarketplaceLifecycleEnv.Button.Browse=Procurar…
MarketplaceLifecycleEnv.Button.EditEnv=Editar…
MarketplaceLifecycleEnv.OnEnable.Label=Ao ativar
MarketplaceLifecycleEnv.OnEnable.Tooltip=off: sem verifica\u00C3\u00A7\u00C3\u00A3o; warn: registo/di\u00C3\u00A1logo em caso de diverg\u00C3\u00AAncia; enforce: falhar ao ativar o ambiente em caso de diverg\u00C3\u00AAncia
MarketplaceLifecycleEnv.Strict.Label=Rigoroso (falhar se existirem plugins de marketplace extra instalados)
-MarketplaceLifecycleEnv.Strict.Tooltip=Ao validar, também tratar como divergência plugins de marketplace com recibo que não estejam no ficheiro de ambiente
+MarketplaceLifecycleEnv.Strict.Tooltip=Ao validar, também tratar como divergência plugins de marketplace com recibo que não estejam na especificação de instalação
MarketplaceLifecycleEnv.AutoApply.Label=Aplicar automaticamente plugins em falta ao ativar
MarketplaceLifecycleEnv.AutoApply.Tooltip=Quando ativado, executa marketplace apply para plugins em falta (apenas em máquinas controladas; predefinição desligado)
MarketplaceDialog.Shell.Title=Marketplace de plugins
MarketplaceDialog.Tab.Plugins=Plugins
MarketplaceDialog.Tab.Environment=Ambiente
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=Repositórios
MarketplaceDialog.Repository.Label=Repositório principal
MarketplaceDialog.Repository.SetPrimary.Error=Não foi possível definir o repositório principal
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=Palavra-passe
ManageRepositoriesDialog.Edit.Enabled=Ativado (usar na cadeia de fallback)
ManageRepositoriesDialog.Edit.Primary=Principal (tentado primeiro)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id e URL são obrigatórios.
-HopEnvironmentDialog.Shell.Title=Ambiente Marketplace — {0}
-HopEnvironmentDialog.Untitled=Sem título
-HopEnvironmentDialog.Button.New=Novo
-HopEnvironmentDialog.Button.Open=Abrir…
-HopEnvironmentDialog.Button.Save=Guardar
-HopEnvironmentDialog.Button.SaveAs=Guardar como…
-HopEnvironmentDialog.Button.Validate=Validar
-HopEnvironmentDialog.Button.Validate.Tooltip=Verificar a instalação local com este ficheiro de ambiente sem instalar
-HopEnvironmentDialog.Button.Apply=Aplicar
-HopEnvironmentDialog.Button.Apply.Tooltip=Instalar plugins e dependências declarados neste ficheiro de ambiente
-HopEnvironmentDialog.Button.Close=Fechar
-HopEnvironmentDialog.Button.Ok=OK
-HopEnvironmentDialog.Button.Cancel=Cancelar
-HopEnvironmentDialog.Button.Add=Adicionar
-HopEnvironmentDialog.Button.Edit=Editar
-HopEnvironmentDialog.Button.Remove=Remover
-HopEnvironmentDialog.Button.MoveUp=Acima
-HopEnvironmentDialog.Button.MoveDown=Abaixo
-HopEnvironmentDialog.Button.AddFromCatalog=Do catálogo…
-HopEnvironmentDialog.Button.ImportRepos=Importar do hop-config…
-HopEnvironmentDialog.Prune=Remover extras ao aplicar
-HopEnvironmentDialog.Prune.Tooltip=Ao aplicar, desinstalar plugins de marketplace com recibo que não estejam no ficheiro
-HopEnvironmentDialog.Strict=Validação rigorosa
-HopEnvironmentDialog.Strict.Tooltip=Ao validar, também falhar se existirem plugins de marketplace instalados para além do ficheiro
-HopEnvironmentDialog.Filter.Yaml=Ambiente YAML (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=Ambiente JSON (*.json)
-HopEnvironmentDialog.Tab.General=Geral
-HopEnvironmentDialog.Tab.Repositories=Repositórios
-HopEnvironmentDialog.Tab.Plugins=Plugins
-HopEnvironmentDialog.Tab.Dependencies=Dependências
-HopEnvironmentDialog.General.Help=Declare quais plugins e jars esta instalação Hop deve ter. Guarde como hop-env.yaml para CI/Docker, ou use Validar / Aplicar neste diálogo.
-HopEnvironmentDialog.General.Version=Versão da especificação
-HopEnvironmentDialog.General.HopVersion=Versão do Hop
-HopEnvironmentDialog.General.EnforceOnRun=Forçar no hop-run
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=Se true, o hop-run pode falhar se a instalação divergir deste ficheiro (também controlado por -Dhop.env.enforce=true)
-HopEnvironmentDialog.Repositories.Help=A primeira linha é principal (tentada primeiro); as seguintes são fallbacks. Estes repositórios ficam no ficheiro de ambiente (não hop-config). Prefira não fazer commit de palavras-passe.
-HopEnvironmentDialog.Plugins.Help=Plugins de marketplace a instalar. Deixe Group ID em branco para usar org.apache.hop. A versão pode vir da versão do Hop no separador Geral ao aplicar.
-HopEnvironmentDialog.Dependencies.Help=Jars Maven opcionais (por exemplo controladores JDBC) instalados no diretório de destino do Hop home (predefinição lib/jdbc).
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=Nome de utilizador
-HopEnvironmentDialog.Repo.Column.Password=Palavra-passe
-HopEnvironmentDialog.Repo.Column.Auth=Auth
-HopEnvironmentDialog.Repo.Edit.Add=Adicionar repositório
-HopEnvironmentDialog.Repo.Edit.Edit=Editar repositório
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=Versão
-HopEnvironmentDialog.Plugin.Edit.Add=Adicionar plugin
-HopEnvironmentDialog.Plugin.Edit.Edit=Editar plugin
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=Versão
-HopEnvironmentDialog.Dep.Column.Target=Destino
-HopEnvironmentDialog.Dep.Edit.Add=Adicionar dependência
-HopEnvironmentDialog.Dep.Edit.Edit=Editar dependência
-HopEnvironmentDialog.Dirty.Header=Alterações não guardadas
-HopEnvironmentDialog.Dirty.Message=Guardar as alterações do ficheiro de ambiente antes de continuar?
-HopEnvironmentDialog.SaveFirst.Header=Guardar ficheiro de ambiente?
-HopEnvironmentDialog.SaveFirst.Message=Guardar o ficheiro de ambiente antes de Validar ou Aplicar?
-HopEnvironmentDialog.Validation.Header=Ambiente inválido
-HopEnvironmentDialog.Validation.RepoIdUrl=Cada repositório precisa de um Id e um URL.
-HopEnvironmentDialog.Validation.PluginArtifact=Cada plugin precisa de um Artifact ID.
-HopEnvironmentDialog.Validation.DepGav=Cada dependência precisa de Group ID, Artifact ID e Version.
-HopEnvironmentDialog.ImportRepos.Header=Importar repositórios
-HopEnvironmentDialog.ImportRepos.Message=Substituir a lista de repositórios pelos repositórios ativados de hop-config.json?
-HopEnvironmentDialog.Error.Header=Erro do editor de ambiente
-HopEnvironmentDialog.Error.Load=Não foi possível carregar o ficheiro de ambiente:\n{0}
-HopEnvironmentDialog.Error.Save=Não foi possível guardar o ficheiro de ambiente:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=Não foi possível importar repositórios do hop-config
+HopInstallSpecEditor.Shell.Title=Ambiente Marketplace — {0}
+HopInstallSpecEditor.Untitled=Sem título
+HopInstallSpecEditor.Button.New=Novo
+HopInstallSpecEditor.Button.Open=Abrir…
+HopInstallSpecEditor.Button.Save=Guardar
+HopInstallSpecEditor.Button.SaveAs=Guardar como…
+HopInstallSpecEditor.Button.Validate=Validar
+HopInstallSpecEditor.Button.Validate.Tooltip=Verificar a instalação local com este ficheiro de ambiente sem instalar
+HopInstallSpecEditor.Button.Apply=Aplicar
+HopInstallSpecEditor.Button.Apply.Tooltip=Instalar plugins e dependências declarados neste ficheiro de ambiente
+HopInstallSpecEditor.Button.Close=Fechar
+HopInstallSpecEditor.Button.Ok=OK
+HopInstallSpecEditor.Button.Cancel=Cancelar
+HopInstallSpecEditor.Button.Add=Adicionar
+HopInstallSpecEditor.Button.Edit=Editar
+HopInstallSpecEditor.Button.Remove=Remover
+HopInstallSpecEditor.Button.MoveUp=Acima
+HopInstallSpecEditor.Button.MoveDown=Abaixo
+HopInstallSpecEditor.Button.AddFromCatalog=Do catálogo…
+HopInstallSpecEditor.Button.ImportRepos=Importar do hop-config…
+HopInstallSpecEditor.Prune=Remover extras ao aplicar
+HopInstallSpecEditor.Prune.Tooltip=Ao aplicar, desinstalar plugins de marketplace com recibo que não estejam no ficheiro
+HopInstallSpecEditor.Strict=Validação rigorosa
+HopInstallSpecEditor.Strict.Tooltip=Ao validar, também falhar se existirem plugins de marketplace instalados para além do ficheiro
+HopInstallSpecEditor.Filter.Yaml=Ambiente YAML (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=Ambiente JSON (*.json)
+HopInstallSpecEditor.Tab.General=Geral
+HopInstallSpecEditor.Tab.Repositories=Repositórios
+HopInstallSpecEditor.Tab.Plugins=Plugins
+HopInstallSpecEditor.Tab.Dependencies=Dependências
+HopInstallSpecEditor.General.Help=Declare quais plugins e jars esta instalação Hop deve ter. Guarde como hop-env.yaml para CI/Docker, ou use Validar / Aplicar neste diálogo.
+HopInstallSpecEditor.General.Version=Versão da especificação
+HopInstallSpecEditor.General.HopVersion=Versão do Hop
+HopInstallSpecEditor.General.EnforceOnRun=Forçar no hop-run
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=Se true, o hop-run pode falhar se a instalação divergir deste ficheiro (também controlado por -Dhop.env.enforce=true)
+HopInstallSpecEditor.Repositories.Help=A primeira linha é principal (tentada primeiro); as seguintes são fallbacks. Estes repositórios ficam no ficheiro de ambiente (não hop-config). Prefira não fazer commit de palavras-passe.
+HopInstallSpecEditor.Plugins.Help=Plugins de marketplace a instalar. Deixe Group ID em branco para usar org.apache.hop. A versão pode vir da versão do Hop no separador Geral ao aplicar.
+HopInstallSpecEditor.Dependencies.Help=Jars Maven opcionais (por exemplo controladores JDBC) instalados no diretório de destino do Hop home (predefinição lib/jdbc).
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=Nome de utilizador
+HopInstallSpecEditor.Repo.Column.Password=Palavra-passe
+HopInstallSpecEditor.Repo.Column.Auth=Auth
+HopInstallSpecEditor.Repo.Edit.Add=Adicionar repositório
+HopInstallSpecEditor.Repo.Edit.Edit=Editar repositório
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=Versão
+HopInstallSpecEditor.Plugin.Edit.Add=Adicionar plugin
+HopInstallSpecEditor.Plugin.Edit.Edit=Editar plugin
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=Versão
+HopInstallSpecEditor.Dep.Column.Target=Destino
+HopInstallSpecEditor.Dep.Edit.Add=Adicionar dependência
+HopInstallSpecEditor.Dep.Edit.Edit=Editar dependência
+HopInstallSpecEditor.Dirty.Header=Alterações não guardadas
+HopInstallSpecEditor.Dirty.Message=Guardar as alterações do ficheiro de ambiente antes de continuar?
+HopInstallSpecEditor.SaveFirst.Header=Guardar ficheiro de ambiente?
+HopInstallSpecEditor.SaveFirst.Message=Guardar o ficheiro de ambiente antes de Validar ou Aplicar?
+HopInstallSpecEditor.Validation.Header=Ambiente inválido
+HopInstallSpecEditor.Validation.RepoIdUrl=Cada repositório precisa de um Id e um URL.
+HopInstallSpecEditor.Validation.PluginArtifact=Cada plugin precisa de um Artifact ID.
+HopInstallSpecEditor.Validation.DepGav=Cada dependência precisa de Group ID, Artifact ID e Version.
+HopInstallSpecEditor.ImportRepos.Header=Importar repositórios
+HopInstallSpecEditor.ImportRepos.Message=Substituir a lista de repositórios pelos repositórios ativados de hop-config.json?
+HopInstallSpecEditor.Error.Header=Erro do editor de ambiente
+HopInstallSpecEditor.Error.Load=Não foi possível carregar o ficheiro de ambiente:\n{0}
+HopInstallSpecEditor.Error.Save=Não foi possível guardar o ficheiro de ambiente:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=Não foi possível importar repositórios do hop-config
AddPluginsFromCatalogDialog.Shell.Title=Adicionar plugins do catálogo
AddPluginsFromCatalogDialog.Filter.Label=Filtro
AddPluginsFromCatalogDialog.Button.Add=Adicionar selecionados
diff --git a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_zh_CN.properties b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_zh_CN.properties
index deaa86db88..04fc6213ba 100644
--- a/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_zh_CN.properties
+++ b/plugins/misc/marketplace/src/main/resources/org/apache/hop/marketplace/gui/messages/messages_zh_CN.properties
@@ -18,19 +18,20 @@
MarketplaceGuiPlugin.Menu.Marketplace.Text=Marketplace...
MarketplaceGuiPlugin.Toolbar.Marketplace.Tooltip=Marketplace…
MarketplaceLifecycleEnv.Tab.Plugins=Marketplace 插件
-MarketplaceLifecycleEnv.Help=插件集在 hop-env 文件中定义。这些选项控制 Hop 何时针对此生命周期环境检查该文件(开发可宽松;生产可强制)。
-MarketplaceLifecycleEnv.EnvFile.Label=环境文件
+MarketplaceLifecycleEnv.Help=插件集在 Hop 安装规格(hop-env.yaml)中定义,而不是在此生命周期环境中。这些选项控制 Hop 何时针对此环境检查该规格(开发可宽松;生产可强制)。
+MarketplaceLifecycleEnv.EnvFile.Label=安装规格文件
MarketplaceLifecycleEnv.Button.Browse=浏览…
MarketplaceLifecycleEnv.Button.EditEnv=编辑…
MarketplaceLifecycleEnv.OnEnable.Label=启用时
MarketplaceLifecycleEnv.OnEnable.Tooltip=off\u00EF\u00BC\u009A\u00E4\u00B8\u008D\u00E6\u00A3\u0080\u00E6\u009F\u00A5\u00EF\u00BC\u009Bwarn\u00EF\u00BC\u009A\u00E6\u00BC\u0082\u00E7\u00A7\u00BB\u00E6\u0097\u00B6\u00E8\u00AE\u00B0\u00E5\u00BD\u0095/\u00E5\u00AF\u00B9\u00E8\u00AF\u009D\u00E6\u00A1\u0086\u00EF\u00BC\u009Benforce\u00EF\u00BC\u009A\u00E6\u00BC\u0082\u00E7\u00A7\u00BB\u00E6\u0097\u00B6\u00E4\u00BD\u00BF\u00E7\u008E\u00AF\u00E5\u00A2\u0083\u00E5\u0090\u00AF\u00E7\u0094\u00A8\u00 [...]
MarketplaceLifecycleEnv.Strict.Label=严格(若安装了额外的 marketplace 插件则失败)
-MarketplaceLifecycleEnv.Strict.Tooltip=验证时,也将环境文件未列出但有安装回执的 marketplace 插件视为漂移
+MarketplaceLifecycleEnv.Strict.Tooltip=验证时,也将安装规格未列出但有安装回执的 marketplace 插件视为漂移
MarketplaceLifecycleEnv.AutoApply.Label=启用时自动应用缺失的插件
MarketplaceLifecycleEnv.AutoApply.Tooltip=启用后,对缺失插件运行 marketplace apply(仅用于受控机器;默认关闭)
MarketplaceDialog.Shell.Title=插件 Marketplace
MarketplaceDialog.Tab.Plugins=插件
MarketplaceDialog.Tab.Environment=环境
+MarketplaceDialog.Tab.InstallSpec=Install spec
MarketplaceDialog.Tab.Repositories=仓库
MarketplaceDialog.Repository.Label=主仓库
MarketplaceDialog.Repository.SetPrimary.Error=无法设置主仓库
@@ -129,76 +130,76 @@ ManageRepositoriesDialog.Edit.Password=密码
ManageRepositoriesDialog.Edit.Enabled=已启用(用于回退链)
ManageRepositoriesDialog.Edit.Primary=主仓库(优先尝试)
ManageRepositoriesDialog.Edit.IdUrlRequired=Id 和 URL 为必填项。
-HopEnvironmentDialog.Shell.Title=Marketplace 环境 — {0}
-HopEnvironmentDialog.Untitled=未命名
-HopEnvironmentDialog.Button.New=新建
-HopEnvironmentDialog.Button.Open=打开…
-HopEnvironmentDialog.Button.Save=保存
-HopEnvironmentDialog.Button.SaveAs=另存为…
-HopEnvironmentDialog.Button.Validate=验证
-HopEnvironmentDialog.Button.Validate.Tooltip=对照此环境文件检查本地安装,不执行安装
-HopEnvironmentDialog.Button.Apply=应用
-HopEnvironmentDialog.Button.Apply.Tooltip=安装此环境文件中声明的插件和依赖
-HopEnvironmentDialog.Button.Close=关闭
-HopEnvironmentDialog.Button.Ok=确定
-HopEnvironmentDialog.Button.Cancel=取消
-HopEnvironmentDialog.Button.Add=添加
-HopEnvironmentDialog.Button.Edit=编辑
-HopEnvironmentDialog.Button.Remove=删除
-HopEnvironmentDialog.Button.MoveUp=上移
-HopEnvironmentDialog.Button.MoveDown=下移
-HopEnvironmentDialog.Button.AddFromCatalog=从目录…
-HopEnvironmentDialog.Button.ImportRepos=从 hop-config 导入…
-HopEnvironmentDialog.Prune=应用时修剪多余项
-HopEnvironmentDialog.Prune.Tooltip=应用时卸载文件中未列出但有安装回执的 marketplace 插件
-HopEnvironmentDialog.Strict=严格验证
-HopEnvironmentDialog.Strict.Tooltip=验证时,若安装了文件之外的额外 marketplace 插件也失败
-HopEnvironmentDialog.Filter.Yaml=YAML 环境 (*.yaml, *.yml)
-HopEnvironmentDialog.Filter.Json=JSON 环境 (*.json)
-HopEnvironmentDialog.Tab.General=常规
-HopEnvironmentDialog.Tab.Repositories=仓库
-HopEnvironmentDialog.Tab.Plugins=插件
-HopEnvironmentDialog.Tab.Dependencies=依赖
-HopEnvironmentDialog.General.Help=声明此 Hop 安装应具备的插件与 jar。保存为 hop-env.yaml 供 CI/Docker 使用,或在此对话框中使用验证/应用。
-HopEnvironmentDialog.General.Version=规范版本
-HopEnvironmentDialog.General.HopVersion=Hop 版本
-HopEnvironmentDialog.General.EnforceOnRun=在 hop-run 时强制
-HopEnvironmentDialog.General.EnforceOnRun.Tooltip=为 true 时,若安装偏离此文件,hop-run 可能失败(也可由 -Dhop.env.enforce=true 控制)
-HopEnvironmentDialog.Repositories.Help=第一行为主(优先尝试);后续行为回退。这些仓库位于环境文件中(非 hop-config)。请尽量不要提交密码。
-HopEnvironmentDialog.Plugins.Help=要安装的 Marketplace 插件。Group ID 留空则使用 org.apache.hop。应用时版本可默认取自“常规”页的 Hop 版本。
-HopEnvironmentDialog.Dependencies.Help=可选 Maven jar(例如 JDBC 驱动),安装到 Hop home 下的目标目录(默认 lib/jdbc)。
-HopEnvironmentDialog.Repo.Column.Id=Id
-HopEnvironmentDialog.Repo.Column.Url=URL
-HopEnvironmentDialog.Repo.Column.Username=用户名
-HopEnvironmentDialog.Repo.Column.Password=密码
-HopEnvironmentDialog.Repo.Column.Auth=认证
-HopEnvironmentDialog.Repo.Edit.Add=添加仓库
-HopEnvironmentDialog.Repo.Edit.Edit=编辑仓库
-HopEnvironmentDialog.Plugin.Column.GroupId=Group ID
-HopEnvironmentDialog.Plugin.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Plugin.Column.Version=版本
-HopEnvironmentDialog.Plugin.Edit.Add=添加插件
-HopEnvironmentDialog.Plugin.Edit.Edit=编辑插件
-HopEnvironmentDialog.Dep.Column.GroupId=Group ID
-HopEnvironmentDialog.Dep.Column.ArtifactId=Artifact ID
-HopEnvironmentDialog.Dep.Column.Version=版本
-HopEnvironmentDialog.Dep.Column.Target=目标
-HopEnvironmentDialog.Dep.Edit.Add=添加依赖
-HopEnvironmentDialog.Dep.Edit.Edit=编辑依赖
-HopEnvironmentDialog.Dirty.Header=未保存的更改
-HopEnvironmentDialog.Dirty.Message=继续前是否保存对环境文件的更改?
-HopEnvironmentDialog.SaveFirst.Header=保存环境文件?
-HopEnvironmentDialog.SaveFirst.Message=在验证或应用之前保存环境文件?
-HopEnvironmentDialog.Validation.Header=无效环境
-HopEnvironmentDialog.Validation.RepoIdUrl=每个仓库需要 Id 和 URL。
-HopEnvironmentDialog.Validation.PluginArtifact=每个插件需要 Artifact ID。
-HopEnvironmentDialog.Validation.DepGav=每个依赖需要 Group ID、Artifact ID 和 Version。
-HopEnvironmentDialog.ImportRepos.Header=导入仓库
-HopEnvironmentDialog.ImportRepos.Message=用 hop-config.json 中已启用的仓库替换仓库列表?
-HopEnvironmentDialog.Error.Header=环境编辑器错误
-HopEnvironmentDialog.Error.Load=无法加载环境文件:\n{0}
-HopEnvironmentDialog.Error.Save=无法保存环境文件:\n{0}
-HopEnvironmentDialog.Error.ImportRepos=无法从 hop-config 导入仓库
+HopInstallSpecEditor.Shell.Title=Marketplace 环境 — {0}
+HopInstallSpecEditor.Untitled=未命名
+HopInstallSpecEditor.Button.New=新建
+HopInstallSpecEditor.Button.Open=打开…
+HopInstallSpecEditor.Button.Save=保存
+HopInstallSpecEditor.Button.SaveAs=另存为…
+HopInstallSpecEditor.Button.Validate=验证
+HopInstallSpecEditor.Button.Validate.Tooltip=对照此环境文件检查本地安装,不执行安装
+HopInstallSpecEditor.Button.Apply=应用
+HopInstallSpecEditor.Button.Apply.Tooltip=安装此环境文件中声明的插件和依赖
+HopInstallSpecEditor.Button.Close=关闭
+HopInstallSpecEditor.Button.Ok=确定
+HopInstallSpecEditor.Button.Cancel=取消
+HopInstallSpecEditor.Button.Add=添加
+HopInstallSpecEditor.Button.Edit=编辑
+HopInstallSpecEditor.Button.Remove=删除
+HopInstallSpecEditor.Button.MoveUp=上移
+HopInstallSpecEditor.Button.MoveDown=下移
+HopInstallSpecEditor.Button.AddFromCatalog=从目录…
+HopInstallSpecEditor.Button.ImportRepos=从 hop-config 导入…
+HopInstallSpecEditor.Prune=应用时修剪多余项
+HopInstallSpecEditor.Prune.Tooltip=应用时卸载文件中未列出但有安装回执的 marketplace 插件
+HopInstallSpecEditor.Strict=严格验证
+HopInstallSpecEditor.Strict.Tooltip=验证时,若安装了文件之外的额外 marketplace 插件也失败
+HopInstallSpecEditor.Filter.Yaml=YAML 环境 (*.yaml, *.yml)
+HopInstallSpecEditor.Filter.Json=JSON 环境 (*.json)
+HopInstallSpecEditor.Tab.General=常规
+HopInstallSpecEditor.Tab.Repositories=仓库
+HopInstallSpecEditor.Tab.Plugins=插件
+HopInstallSpecEditor.Tab.Dependencies=依赖
+HopInstallSpecEditor.General.Help=声明此 Hop 安装应具备的插件与 jar。保存为 hop-env.yaml 供 CI/Docker 使用,或在此对话框中使用验证/应用。
+HopInstallSpecEditor.General.Version=规范版本
+HopInstallSpecEditor.General.HopVersion=Hop 版本
+HopInstallSpecEditor.General.EnforceOnRun=在 hop-run 时强制
+HopInstallSpecEditor.General.EnforceOnRun.Tooltip=为 true 时,若安装偏离此文件,hop-run 可能失败(也可由 -Dhop.env.enforce=true 控制)
+HopInstallSpecEditor.Repositories.Help=第一行为主(优先尝试);后续行为回退。这些仓库位于环境文件中(非 hop-config)。请尽量不要提交密码。
+HopInstallSpecEditor.Plugins.Help=要安装的 Marketplace 插件。Group ID 留空则使用 org.apache.hop。应用时版本可默认取自“常规”页的 Hop 版本。
+HopInstallSpecEditor.Dependencies.Help=可选 Maven jar(例如 JDBC 驱动),安装到 Hop home 下的目标目录(默认 lib/jdbc)。
+HopInstallSpecEditor.Repo.Column.Id=Id
+HopInstallSpecEditor.Repo.Column.Url=URL
+HopInstallSpecEditor.Repo.Column.Username=用户名
+HopInstallSpecEditor.Repo.Column.Password=密码
+HopInstallSpecEditor.Repo.Column.Auth=认证
+HopInstallSpecEditor.Repo.Edit.Add=添加仓库
+HopInstallSpecEditor.Repo.Edit.Edit=编辑仓库
+HopInstallSpecEditor.Plugin.Column.GroupId=Group ID
+HopInstallSpecEditor.Plugin.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Plugin.Column.Version=版本
+HopInstallSpecEditor.Plugin.Edit.Add=添加插件
+HopInstallSpecEditor.Plugin.Edit.Edit=编辑插件
+HopInstallSpecEditor.Dep.Column.GroupId=Group ID
+HopInstallSpecEditor.Dep.Column.ArtifactId=Artifact ID
+HopInstallSpecEditor.Dep.Column.Version=版本
+HopInstallSpecEditor.Dep.Column.Target=目标
+HopInstallSpecEditor.Dep.Edit.Add=添加依赖
+HopInstallSpecEditor.Dep.Edit.Edit=编辑依赖
+HopInstallSpecEditor.Dirty.Header=未保存的更改
+HopInstallSpecEditor.Dirty.Message=继续前是否保存对环境文件的更改?
+HopInstallSpecEditor.SaveFirst.Header=保存环境文件?
+HopInstallSpecEditor.SaveFirst.Message=在验证或应用之前保存环境文件?
+HopInstallSpecEditor.Validation.Header=无效环境
+HopInstallSpecEditor.Validation.RepoIdUrl=每个仓库需要 Id 和 URL。
+HopInstallSpecEditor.Validation.PluginArtifact=每个插件需要 Artifact ID。
+HopInstallSpecEditor.Validation.DepGav=每个依赖需要 Group ID、Artifact ID 和 Version。
+HopInstallSpecEditor.ImportRepos.Header=导入仓库
+HopInstallSpecEditor.ImportRepos.Message=用 hop-config.json 中已启用的仓库替换仓库列表?
+HopInstallSpecEditor.Error.Header=环境编辑器错误
+HopInstallSpecEditor.Error.Load=无法加载环境文件:\n{0}
+HopInstallSpecEditor.Error.Save=无法保存环境文件:\n{0}
+HopInstallSpecEditor.Error.ImportRepos=无法从 hop-config 导入仓库
AddPluginsFromCatalogDialog.Shell.Title=从目录添加插件
AddPluginsFromCatalogDialog.Filter.Label=筛选
AddPluginsFromCatalogDialog.Button.Add=添加所选
diff --git a/plugins/misc/marketplace/src/main/samples/hop-env.example.yaml b/plugins/misc/marketplace/src/main/samples/hop-env.example.yaml
index 9d66611fc0..352ebfbd33 100644
--- a/plugins/misc/marketplace/src/main/samples/hop-env.example.yaml
+++ b/plugins/misc/marketplace/src/main/samples/hop-env.example.yaml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-# Example declarative Hop environment (copy to hop-env.yaml in your project or install).
+# Example Hop install spec (copy to hop-env.yaml in your project or install).
# Apply with:
# hop marketplace apply -f hop-env.yaml
# hop marketplace apply -f hop-env.yaml --prune
diff --git a/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/config/RepositoryPasswordStorageTest.java b/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/config/RepositoryPasswordStorageTest.java
index 6fb2aa7c26..d8e48b389e 100644
--- a/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/config/RepositoryPasswordStorageTest.java
+++ b/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/config/RepositoryPasswordStorageTest.java
@@ -25,7 +25,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List;
import java.util.Map;
import org.apache.hop.core.json.HopJson;
-import org.apache.hop.marketplace.env.HopEnvironmentSpec;
+import org.apache.hop.marketplace.env.HopInstallSpec;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
@@ -144,7 +144,7 @@ class RepositoryPasswordStorageTest {
@Test
void environmentFilesObfuscatePasswordsToo() {
- HopEnvironmentSpec.RepositoryRef ref = new HopEnvironmentSpec.RepositoryRef();
+ HopInstallSpec.RepositoryRef ref = new HopInstallSpec.RepositoryRef();
ref.setId("acme");
ref.setUrl("https://example.org/");
ref.setPassword(PLAIN);
@@ -152,8 +152,8 @@ class RepositoryPasswordStorageTest {
Map<String, Object> written = HopJson.newMapper().convertValue(ref, Map.class);
assertTrue(String.valueOf(written.get("password")).startsWith("Encrypted "));
- HopEnvironmentSpec.RepositoryRef read =
- HopJson.newMapper().convertValue(written, HopEnvironmentSpec.RepositoryRef.class);
+ HopInstallSpec.RepositoryRef read =
+ HopJson.newMapper().convertValue(written, HopInstallSpec.RepositoryRef.class);
assertEquals(PLAIN, read.getPassword());
}
}
diff --git a/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/EnvironmentApplierTest.java b/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/EnvironmentApplierTest.java
index 69296565d8..00d474a35e 100644
--- a/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/EnvironmentApplierTest.java
+++ b/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/EnvironmentApplierTest.java
@@ -47,9 +47,9 @@ class EnvironmentApplierTest {
Path hopHome = tempDir.resolve("hop");
Files.createDirectories(hopHome.resolve("plugins"));
- HopEnvironmentSpec env = new HopEnvironmentSpec();
+ HopInstallSpec env = new HopInstallSpec();
env.setHopVersion("2.19.0");
- HopEnvironmentSpec.PluginRef ref = new HopEnvironmentSpec.PluginRef();
+ HopInstallSpec.PluginRef ref = new HopInstallSpec.PluginRef();
ref.setArtifactId("hop-tech-parquet");
ref.setVersion("2.19.0");
env.getPlugins().add(ref);
@@ -66,8 +66,8 @@ class EnvironmentApplierTest {
Path hopHome = tempDir.resolve("hop");
Files.createDirectories(hopHome.resolve("plugins/tech/parquet"));
- HopEnvironmentSpec env = new HopEnvironmentSpec();
- HopEnvironmentSpec.PluginRef ref = new HopEnvironmentSpec.PluginRef();
+ HopInstallSpec env = new HopInstallSpec();
+ HopInstallSpec.PluginRef ref = new HopInstallSpec.PluginRef();
ref.setArtifactId("hop-tech-parquet");
env.getPlugins().add(ref);
@@ -91,8 +91,8 @@ class EnvironmentApplierTest {
hopHome.resolve(PluginInstaller.RECEIPTS_DIR).resolve("hop-tech-parquet.json").toFile(),
receipt);
- HopEnvironmentSpec env = new HopEnvironmentSpec();
- HopEnvironmentSpec.PluginRef ref = new HopEnvironmentSpec.PluginRef();
+ HopInstallSpec env = new HopInstallSpec();
+ HopInstallSpec.PluginRef ref = new HopInstallSpec.PluginRef();
ref.setArtifactId("hop-tech-parquet");
ref.setVersion("2.19.0");
env.getPlugins().add(ref);
diff --git a/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/HopEnvironmentLoaderTest.java b/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/HopInstallSpecLoaderTest.java
similarity index 69%
rename from plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/HopEnvironmentLoaderTest.java
rename to plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/HopInstallSpecLoaderTest.java
index 6ae387c25f..88a260f551 100644
--- a/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/HopEnvironmentLoaderTest.java
+++ b/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/env/HopInstallSpecLoaderTest.java
@@ -25,10 +25,11 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
+import org.apache.hop.core.variables.Variables;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
-class HopEnvironmentLoaderTest {
+class HopInstallSpecLoaderTest {
@TempDir Path tempDir;
@@ -55,7 +56,7 @@ class HopEnvironmentLoaderTest {
""",
StandardCharsets.UTF_8);
- HopEnvironmentSpec env = HopEnvironmentLoader.load(file);
+ HopInstallSpec env = HopInstallSpecLoader.load(file);
assertEquals("1.0", env.getVersion());
assertEquals("2.19.0", env.getHopVersion());
assertTrue(env.isEnforceOnRun());
@@ -81,7 +82,7 @@ class HopEnvironmentLoaderTest {
}
""",
StandardCharsets.UTF_8);
- HopEnvironmentSpec env = HopEnvironmentLoader.load(file);
+ HopInstallSpec env = HopInstallSpecLoader.load(file);
assertFalse(env.isEnforceOnRun());
assertEquals(1, env.getPlugins().size());
assertEquals("hop-tech-arrow", env.getPlugins().get(0).getArtifactId());
@@ -89,9 +90,9 @@ class HopEnvironmentLoaderTest {
@Test
void saveAndLoadYamlRoundTrip() throws Exception {
- HopEnvironmentSpec spec = sampleSpec();
+ HopInstallSpec spec = sampleSpec();
Path file = tempDir.resolve("roundtrip.yaml");
- HopEnvironmentLoader.save(file, spec);
+ HopInstallSpecLoader.save(file, spec);
String content = Files.readString(file, StandardCharsets.UTF_8);
assertTrue(content.contains("hopVersion:"));
@@ -100,7 +101,7 @@ class HopEnvironmentLoaderTest {
// blank groupId omitted
assertFalse(content.contains("groupId: org.apache.hop"));
- HopEnvironmentSpec loaded = HopEnvironmentLoader.load(file);
+ HopInstallSpec loaded = HopInstallSpecLoader.load(file);
assertEquals("1.0", loaded.getVersion());
assertEquals("2.19.0", loaded.getHopVersion());
assertTrue(loaded.isEnforceOnRun());
@@ -117,11 +118,11 @@ class HopEnvironmentLoaderTest {
@Test
void saveAndLoadJsonRoundTrip() throws Exception {
- HopEnvironmentSpec spec = sampleSpec();
+ HopInstallSpec spec = sampleSpec();
Path file = tempDir.resolve("roundtrip.json");
- HopEnvironmentLoader.save(file, spec);
+ HopInstallSpecLoader.save(file, spec);
- HopEnvironmentSpec loaded = HopEnvironmentLoader.load(file);
+ HopInstallSpec loaded = HopInstallSpecLoader.load(file);
assertEquals(spec.getHopVersion(), loaded.getHopVersion());
assertEquals(spec.getPlugins().size(), loaded.getPlugins().size());
assertEquals(
@@ -131,30 +132,66 @@ class HopEnvironmentLoaderTest {
@Test
void saveMinimalOmitsEmptyLists() throws Exception {
- HopEnvironmentSpec spec = new HopEnvironmentSpec();
+ HopInstallSpec spec = new HopInstallSpec();
spec.setVersion("1.0");
spec.setHopVersion("2.19.0");
Path file = tempDir.resolve("minimal.yaml");
- HopEnvironmentLoader.save(file, spec);
+ HopInstallSpecLoader.save(file, spec);
String content = Files.readString(file, StandardCharsets.UTF_8);
assertFalse(content.contains("repositories:"));
assertFalse(content.contains("plugins:"));
assertFalse(content.contains("dependencies:"));
- HopEnvironmentSpec loaded = HopEnvironmentLoader.load(file);
+ HopInstallSpec loaded = HopInstallSpecLoader.load(file);
assertEquals("2.19.0", loaded.getHopVersion());
assertTrue(loaded.getPlugins().isEmpty());
}
- private static HopEnvironmentSpec sampleSpec() {
- HopEnvironmentSpec spec = new HopEnvironmentSpec();
+ @Test
+ void loadAndSaveThroughHopVfsFilename() throws Exception {
+ HopInstallSpec spec = sampleSpec();
+ Path file = tempDir.resolve("vfs.yaml");
+ HopInstallSpecLoader.save(file.toString(), spec, null);
+ HopInstallSpec loaded = HopInstallSpecLoader.load(file.toString(), null);
+ assertEquals("hop-tech-parquet", loaded.getPlugins().get(0).getArtifactId());
+ }
+
+ @Test
+ void loadResolvesVariables() throws Exception {
+ Path file = tempDir.resolve("hop-env.yaml");
+ Files.writeString(file, "version: \"1.0\"\nhopVersion: \"2.19.0\"\n", StandardCharsets.UTF_8);
+ Variables variables = new Variables();
+ variables.setVariable("PROJECT_HOME", tempDir.toString());
+ HopInstallSpec loaded = HopInstallSpecLoader.load("${PROJECT_HOME}/hop-env.yaml", variables);
+ assertEquals("2.19.0", loaded.getHopVersion());
+ }
+
+ @Test
+ void existsRecognizesVariablePathAndRejectsMissing() {
+ Variables variables = new Variables();
+ variables.setVariable("PROJECT_HOME", tempDir.toString());
+ assertFalse(HopInstallSpecFiles.exists("${PROJECT_HOME}/hop-env.yaml", variables));
+ assertFalse(HopInstallSpecFiles.exists("file:///no/such/hop-env.yaml", null));
+ }
+
+ @Test
+ void wellKnownBasenames() {
+ assertTrue(HopInstallSpecFiles.isWellKnown("/opt/hop/hop-env.yaml"));
+ assertTrue(HopInstallSpecFiles.isWellKnown("full-client-env.yaml"));
+ assertTrue(HopInstallSpecFiles.isFullClient("/install/full-client-env.yaml"));
+ assertFalse(HopInstallSpecFiles.isWellKnown("other.yaml"));
+ assertEquals("hop-env.yaml", HopInstallSpecFiles.ensureSpecExtension("hop-env"));
+ }
+
+ private static HopInstallSpec sampleSpec() {
+ HopInstallSpec spec = new HopInstallSpec();
spec.setVersion("1.0");
spec.setHopVersion("2.19.0");
spec.setEnforceOnRun(true);
- HopEnvironmentSpec.RepositoryRef asf = new HopEnvironmentSpec.RepositoryRef();
+ HopInstallSpec.RepositoryRef asf = new HopInstallSpec.RepositoryRef();
asf.setId("asf");
asf.setUrl("https://repository.apache.org/content/groups/public/");
- HopEnvironmentSpec.RepositoryRef privateRepo = new HopEnvironmentSpec.RepositoryRef();
+ HopInstallSpec.RepositoryRef privateRepo = new HopInstallSpec.RepositoryRef();
privateRepo.setId("private");
privateRepo.setUrl("https://nexus.example/repository/hop/");
privateRepo.setUsername("ci");
@@ -162,12 +199,12 @@ class HopEnvironmentLoaderTest {
spec.getRepositories().add(asf);
spec.getRepositories().add(privateRepo);
- HopEnvironmentSpec.PluginRef plugin = new HopEnvironmentSpec.PluginRef();
+ HopInstallSpec.PluginRef plugin = new HopInstallSpec.PluginRef();
plugin.setArtifactId("hop-tech-parquet");
plugin.setVersion("2.19.0");
spec.getPlugins().add(plugin);
- HopEnvironmentSpec.DependencyRef dep = new HopEnvironmentSpec.DependencyRef();
+ HopInstallSpec.DependencyRef dep = new HopInstallSpec.DependencyRef();
dep.setGroupId("org.postgresql");
dep.setArtifactId("postgresql");
dep.setVersion("42.7.3");
diff --git a/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/gui/HopInstallSpecFileTypeTest.java b/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/gui/HopInstallSpecFileTypeTest.java
new file mode 100644
index 0000000000..66890a5352
--- /dev/null
+++ b/plugins/misc/marketplace/src/test/java/org/apache/hop/marketplace/gui/HopInstallSpecFileTypeTest.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hop.marketplace.gui;
+
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+
+class HopInstallSpecFileTypeTest {
+
+ @Test
+ void claimsWellKnownBasenamesOnly() throws Exception {
+ HopInstallSpecFileType type = new HopInstallSpecFileType();
+ assertTrue(type.isHandledBy("/opt/hop/hop-env.yaml", false));
+ assertTrue(type.isHandledBy("hop-env.yml", false));
+ assertTrue(type.isHandledBy("hop-env.json", false));
+ assertTrue(type.isHandledBy("full-client-env.yaml", false));
+ assertFalse(type.isHandledBy("config.yaml", false));
+ assertFalse(type.isHandledBy("other.json", false));
+ }
+
+ @Test
+ void yamlOrJsonHelper() {
+ assertTrue(HopInstallSpecFileType.isYamlOrJson("deploy/plugins.yaml"));
+ assertTrue(HopInstallSpecFileType.isYamlOrJson("x.yml"));
+ assertTrue(HopInstallSpecFileType.isYamlOrJson("x.json"));
+ assertFalse(HopInstallSpecFileType.isYamlOrJson("readme.txt"));
+ }
+}
diff --git a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/ExplorerPerspective.java b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/ExplorerPerspective.java
index 5601a535e6..ae1696b0df 100644
--- a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/ExplorerPerspective.java
+++ b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/ExplorerPerspective.java
@@ -4033,6 +4033,16 @@ public class ExplorerPerspective implements IHopPerspective, TabClosable, IFileD
return folderFileType != null ? folderFileType : new FolderFileType();
}
+ // Exact base-name types first (hop-env.yaml, Dockerfile, .gitignore, …) so a specialized
+ // handler can win over a generic extension such as *.yaml.
+ String baseName = HopFileTypeBase.extractBaseName(path);
+ if (!Utils.isEmpty(baseName)) {
+ IHopFileType byName = fileTypeByBaseName.get(baseName);
+ if (byName != null) {
+ return byName;
+ }
+ }
+
// Fast path: extension map (most project files)
String extension = HopFileTypeBase.extractExtension(path);
if (!Utils.isEmpty(extension)) {
@@ -4042,15 +4052,6 @@ public class ExplorerPerspective implements IHopPerspective, TabClosable, IFileD
}
}
- // Exact base-name types (Dockerfile, .gitignore, config, ...)
- String baseName = HopFileTypeBase.extractBaseName(path);
- if (!Utils.isEmpty(baseName)) {
- IHopFileType byName = fileTypeByBaseName.get(baseName);
- if (byName != null) {
- return byName;
- }
- }
-
// Fallback for custom handlers not covered by the maps (should be rare)
if (fileTypes != null) {
for (IHopFileType hopFileType : fileTypes) {