Mercurial > octave
comparison scripts/java/javarmpath.m @ 28168:b3bd3385d07a stable
* javaaddpath.m, javarmpath.m: Skip BISTs if Java is unavailable on run-time.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 22 Mar 2020 17:57:50 +0100 |
parents | 367ab44d18c8 |
children | dc80e087df4b |
comparison
equal
deleted
inserted
replaced
28164:a0492ac068f2 | 28168:b3bd3385d07a |
---|---|
76 | 76 |
77 ## FIXME: These tests may fail if either TEMPDIR or HOME have already | 77 ## FIXME: These tests may fail if either TEMPDIR or HOME have already |
78 ## been added to the Java class path. | 78 ## been added to the Java class path. |
79 | 79 |
80 ## Basic test with single string | 80 ## Basic test with single string |
81 %!testif HAVE_JAVA | 81 %!testif HAVE_JAVA; usejava ("jvm") |
82 %! pth = tempdir (); | 82 %! pth = tempdir (); |
83 %! unwind_protect | 83 %! unwind_protect |
84 %! javaaddpath (pth); | 84 %! javaaddpath (pth); |
85 %! clspth1 = javaclasspath ("-dynamic"); | 85 %! clspth1 = javaclasspath ("-dynamic"); |
86 %! javarmpath (pth); | 86 %! javarmpath (pth); |
90 %! unwind_protect_cleanup | 90 %! unwind_protect_cleanup |
91 %! javarmpath (pth); | 91 %! javarmpath (pth); |
92 %! end_unwind_protect | 92 %! end_unwind_protect |
93 | 93 |
94 ## Remove two strings | 94 ## Remove two strings |
95 %!testif HAVE_JAVA | 95 %!testif HAVE_JAVA; usejava ("jvm") |
96 %! pth1 = tempdir (); | 96 %! pth1 = tempdir (); |
97 %! pth2 = tilde_expand ("~"); | 97 %! pth2 = tilde_expand ("~"); |
98 %! unwind_protect | 98 %! unwind_protect |
99 %! javaaddpath (pth1, pth2); | 99 %! javaaddpath (pth1, pth2); |
100 %! clspth1 = javaclasspath ("-dynamic"); | 100 %! clspth1 = javaclasspath ("-dynamic"); |
105 %! unwind_protect_cleanup | 105 %! unwind_protect_cleanup |
106 %! javarmpath (pth1, pth2); | 106 %! javarmpath (pth1, pth2); |
107 %! end_unwind_protect | 107 %! end_unwind_protect |
108 | 108 |
109 ## Remove cell array of two strings | 109 ## Remove cell array of two strings |
110 %!testif HAVE_JAVA | 110 %!testif HAVE_JAVA; usejava ("jvm") |
111 %! pth1 = tempdir (); | 111 %! pth1 = tempdir (); |
112 %! pth2 = tilde_expand ("~"); | 112 %! pth2 = tilde_expand ("~"); |
113 %! unwind_protect | 113 %! unwind_protect |
114 %! javaaddpath (pth1, pth2); | 114 %! javaaddpath (pth1, pth2); |
115 %! clspth1 = javaclasspath ("-dynamic"); | 115 %! clspth1 = javaclasspath ("-dynamic"); |