Signed-off-by: Xue Zhou <xuezhou@amazon.com>
This commit is contained in:
parent
20728c3725
commit
82d1d0ec08
|
@ -239,10 +239,17 @@ public class InternalDistributionBwcSetupPlugin implements Plugin<Project> {
|
||||||
DistributionProject(String name, String baseDir, Version version, String classifier, String extension, File checkoutDir) {
|
DistributionProject(String name, String baseDir, Version version, String classifier, String extension, File checkoutDir) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.projectPath = baseDir + "/" + name;
|
this.projectPath = baseDir + "/" + name;
|
||||||
this.distFile = new File(
|
if (version.onOrAfter("1.1.0")) {
|
||||||
checkoutDir,
|
this.distFile = new File(
|
||||||
baseDir + "/" + name + "/build/distributions/opensearch-" + version + "-SNAPSHOT" + classifier + "." + extension
|
checkoutDir,
|
||||||
);
|
baseDir + "/" + name + "/build/distributions/opensearch-min-" + version + "-SNAPSHOT" + classifier + "." + extension
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this.distFile = new File(
|
||||||
|
checkoutDir,
|
||||||
|
baseDir + "/" + name + "/build/distributions/opensearch-" + version + "-SNAPSHOT" + classifier + "." + extension
|
||||||
|
);
|
||||||
|
}
|
||||||
// we only ported this down to the 7.x branch.
|
// we only ported this down to the 7.x branch.
|
||||||
if (version.onOrAfter("7.10.0") && (name.endsWith("zip") || name.endsWith("tar"))) {
|
if (version.onOrAfter("7.10.0") && (name.endsWith("zip") || name.endsWith("tar"))) {
|
||||||
this.expandedDistDir = new File(checkoutDir, baseDir + "/" + name + "/build/install");
|
this.expandedDistDir = new File(checkoutDir, baseDir + "/" + name + "/build/install");
|
||||||
|
|
Loading…
Reference in New Issue