Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit 1eaba75

Browse files
committed
Make run and debug work in NetBeans and execute with graal compiler.
1 parent 1c97f61 commit 1eaba75

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

nbactions.xml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<actions>
3+
<action>
4+
<actionName>run</actionName>
5+
<packagings>
6+
<packaging>jar</packaging>
7+
</packagings>
8+
<goals>
9+
<goal>process-classes</goal>
10+
<goal>exec:exec</goal>
11+
</goals>
12+
</action>
13+
<action>
14+
<actionName>debug</actionName>
15+
<packagings>
16+
<packaging>jar</packaging>
17+
</packagings>
18+
<goals>
19+
<goal>process-classes</goal>
20+
<goal>exec:exec</goal>
21+
</goals>
22+
<properties>
23+
<debug.args>-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address}</debug.args>
24+
<jpda.listen>true</jpda.listen>
25+
</properties>
26+
</action>
27+
</actions>

pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<properties>
1111
<graalvm.version>1.0.0-rc9</graalvm.version>
1212
<compiler.dir>${project.build.directory}/compiler</compiler.dir>
13+
<debug.args>-Dignore</debug.args> <!-- to take debug.args into account -->
1314
</properties>
1415
<profiles>
1516
<profile>
@@ -117,6 +118,7 @@
117118
<argument>-classpath</argument>
118119
<!-- automatically creates the classpath using all project dependencies, also adding the project build directory -->
119120
<classpath/>
121+
<argument>${debug.args}</argument>
120122
<argument>-XX:+UnlockExperimentalVMOptions</argument>
121123
<argument>-XX:+EnableJVMCI</argument>
122124
<argument>--upgrade-module-path=${compiler.dir}/compiler.jar</argument>
@@ -205,6 +207,7 @@
205207
<arguments>
206208
<argument>-classpath</argument>
207209
<classpath/>
210+
<argument>${debug.args}</argument>
208211
<argument>com.mycompany.app.App</argument>
209212
</arguments>
210213
</configuration>
@@ -249,6 +252,7 @@
249252
<argument>-classpath</argument>
250253
<!-- automatically creates the classpath using all project dependencies, also adding the project build directory -->
251254
<classpath/>
255+
<argument>${debug.args}</argument>
252256
</arguments>
253257
</configuration>
254258
</execution>

0 commit comments

Comments
 (0)