Skip to content

Commit

Permalink
Fix problem with running the gradle build by isolating the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Mar 23, 2022
1 parent a70cb0e commit 109e582
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
<property name="signatures.dir" location="src/main/resources/de/thetaphi/forbiddenapis/signatures"/>
<property name="groovy-tools.dir" location="src/tools/groovy"/>
<property name="gradle-test-build-dir" location="build/test-gradle"/>
<property name="gradle-test-user-dir" location="build/tmp-gradle"/>
<property name="gradle-publish-build-dir" location="build/gradle-plugin-portal"/>
<property name="maven-build-dir" location="build/maven"/>
<property name="documentation-dir" location="build/docs"/>
Expand Down Expand Up @@ -617,6 +618,7 @@

<target name="test-gradle" depends="compile,compile-test,jar,-gradle-unsupported" if="gradle.supported" description="Runs a basic Gradle project to check ourselves">
<mkdir dir="${gradle-test-build-dir}"/>
<mkdir dir="${gradle-test-user-dir}"/>
<copy todir="${gradle-test-build-dir}">
<fileset dir="src/test/gradle"/>
</copy>
Expand All @@ -635,6 +637,8 @@
<arg value="--info"/>
<arg value="--stacktrace"/>
<arg value="--no-daemon"/>
<arg value="--gradle-user-home"/>
<arg file="${gradle-test-user-dir}"/>
<arg value="forbiddenApis"/>
</exec>
</target>
Expand Down

0 comments on commit 109e582

Please sign in to comment.