Repository: arrow Updated Branches: refs/heads/master 270ab4e94 -> 52089d609
ARROW-285: Optional flatc download For platforms which don't have a flatc compiler artifact on maven central, allow to skip the download and manually provide a flatc compiler usage: mvn -Dflatc.download.skip -Dflatc.executable=/usr/local/bin/flatc Author: Laurent Goujon <laur...@dremio.com> Closes #129 from laurentgo/laurent/optional-flatc-download and squashes the following commits: 229c6d5 [Laurent Goujon] Optional flatc download Project: http://git-wip-us.apache.org/repos/asf/arrow/repo Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/52089d60 Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/52089d60 Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/52089d60 Branch: refs/heads/master Commit: 52089d609dff3d8d2abe99c7b94f7af9fe4735bd Parents: 270ab4e Author: Laurent Goujon <laur...@dremio.com> Authored: Thu Sep 8 11:35:08 2016 -0700 Committer: Julien Le Dem <jul...@dremio.com> Committed: Thu Sep 8 11:35:08 2016 -0700 ---------------------------------------------------------------------- java/format/pom.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/arrow/blob/52089d60/java/format/pom.xml ---------------------------------------------------------------------- diff --git a/java/format/pom.xml b/java/format/pom.xml index dc58975..4cf68bb 100644 --- a/java/format/pom.xml +++ b/java/format/pom.xml @@ -25,6 +25,8 @@ <properties> <fbs.version>1.2.0-3f79e055</fbs.version> + <flatc.download.skip>false</flatc.download.skip> + <flatc.executable>${project.build.directory}/flatc-${os.detected.classifier}-${fbs.version}.exe</flatc.executable> <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version> <maven-dependency-plugin.version>2.10</maven-dependency-plugin.version> <os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version> @@ -71,6 +73,7 @@ <outputDirectory>${project.build.directory}</outputDirectory> </artifactItem> </artifactItems> + <skip>${flatc.download.skip}</skip> </configuration> </execution> </executions> @@ -92,6 +95,7 @@ <argument>+x</argument> <argument>${project.build.directory}/flatc-${os.detected.classifier}-${fbs.version}.exe</argument> </arguments> + <skip>${flatc.download.skip}</skip> </configuration> </execution> <execution> @@ -100,11 +104,11 @@ </goals> <phase>generate-sources</phase> <configuration> - <executable>${project.build.directory}/flatc-${os.detected.classifier}-${fbs.version}.exe</executable> + <executable>${flatc.executable}</executable> <arguments> <argument>-j</argument> <argument>-o</argument> - <argument>target/generated-sources/</argument> + <argument>target/generated-sources/flatc</argument> <argument>../../format/Message.fbs</argument> <argument>../../format/File.fbs</argument> </arguments>