release version 1.12.0
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core</groupId>
|
||||
<artifactId>initializer</artifactId>
|
||||
<version>1.11.0</version>
|
||||
<version>1.12.0</version>
|
||||
</parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core.initializer</groupId>
|
||||
<artifactId>artifact-loader</artifactId>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-loader
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2025 EmDev LLC
|
||||
* Copyright (C) 2020 - 2026 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-loader
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2025 EmDev LLC
|
||||
* Copyright (C) 2020 - 2026 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
@@ -56,6 +56,7 @@ import ru.entaxy.platform.core.artifact.Artifact;
|
||||
import ru.entaxy.platform.core.artifact.ArtifactCoordinates;
|
||||
import ru.entaxy.platform.core.artifact.Artifacts;
|
||||
import ru.entaxy.platform.core.artifact.DeployedArtifact;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.ClusterInstaller;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.InstallationResult;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.Installer;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.CommonBundleInstaller;
|
||||
@@ -271,8 +272,16 @@ public class ArtifactInstaller implements SimpleFileWatcher.WatcherCallback {
|
||||
|
||||
log.debug(" >> EXECUTING task for [{}]", task.artifactUrl);
|
||||
|
||||
Installer<?> installer = task.installShared ? artifactService.installers().cluster()
|
||||
: artifactService.installers().local();
|
||||
Installer<?> installer;
|
||||
|
||||
if (task.installShared) {
|
||||
ClusterInstaller clusterInstaller = artifactService.installers().cluster();
|
||||
if (task.targetGroup != null && !task.targetGroup.isBlank())
|
||||
clusterInstaller.groups(task.targetGroup);
|
||||
installer = clusterInstaller;
|
||||
} else {
|
||||
installer = artifactService.installers().local();
|
||||
}
|
||||
|
||||
installer.artifact(task.deployedArtifact);
|
||||
|
||||
@@ -349,6 +358,9 @@ public class ArtifactInstaller implements SimpleFileWatcher.WatcherCallback {
|
||||
|
||||
}
|
||||
|
||||
if (values.length > 3)
|
||||
result.targetGroup = values[3].trim();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -356,6 +368,8 @@ public class ArtifactInstaller implements SimpleFileWatcher.WatcherCallback {
|
||||
|
||||
boolean installShared = true;
|
||||
|
||||
String targetGroup = "";
|
||||
|
||||
String artifactCategory = "jar";
|
||||
|
||||
int startLevel = 100;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-loader
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2025 EmDev LLC
|
||||
* Copyright (C) 2020 - 2026 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
|
||||
Reference in New Issue
Block a user