Skip to content

Commit 8167281

Browse files
committed
Clean ant lib folder before build
Update `spring-boot-smoke-test-ant` so that the ant lib folder is always cleaned. Prior to this commit, it was possible for the folder to contain stale artifacts.
1 parent e8e56db commit 8167281

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ task antRun(type: JavaExec) {
5151
dependsOn syncTestRepository, configurations.antDependencies
5252
classpath = configurations.antDependencies;
5353
main = "org.apache.tools.ant.launch.Launcher"
54+
args = [ "clean", "build" ]
5455
systemProperties = [
5556
"ant-spring-boot.version" : version,
5657
"projectDir": project.layout.projectDirectory

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
<target name="clean" description="cleans all created files/dirs">
4040
<delete dir="target" />
41+
<delete dir="${lib.dir}" />
4142
</target>
4243

4344
<target name="build" depends="compile">
@@ -48,6 +49,7 @@
4849
</spring-boot:lib>
4950
</spring-boot:exejar>
5051
</target>
52+
5153
<!-- Manual equivalent of the build target -->
5254
<target name="manual" depends="compile">
5355
<jar destfile="target/${ant.project.name}-${ant-spring-boot.version}.jar" compress="false">

0 commit comments

Comments
 (0)