File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
src/main/java/com/example/demo Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ git commit -am up && git push
Original file line number Diff line number Diff line change 22
33import org .graalvm .nativeimage .hosted .Feature ;
44import 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 */
911public 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}
You can’t perform that action at this time.
0 commit comments