File tree 2 files changed +12
-5
lines changed
integTest/groovy/org/elasticsearch/gradle/internal
main/java/org/elasticsearch/gradle/internal
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,10 @@ class InternalDistributionBwcSetupPluginFuncTest extends AbstractGitAwareGradleF
110
110
inputs.files(configurations.expandedDist)
111
111
doLast {
112
112
configurations.expandedDist.files.each {
113
- println "distfile " + (it.absolutePath - project.rootDir.absolutePath)
113
+ println "expandedRootPath " + (it.absolutePath - project.rootDir.absolutePath)
114
+ it.eachFile { nested ->
115
+ println "nested folder " + (nested.absolutePath - project.rootDir.absolutePath)
116
+ }
114
117
}
115
118
}
116
119
}
@@ -123,11 +126,13 @@ class InternalDistributionBwcSetupPluginFuncTest extends AbstractGitAwareGradleF
123
126
then :
124
127
result. task(" :resolveExpandedDistribution" ). outcome == TaskOutcome . SUCCESS
125
128
result. task(" :distribution:bwc:minor:buildBwcDarwinTar" ). outcome == TaskOutcome . SUCCESS
126
-
127
129
and : " assemble task triggered"
128
130
result. output. contains(" [7.11.0] > Task :distribution:archives:darwin-tar:extractedAssemble" )
129
131
normalized(result. output)
130
- .contains(" distfile /distribution/bwc/minor/build/bwc/checkout-7.x/" +
132
+ .contains(" expandedRootPath /distribution/bwc/minor/build/bwc/checkout-7.x/" +
131
133
" distribution/archives/darwin-tar/build/install" )
134
+ normalized(result. output)
135
+ .contains(" nested folder /distribution/bwc/minor/build/bwc/checkout-7.x/" +
136
+ " distribution/archives/darwin-tar/build/install/elasticsearch-7.11.0-SNAPSHOT" )
132
137
}
133
138
}
Original file line number Diff line number Diff line change @@ -213,7 +213,9 @@ static void createBuildBwcTask(
213
213
String bwcTaskName = buildBwcTaskName (projectName );
214
214
bwcSetupExtension .bwcTask (bwcTaskName , c -> {
215
215
boolean useNativeExpanded = projectArtifact .expandedDistDir != null ;
216
- File expectedOutputFile = useNativeExpanded ? projectArtifact .expandedDistDir : projectArtifact .distFile ;
216
+ File expectedOutputFile = useNativeExpanded
217
+ ? new File (projectArtifact .expandedDistDir , "elasticsearch-" + bwcVersion .get () + "-SNAPSHOT" )
218
+ : projectArtifact .distFile ;
217
219
c .getInputs ().file (new File (project .getBuildDir (), "refspec" ));
218
220
if (useNativeExpanded ) {
219
221
c .getOutputs ().dir (expectedOutputFile );
@@ -279,7 +281,7 @@ private static class DistributionProject {
279
281
+ "."
280
282
+ extension
281
283
),
282
- expandedDistDirSupport ? new File (checkoutDir , baseDir + "/" + name + "/build/install/ " ) : null
284
+ expandedDistDirSupport ? new File (checkoutDir , baseDir + "/" + name + "/build/install" ) : null
283
285
);
284
286
}
285
287
You can’t perform that action at this time.
0 commit comments