Skip to content

Commit d342eef

Browse files
committed
Use Sync task rather than Copy
See gh-42333
1 parent e5b03a7 commit d342eef

File tree

2 files changed

+6
-6
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-antlib
  • spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant

2 files changed

+6
-6
lines changed

spring-boot-project/spring-boot-tools/spring-boot-antlib/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ dependencies {
2525
implementation("org.springframework:spring-core")
2626
}
2727

28-
task copyIntegrationTestSources(type: Copy) {
28+
task syncIntegrationTestSources(type: Sync) {
29+
destinationDir file("${buildDir}/it")
2930
from file("src/it")
30-
into "${buildDir}/it"
3131
filter(springRepoistoryTransformers.ant())
3232
}
3333

@@ -39,7 +39,7 @@ processResources {
3939
}
4040

4141
task integrationTest {
42-
dependsOn copyIntegrationTestSources, jar
42+
dependsOn syncIntegrationTestSources, jar
4343
def resultsDir = file("${buildDir}/test-results/integrationTest")
4444
inputs.dir(file("src/it")).withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName("source")
4545
inputs.files(sourceSets.main.runtimeClasspath).withNormalizer(ClasspathNormalizer).withPropertyName("classpath")

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ task syncTestRepository(type: Sync) {
4646
}
4747
}
4848

49-
task copyAntSources(type: Copy) {
49+
task syncAntSources(type: Sync) {
50+
destinationDir file("${buildDir}/ant")
5051
from project.layout.projectDirectory
5152
include "*.xml"
52-
into "${buildDir}/ant"
5353
filter(springRepoistoryTransformers.ant())
5454
}
5555

5656
task antRun(type: JavaExec) {
5757
workingDir "${buildDir}/ant"
58-
dependsOn syncTestRepository, copyAntSources, configurations.antDependencies
58+
dependsOn syncTestRepository, syncAntSources, configurations.antDependencies
5959
classpath = configurations.antDependencies;
6060
mainClass = "org.apache.tools.ant.launch.Launcher"
6161
args = [ "clean", "build" ]

0 commit comments

Comments
 (0)