aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2020-09-26 05:22:17 +0000
committerDominik Stadler <centic@apache.org>2020-09-26 05:22:17 +0000
commit1e5b193391a28fe5d558194dd01fcd28637e7730 (patch)
tree0af3bdeec993a8856f4c250d6ce03c02a12e8938 /build.gradle
parent389eab2fbdbe9e8a474e7588d31333031ecac612 (diff)
downloadpoi-1e5b193391a28fe5d558194dd01fcd28637e7730.tar.gz
poi-1e5b193391a28fe5d558194dd01fcd28637e7730.zip
More changes to make the Gradle build work again
We have to compile the custom Ant-tasks before invoking Ant from Gradle git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882037 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle13
1 files changed, 13 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index b3da423b36..7610bfd0c3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -241,6 +241,19 @@ project('ooxml') {
sourceSets.main.resources.srcDirs = ['../../src/ooxml/resources', '../../src/resources/ooxml']
sourceSets.test.java.srcDirs = ['../../src/ooxml/testcases']
+ configurations {
+ antdep
+ }
+
+ dependencies {
+ antdep 'org.apache.ant:ant:1.10.8'
+ }
+
+ // we need to ensure that the custom ant tasks are compiled before we import the build.xml file
+ ant.mkdir(dir: "../../build/poi-ant-contrib")
+ ant.javac(srcdir: "../../src/excelant/poi-ant-contrib", destdir: "../../build/poi-ant-contrib",
+ classpath: configurations.antdep.asPath)
+
// for now import the ant-task for building the jars from build.xml
// we need to rename the tasks as e.g. task "jar" conflicts with :ooxml:jar
ant.importBuild('../../build.xml') { antTargetName ->