mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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.
This commit is contained in:
parent
e8e56dbb11
commit
816728186a
@ -51,6 +51,7 @@ task antRun(type: JavaExec) {
|
|||||||
dependsOn syncTestRepository, configurations.antDependencies
|
dependsOn syncTestRepository, configurations.antDependencies
|
||||||
classpath = configurations.antDependencies;
|
classpath = configurations.antDependencies;
|
||||||
main = "org.apache.tools.ant.launch.Launcher"
|
main = "org.apache.tools.ant.launch.Launcher"
|
||||||
|
args = [ "clean", "build" ]
|
||||||
systemProperties = [
|
systemProperties = [
|
||||||
"ant-spring-boot.version" : version,
|
"ant-spring-boot.version" : version,
|
||||||
"projectDir": project.layout.projectDirectory
|
"projectDir": project.layout.projectDirectory
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
<target name="clean" description="cleans all created files/dirs">
|
<target name="clean" description="cleans all created files/dirs">
|
||||||
<delete dir="target" />
|
<delete dir="target" />
|
||||||
|
<delete dir="${lib.dir}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build" depends="compile">
|
<target name="build" depends="compile">
|
||||||
@ -48,6 +49,7 @@
|
|||||||
</spring-boot:lib>
|
</spring-boot:lib>
|
||||||
</spring-boot:exejar>
|
</spring-boot:exejar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Manual equivalent of the build target -->
|
<!-- Manual equivalent of the build target -->
|
||||||
<target name="manual" depends="compile">
|
<target name="manual" depends="compile">
|
||||||
<jar destfile="target/${ant.project.name}-${ant-spring-boot.version}.jar" compress="false">
|
<jar destfile="target/${ant.project.name}-${ant-spring-boot.version}.jar" compress="false">
|
||||||
|
Loading…
Reference in New Issue
Block a user