From 229c6d592b3799c21c2b429989596bf4e4c19db3 Mon Sep 17 00:00:00 2001 From: Laurent Goujon Date: Thu, 1 Sep 2016 15:29:33 -0700 Subject: [PATCH] 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 --- java/format/pom.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/java/format/pom.xml b/java/format/pom.xml index dc5897581b5..4cf68bbe057 100644 --- a/java/format/pom.xml +++ b/java/format/pom.xml @@ -25,6 +25,8 @@ 1.2.0-3f79e055 + false + ${project.build.directory}/flatc-${os.detected.classifier}-${fbs.version}.exe 3.3 2.10 1.5.0.Final @@ -71,6 +73,7 @@ ${project.build.directory} + ${flatc.download.skip} @@ -92,6 +95,7 @@ +x ${project.build.directory}/flatc-${os.detected.classifier}-${fbs.version}.exe + ${flatc.download.skip} @@ -100,11 +104,11 @@ generate-sources - ${project.build.directory}/flatc-${os.detected.classifier}-${fbs.version}.exe + ${flatc.executable} -j -o - target/generated-sources/ + target/generated-sources/flatc ../../format/Message.fbs ../../format/File.fbs