[ https://issues.apache.org/jira/browse/NUTCH-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17677430#comment-17677430 ]
Sebastian Nagel commented on NUTCH-2974: ---------------------------------------- Note that the first solution by adding a datetime pattern fails in certain locales: {noformat} $> git diff | cat diff --git a/build.xml b/build.xml index 004a12191..8b331a71a 100644 --- a/build.xml +++ b/build.xml @@ -102,7 +102,7 @@ <mkdir dir="${test.build.classes}"/> <mkdir dir="${test.build.lib.dir}"/> - <touch datetime="01/25/1971 2:00 pm"> + <touch datetime="01/25/1971 2:00 pm" pattern="MM/dd/YYYY hh:mm a"> <fileset dir="${conf.dir}" includes="**/*.template"/> </touch> $> LC_ALL=de_DE.utf8 ant init ... BUILD FAILED .../build.xml:105: Unparseable date: "01/25/1971 2:00 pm" {noformat} Using epoch millis seems to be safe in all locale contexts. > Ant build fails with "Unparseable date" on certain platforms > ------------------------------------------------------------ > > Key: NUTCH-2974 > URL: https://issues.apache.org/jira/browse/NUTCH-2974 > Project: Nutch > Issue Type: Bug > Components: build > Affects Versions: 1.19 > Reporter: Sebastian Nagel > Priority: Major > Fix For: 1.20 > > > When touching the configuration templates the ant build fails on certain > platforms, see NUTCH-2512 and recently by [Kamil Mroczek on the users > list|https://lists.apache.org/thread/dc36ofc6kvvx3fxlqbnzqdcp73yjcj8m], > including a fix. > However, we should also consider removing the "touch" action if it's not > clear what the purpose of it is - it's there since the initial import of the > Nutch source code to the Apache repository. Could be obsolete now. -- This message was sent by Atlassian Jira (v8.20.10#820010)