Mercurial > hg > octave-lyh
comparison scripts/java/javaclasspath.m @ 16724:b7667fcb9fbc
Substitute ostrsplit() for strsplit().
The function ostrsplit() is Octave's original strsplit(), and strsplit()
has been modified to be compatible with Matlab's version. Bug #39010.
* scripts/deprecated/javafields.m: Change call to ostrsplit().
* scripts/deprecated/javamethods.m: ditto
* scripts/general/fieldnames.m: ditto
* scripts/general/int2str.m: ditto
* scripts/general/methods.m: ditto
* scripts/general/num2str.m: ditto
* scripts/help/gen_doc_cache.m: ditto
* scripts/help/help.m: ditto
* scripts/help/lookfor.m: ditto
* scripts/io/strread.m: ditto
* scripts/java/javaclasspath.m: ditto
* scripts/miscellaneous/compare_versions.m: ditto
* scripts/miscellaneous/computer.m: ditto
* scripts/miscellaneous/fact.m: ditto
* scripts/miscellaneous/tar.m: ditto
* scripts/miscellaneous/unpack.m: ditto
* scripts/miscellaneous/what.m: ditto
* scripts/miscellaneous/zip.m: ditto
* scripts/pkg/private/configure_make.m: ditto
* scripts/pkg/private/fix_depends.m: ditto
* scripts/pkg/private/generate_lookfor_cache.m: ditto
* scripts/pkg/private/list_forge_packages.m: ditto
* scripts/pkg/private/unload_packages.m: ditto
* scripts/pkg/private/write_index.m: ditto
* scripts/plot/private/__file_filter__.m: ditto
* scripts/plot/private/__fltk_file_filter__.m: ditto
* scripts/plot/private/__go_draw_axes__.m: ditto
* scripts/plot/private/__next_line_style__.m: ditto
* scripts/testfun/rundemos.m: ditto
* scripts/testfun/runtests.m: ditto
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 06 Jun 2013 10:06:12 +0800 |
parents | 1de4ec2a856d |
children | bc924baa2c4e |
comparison
equal
deleted
inserted
replaced
16723:45b57ac44854 | 16724:b7667fcb9fbc |
---|---|
56 | 56 |
57 function varargout = javaclasspath (which) | 57 function varargout = javaclasspath (which) |
58 | 58 |
59 ## dynamic classpath | 59 ## dynamic classpath |
60 dynamic_path = javaMethod ("getClassPath", "org.octave.ClassHelper"); | 60 dynamic_path = javaMethod ("getClassPath", "org.octave.ClassHelper"); |
61 dynamic_path_list = strsplit (dynamic_path, pathsep (), false); | 61 dynamic_path_list = ostrsplit (dynamic_path, pathsep ()); |
62 | 62 |
63 ## static classpath | 63 ## static classpath |
64 static_path = javaMethod ("getProperty", "java.lang.System", "java.class.path"); | 64 static_path = javaMethod ("getProperty", "java.lang.System", "java.class.path"); |
65 static_path_list = strsplit (static_path, pathsep (), false); | 65 static_path_list = ostrsplit (static_path, pathsep ()); |
66 if (numel (static_path_list) > 1) | 66 if (numel (static_path_list) > 1) |
67 ## remove first element (which is .../octave.jar) | 67 ## remove first element (which is .../octave.jar) |
68 static_path_list(1) = []; | 68 static_path_list(1) = []; |
69 else | 69 else |
70 static_path_list = {}; | 70 static_path_list = {}; |