You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2007/04/03 00:46:40 UTC
contrib/benchmark - DOS line endings
I noticed some contrib/benchmark files have DOS-style line endings. Tried this, but failed:
$ svn propset svn:eol-style native ./src/java/org/apache/lucene/benchmark/byTask/tasks/SearchTravTask.java
subversion/libsvn_wc/props.c:1460: (apr_err=200009)
svn: File 'src/java/org/apache/lucene/benchmark/byTask/tasks/SearchTravTask.java' has inconsistent newlines
subversion/libsvn_subr/subst.c:643: (apr_err=135000)
svn: Inconsistent line ending style
If anyone knows a SVN way of fixing this, I'm all eyes!
Otis
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/ - Tag - Search - Share
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
RE: contrib/benchmark - DOS line endings
Posted by Steven Parkes <st...@esseff.org>.
I think you need to make the files consistent first, something like
dos2unix or unix2dos should do this, if they're available on your
machine.
-----Original Message-----
From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
Sent: Monday, April 02, 2007 3:47 PM
To: java-dev@lucene.apache.org
Subject: contrib/benchmark - DOS line endings
I noticed some contrib/benchmark files have DOS-style line endings.
Tried this, but failed:
$ svn propset svn:eol-style native
./src/java/org/apache/lucene/benchmark/byTask/tasks/SearchTravTask.java
subversion/libsvn_wc/props.c:1460: (apr_err=200009)
svn: File
'src/java/org/apache/lucene/benchmark/byTask/tasks/SearchTravTask.java'
has inconsistent newlines
subversion/libsvn_subr/subst.c:643: (apr_err=135000)
svn: Inconsistent line ending style
If anyone knows a SVN way of fixing this, I'm all eyes!
Otis
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/ - Tag - Search - Share
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: contrib/benchmark - DOS line endings
Posted by Doron Cohen <DO...@il.ibm.com>.
Hi Otis,
LUCENE-814 discusses similar issues for javacc generated files.
Probably easiest fix would be "ant fixcrlf">
Otherwise, something like perl -p -e 's/(\r\n|\n|\r)/\n/g', (more in
http://en.wikipedia.org/wiki/Newline).
Do you get this error for the checked out file, or after modification?
Regards,
Doron
Otis Gospodnetic
<otis_gospodnetic
@yahoo.com> To
java-dev@lucene.apache.org
02/04/2007 15:46 cc
Subject
Please respond to contrib/benchmark - DOS line
java-dev@lucene.a endings
pache.org
I noticed some contrib/benchmark files have DOS-style line endings. Tried
this, but failed:
$ svn propset svn:eol-style native
./src/java/org/apache/lucene/benchmark/byTask/tasks/SearchTravTask.java
subversion/libsvn_wc/props.c:1460: (apr_err=200009)
svn: File
'src/java/org/apache/lucene/benchmark/byTask/tasks/SearchTravTask.java' has
inconsistent newlines
subversion/libsvn_subr/subst.c:643: (apr_err=135000)
svn: Inconsistent line ending style
If anyone knows a SVN way of fixing this, I'm all eyes!
Otis
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/ - Tag - Search - Share
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org