• Andy Wilkinson's avatar
    Use JavaExec to invoke Ant with required dependencies on its classpath · 4486da8e
    Andy Wilkinson authored
    Previously, we were adding dependencies to Ant's ClassLoader within
    Gradle. It is suspected that this was causing sporadic loader
    contraint violations as types that Gradle itself uses (from Commons
    Compress) were then available from two different ClassLoaders.
    
    This commit reworks the Ant smoke test to use JavaExec and Ant's
    launcher to run the build. This allows us to make the necessary
    dependencies available to Ant in an isolated manner. The javac
    invocation within Ant is now forked to allow it to find the tools jar
    even when the build itself is running on a JRE.
    
    Closes gh-19839
    4486da8e
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...