http://www.apache.org/dev/svn-eol-style.txt
However this won't work for files you already added. For those you
just do
something like "svn propset svn:eol-style native yourfile.java" and
commit.
It's all described in detail here http://svnbook.red-bean.com/en/1.1/
ch07s02.html
Jorg
On 08 Oct 2006, at 13:47, Joerg Heinicke wrote:
There seems to be something wrong with my line endings. Where do I
set them?
Jörg
+package org.apache.cocoon.components.flow.javascript;
+
+import org.apache.cocoon.components.flow.FlowHelper;
+
+import org.mozilla.javascript.Undefined;
+import org.mozilla.javascript.Wrapper;
+
+public class JavaScriptFlowHelper extends FlowHelper {
+
+ /**
+ * Unwrap a Rhino object (getting the raw java object) and
convert undefined to null
+ */
+ public static Object unwrap(Object obj) {
+ if (obj instanceof Wrapper) {
+ obj = ((Wrapper)obj).unwrap();
+ } else if (obj == Undefined.instance) {
+ obj = null;
+ }
+ return obj;
+ }
+
+}