You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/01 14:45:04 UTC
[jira] [Commented] (MINIFI-177) Incorporate RAT into C++ build
[ https://issues.apache.org/jira/browse/MINIFI-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16033090#comment-16033090 ]
ASF GitHub Bot commented on MINIFI-177:
---------------------------------------
Github user apiri commented on a diff in the pull request:
https://github.com/apache/nifi-minifi-cpp/pull/103#discussion_r119633841
--- Diff: cmake/RunApacheRAT.cmake ---
@@ -0,0 +1,44 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Find the preferred Apache mirror to use for the download by querying the list of mirrors and filtering out 'preferred'
+execute_process(COMMAND curl -s https://www.apache.org/dyn/closer.lua/?asjson=1
+ COMMAND grep preferred
+ COMMAND awk "{print $2}"
+ COMMAND tr -d "\""
+ TIMEOUT 10
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ OUTPUT_VARIABLE MIRROR_URL )
+
+ExternalProject_Add(
+ rat-binary
+ PREFIX "apache-rat"
+ URL "${MIRROR_URL}creadur/apache-rat-0.12/apache-rat-0.12-bin.tar.gz"
+ URL_HASH SHA1=e84dffe8b354871c29f5078b823a726508474a6c
--- End diff --
yep, can do
> Incorporate RAT into C++ build
> ------------------------------
>
> Key: MINIFI-177
> URL: https://issues.apache.org/jira/browse/MINIFI-177
> Project: Apache NiFi MiNiFi
> Issue Type: Task
> Components: Build, C++
> Reporter: Aldrin Piri
> Assignee: Aldrin Piri
>
> To aid in releases and compliance, it would be helpful to incorporate the RAT into the C++ build process.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)