Hi,
Currently Strings in objectscript do not
support the split method.
For example the attached test script
produces this error:
531 $ sh -x do.sh
+ /opt/java/share/oscript-2.9.2/bin/oscript test.os
register: java.net.URLClassLoader@ab95e6
found list file
arg: "file:lineo"
oscript.exceptions.PackagedScriptObjectException:
NoSuchMemberException: no such member: (global):
listobj
at main
(/C:/home/ldavid/explore/os/regexp/test.os:9)
at /C:/home/ldavid/explore/os/regexp/test.os:21
Should you wish to modify objectscript to add the
split member to Strings you could apply the
attached patch to oscript/oscript/data/OString.java.
After rebuilding, the output of the test script should
be:
+ java -jar
'c:\opt\java\build\objectscript\oscript-2.9.2\dest\oscript.jar'
test.os
register: java.net.URLClassLoader@1833955
found list file
arg: "file:lineo"
[file, lineo]
Thanks,
Lysander |