ソースを参照

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
tags/before_ooxml_3rd_edition
Dominik Stadler 3年前
コミット
1e5b193391
1個のファイルの変更13行の追加0行の削除
  1. 13
    0
      build.gradle

+ 13
- 0
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 ->

読み込み中…
キャンセル
保存