From java-dev-return-18626-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Tue Mar 06 23:29:48 2007 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 57587 invoked from network); 6 Mar 2007 23:29:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2007 23:29:47 -0000 Received: (qmail 58562 invoked by uid 500); 6 Mar 2007 23:29:53 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 58502 invoked by uid 500); 6 Mar 2007 23:29:53 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 58491 invoked by uid 99); 6 Mar 2007 23:29:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 15:29:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 15:29:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4F27E714090 for ; Tue, 6 Mar 2007 15:29:24 -0800 (PST) Message-ID: <10132242.1173223764320.JavaMail.root@brutus> Date: Tue, 6 Mar 2007 15:29:24 -0800 (PST) From: "Steven Parkes (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-814) javacc on Win32 (cygwin) creates wrong line endings - fix them with 'ant replace' In-Reply-To: <32368123.1172295185502.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478630 ] Steven Parkes commented on LUCENE-814: -------------------------------------- Seems like a reasonable trade off to me. > javacc on Win32 (cygwin) creates wrong line endings - fix them with 'ant replace' > --------------------------------------------------------------------------------- > > Key: LUCENE-814 > URL: https://issues.apache.org/jira/browse/LUCENE-814 > Project: Lucene - Java > Issue Type: Task > Components: Build > Environment: Windows, Cygwin > Reporter: Doron Cohen > Assigned To: Doron Cohen > Priority: Minor > Fix For: 2.2 > > Attachments: 814.javacc.fixcrlf.common-build.patch, 814.javacc.fixcrlf.common-build.patch, 814.javacc.fixcrlf.common-build.patch, 814.javacc.line.ends.patch, LUCENE-814.txt, LUCENE-814.txt > > > "ant javacc" in Windows/Cygwin generates files with wrong line endings (\r or \r\n instead of *Nix's \n). > I managed to get rid of those using perl -p -e 's/(\r\n|\n|\r)/\n/g' > Some useful info on line ending issues is in http://en.wikipedia.org/wiki/Newline > After wasting some time to get rid of those, I modified javacc-QueryParser build.xml task to take care of that. > So now QueryParser files created with "ant javacc" are fixed (if required) to have \n as line ends. > Should probably do that also for the other javacc targets: javacc-HTMLParser and javacc-StandardAnalyzer(?) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org