Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2974 Ant build fails with "Unparseable date" on certain platforms

Sebastian Nagel541e6936dfb1
diff --git a/build.xml b/build.xml
index 004a12191..594fabc24 100644
--- a/build.xml
+++ b/build.xml
@@ -102,7 +102,12 @@
<mkdir dir="${test.build.classes}"/>
<mkdir dir="${test.build.lib.dir}"/>
- <touch datetime="01/25/1971 2:00 pm">
+ <touch millis="33660000000">
+ <!-- touch templates back in time to ensure that
+ custom-configured configuration files are never overwritten
+ even if the template was updated. Use millis instead of
+ datetime="01/25/1971 2:00:00 pm" to avoid issues with
+ non-English locales -->
<fileset dir="${conf.dir}" includes="**/*.template"/>
</touch>