File reproducible-build-date.patch of Package ant.15004

Author: Bernhard M. Wiedemann <bwiedemann>
Date: 2017-10-24

have fixed build dates
to make packages like rhino build more reproducibly
that use their build.xml to insert build dates into output files

Index: apache-ant-1.9.9/src/script/ant
--- apache-ant-1.9.9.orig/src/script/ant
+++ apache-ant-1.9.9/src/script/ant
@@ -290,6 +290,9 @@ fi
 if $usejikes; then
   ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes"
+if test -n "$SOURCE_DATE_EPOCH" ; then
 # For Cygwin, switch paths to appropriate format before running java
 # For PATHs convert to unix format first, then to windows format to ensure
openSUSE Build Service is sponsored by