Skip to content

Commit 13c7791

Browse files
committed
up
1 parent b2fe32f commit 13c7791

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: mkdir -p $JAVA_HOME && echo $JAVA_HOME >> $GITHUB_PATH
2828

2929
- name: download the jdk
30-
run: setup_jdk.sh
30+
run: $GITHUB_WORKSPACE/setup_jdk.sh
3131

3232
## steps:
3333
## - uses: actions/checkout@v3

save.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
git commit -am up && git push

src/main/java/com/example/demo/DemoFeature.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22

33
import org.graalvm.nativeimage.hosted.Feature;
44
import org.graalvm.nativeimage.hosted.RuntimeForeignAccess;
5+
import org.slf4j.Logger;
6+
import org.slf4j.LoggerFactory;
57

68
/**
79
* registers the printf call for Graalvm native images
810
*/
911
public class DemoFeature implements Feature {
1012

13+
private final Logger log = LoggerFactory.getLogger(getClass().getName());
14+
1115
@Override
1216
public void duringSetup(DuringSetupAccess access) {
13-
System.out.println("registering the PRINTF function for downcalls");
17+
log.info("registering the PRINTF function for downcalls during compilation.");
1418
RuntimeForeignAccess.registerForDowncall(DemoApplication.PRINTF_FUNCTION_DESCRIPTOR);
1519
}
1620
}

0 commit comments

Comments
 (0)