Skip to content

Commit

Permalink
Merge pull request #5842 from sdedic/graal/graaljs-priority-fix
Browse files Browse the repository at this point in the history
Load bundled GraalJS, give priority to GraalVM if present.
  • Loading branch information
neilcsmith-net authored May 3, 2023
2 parents 2470c07 + e406bae commit b51686e
Show file tree
Hide file tree
Showing 44 changed files with 5,404 additions and 533 deletions.
4 changes: 4 additions & 0 deletions harness/nbjunit/src/org/netbeans/junit/NbTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
import junit.framework.AssertionFailedError;
import junit.framework.TestCase;
import junit.framework.TestResult;
import org.junit.AssumptionViolatedException;
import org.junit.Ignore;
import org.netbeans.insane.live.LiveReferences;
import org.netbeans.insane.live.Path;
Expand All @@ -74,6 +75,7 @@
* Adds various abilities such as comparing golden files, getting a working
* directory for test files, testing memory usage, etc.
*/

public abstract class NbTestCase extends TestCase implements NbTest {
static {
MethodOrder.initialize();
Expand Down Expand Up @@ -474,6 +476,8 @@ public synchronized void waitFinished(final int timeout) throws Throwable {
long now = System.nanoTime();
try {
runTest();
} catch (AssumptionViolatedException ex) {
// ignore, the test is assumed to be meaningless.
} catch (Throwable t) {
noteWorkDir(workdirNoCreate());
throw noteRandomness(t);
Expand Down
87 changes: 87 additions & 0 deletions ide/libs.graalsdk.system/apichanges.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<?xml-stylesheet type="text/xml" href="CHANGEME/nbbuild/javadoctools/apichanges.xsl"?>
<!DOCTYPE apichanges PUBLIC "-//NetBeans//DTD API changes list 1.0//EN" "../../nbbuild/javadoctools/apichanges.dtd">


<apichanges>
<apidefs>
<apidef name="GraalSDK">Graal SDK</apidef>
</apidefs>

<changes>
<change id="initial.version">
<api name="GraalSDK"/>
<summary>
Initial integration of Graal SDK
</summary>
<version major="1" minor="0"/>
<date day="1" month="2" year="2019"/>
<author login="jtulach"/>
<compatibility binary="compatible" source="compatible" addition="yes"/>
<description>
Bridge that plugs
<a href="https://graalvm.org">GraalVM</a> languages
into
<a href="@org-netbeans-api-scripting@/org/netbeans/api/scripting/Scripting.html">Scripting.createManager()</a>
to obtain enhanced version of
<a href="@JDK@/javax/script/ScriptEngineManager.html">ScriptEngineManager</a>.
</description>
</change>
</changes>

<!-- Now the surrounding HTML text and document structure: -->

<htmlcontents>
<!--
NO NO NO NO NO!
==============> DO NOT EDIT ME! <==============
AUTOMATICALLY GENERATED FROM APICHANGES.XML, DO NOT EDIT
SEE CHANGEME/apichanges.xml
-->
<head>
<title>Change History for the Progress API</title>
<link rel="stylesheet" href="prose.css" type="text/css"/>
</head>
<body>

<p class="overviewlink"><a href="overview-summary.html">Overview</a></p>

<h1>Introduction</h1>

<p>This document lists changes made to the Progress API/SPI.</p>

<!-- The actual lists of changes, as summaries and details: -->

<hr/><standard-changelists module-code-name="org.netbeans.api.progress"/>

<hr/><p>@FOOTER@</p>

</body>
</htmlcontents>

</apichanges>
Loading

0 comments on commit b51686e

Please sign in to comment.