comparison test/sun/tools/jrunscript/jrunscriptTest.sh @ 13678:3560e0ebe876

Added tag jdk8u232-b06 for changeset 5d57817931e1
author andrew
date Mon, 16 Sep 2019 18:07:13 +0100
parents 1b3173c326e6
children
comparison
equal deleted inserted replaced
7:8d35e8efa251 8:db9324030e32
40 fi 40 fi
41 41
42 rm -f jrunscriptTest.out 2>/dev/null 42 rm -f jrunscriptTest.out 2>/dev/null
43 ${JRUNSCRIPT} -J-Djava.awt.headless=true -l nashorn > jrunscriptTest.out 2>&1 <<EOF 43 ${JRUNSCRIPT} -J-Djava.awt.headless=true -l nashorn > jrunscriptTest.out 2>&1 <<EOF
44 v = 2 + 5; 44 v = 2 + 5;
45 v *= 5; 45 v *= 5; v.doubleValue();
46 v = v + " is the value"; 46 v = v + " is the value";
47 if (v != 0) { println('yes v != 0'); } 47 if (v != 0) { println('yes v != 0'); }
48 java.lang.System.out.println('hello world from script'); 48 java.lang.System.out.println('hello world from script');
49 new java.lang.Runnable() { run: function() { println('I am runnable'); }}.run(); 49 new java.lang.Runnable() { run: function() { println('I am runnable'); }}.run();
50 EOF 50 EOF