Github user alopresto commented on a diff in the pull request:
https://github.com/apache/nifi-minifi/pull/92#discussion_r143100163
--- Diff:
minifi-nar-bundles/minifi-framework-bundle/minifi-framework/minifi-resources/pom.xml
---
@@ -25,6 +25,61 @@
<description>holds common resources used to build
installers</description>
<build>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>ant-contrib</groupId>
+
<artifactId>ant-contrib</artifactId>
+ <version>20020829</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>download-commons-daemon</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <taskdef
resource="net/sf/antcontrib/antcontrib.properties" />
+ <if>
+
<available file="${basedir}/src/main/resources/bin/minifiw.exe" />
+ <then>
+
<echo message="Skipping download of commons-daemon." />
+ </then>
+ <else>
+
<echo message="Downloading Commons Daemon Windows binaries." />
+
<get
+
src="http://www.apache.org/dist/commons/daemon/binaries/windows/commons-daemon-1.0.15-bin-windows.zip"
+
dest="${java.io.tmpdir}/commons-daemon-1.0.15-bin-windows.zip"
+
skipexisting="true" />
+
<get
+
src="http://www.apache.org/dist/commons/daemon/binaries/windows/commons-daemon-1.0.15-bin-windows.zip.md5"
+
dest="${java.io.tmpdir}/commons-daemon-1.0.15-bin-windows.zip.md5"
+
skipexisting="true" />
+
<local name="checksum.matches" />
+
<checksum file="${java.io.tmpdir}/commons-daemon-1.0.15-bin-windows.zip"
fileext=".md5" format="MD5SUM" verifyProperty="checksum.matches"/>
--- End diff --
I might be missing something. From my quick reading of the [checksum tool
page](https://ant.apache.org/manual/Tasks/checksum.html), it looks like they
support [any hash algorithm supported by the
JRE](http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#MessageDigest)
(SHA-256, SHA-384, and SHA-512 included in Java 7+). ---
