Browse Source

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.
pull/33648/head
Phillip Webb 3 years ago
parent
commit
816728186a
  1. 1
      spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/build.gradle
  2. 2
      spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/build.xml

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

@ -51,6 +51,7 @@ task antRun(type: JavaExec) { @@ -51,6 +51,7 @@ task antRun(type: JavaExec) {
dependsOn syncTestRepository, configurations.antDependencies
classpath = configurations.antDependencies;
main = "org.apache.tools.ant.launch.Launcher"
args = [ "clean", "build" ]
systemProperties = [
"ant-spring-boot.version" : version,
"projectDir": project.layout.projectDirectory

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

@ -38,6 +38,7 @@ @@ -38,6 +38,7 @@
<target name="clean" description="cleans all created files/dirs">
<delete dir="target" />
<delete dir="${lib.dir}" />
</target>
<target name="build" depends="compile">
@ -48,6 +49,7 @@ @@ -48,6 +49,7 @@
</spring-boot:lib>
</spring-boot:exejar>
</target>
<!-- Manual equivalent of the build target -->
<target name="manual" depends="compile">
<jar destfile="target/${ant.project.name}-${ant-spring-boot.version}.jar" compress="false">

Loading…
Cancel
Save