This is an automated email from the ASF dual-hosted git repository.
aldrin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi-minifi.git
The following commit(s) were added to refs/heads/master by this push:
new 9bf85cf MINIFI-162 Capture build properties in a build.properties
located in conf
9bf85cf is described below
commit 9bf85cf40bd38d5ed0a20fcb5a9130b3e1062d7e
Author: Aldrin Piri <[email protected]>
AuthorDate: Fri May 31 10:50:19 2019 -0400
MINIFI-162 Capture build properties in a build.properties located in conf
This closes #153.
---
minifi-assembly/pom.xml | 23 ++++++++++++++++
minifi-assembly/src/main/assembly/dependencies.xml | 7 +++++
.../src/main/resources/build.properties.template | 31 ++++++++++++++++++++++
3 files changed, 61 insertions(+)
diff --git a/minifi-assembly/pom.xml b/minifi-assembly/pom.xml
index 2008865..e7b8928 100644
--- a/minifi-assembly/pom.xml
+++ b/minifi-assembly/pom.xml
@@ -28,6 +28,29 @@ limitations under the License.
<build>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <version>1.4</version>
+ <inherited>true</inherited>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>create</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <doCheck>false</doCheck>
+ <doUpdate>false</doUpdate>
+ <shortRevisionLength>7</shortRevisionLength>
+ <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
+ <revisionOnScmFailure/>
+
<buildNumberPropertyName>buildRevision</buildNumberPropertyName>
+ <scmBranchPropertyName>buildBranch</scmBranchPropertyName>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
diff --git a/minifi-assembly/src/main/assembly/dependencies.xml
b/minifi-assembly/src/main/assembly/dependencies.xml
index e588b8a..6ae5411 100644
--- a/minifi-assembly/src/main/assembly/dependencies.xml
+++ b/minifi-assembly/src/main/assembly/dependencies.xml
@@ -136,6 +136,13 @@
</dependencySets>
<files>
<file>
+ <source>src/main/resources/build.properties.template</source>
+ <outputDirectory>./</outputDirectory>
+ <destName>build.properties</destName>
+ <fileMode>0444</fileMode>
+ <filtered>true</filtered>
+ </file>
+ <file>
<source>./target/minifi.exe</source>
<outputDirectory>./bin</outputDirectory>
<filtered>false</filtered>
diff --git a/minifi-assembly/src/main/resources/build.properties.template
b/minifi-assembly/src/main/resources/build.properties.template
new file mode 100644
index 0000000..6197a6e
--- /dev/null
+++ b/minifi-assembly/src/main/resources/build.properties.template
@@ -0,0 +1,31 @@
+# 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.
+
+# NOTE: This file is autogenerated at build and is not intended to be edited.
Changes could cause inconsistent behavior.
+
+Build-Branch:${buildBranch}
+Build-Timestamp:${timestamp}
+Built-By:${user.name}
+MiNiFi-Version:${project.version}
+Build-Revision:${buildRevision}
+Maven-Home:${maven.home}
+Maven-Version:${maven.version}
+Created-By:${maven.build.version}
+Build-Java-Home:${java.home}
+Build-Jdk:${java.version}
+Build-Jdk-Vendor:${java.vendor}
+Build-Arch:${os.arch}
+Build-Os:${os.name}
+Build-Os-Version:${os.version}