Skip to content

Instantly share code, notes, and snippets.

View olpaw's full-sized avatar

Paul Woegerer olpaw

  • Oracle Labs
  • Vienna, Austria
View GitHub Profile
[INFO] --- maven-assembly-plugin:3.1.0:single (assemble-all) @ netty-plot ---
[INFO] Building jar: /home/pwoegere/OLabs/git/graalvm-demos/native-netty-plot/target/netty-plot-0.1-jar-with-dependencies.jar
[INFO]
[INFO] --- native-image-maven-plugin:1.0.0-rc14:native-image (default) @ netty-plot ---
[INFO] ImageClasspath Entry: io.netty:netty-all:jar:4.1.30.Final:compile (file:///home/pwoegere/.m2/repository/io/netty/netty-all/4.1.30.Final/netty-all-4.1.30.Final.jar)
[INFO] ImageClasspath Entry: net.objecthunter:exp4j:jar:0.4.8:compile (file:///home/pwoegere/.m2/repository/net/objecthunter/exp4j/0.4.8/exp4j-0.4.8.jar)
[INFO] ImageClasspath Entry: org.jfree:jfreesvg:jar:3.3:compile (file:///home/pwoegere/.m2/repository/org/jfree/jfreesvg/3.3/jfreesvg-3.3.jar)
[INFO] ImageClasspath Entry: com.oracle.substratevm:netty-plot:jar:0.1 (file:///home/pwoegere/OLabs/git/graalvm-demos/native-netty-plot/target/netty-plot-0.1.jar)
[INFO] Executing: /home/pwoegere/OLabs/graalvm-ce-1.0.0-rc14/bin/native-image -cp /home/pwoeg
<configuration>
<mainClass>com.acme.MeepMeep</mainClass>
<buildArgs>-ea</buildArgs>
</configuration>
<plugin>
<groupId>com.oracle.substratevm</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>1.0.0-rc15</version>
...
</plugin>
@olpaw
olpaw / netty-plot native-image.properties
Created March 15, 2019 12:55
META-INF/native-image/com.oracle.substratevm/netty-plot/native-image.properties
ImageName = netty-plot
Args = --features=com.oracle.svm.nettyplot.PlotterSingletonFeature \
-H:ReflectionConfigurationResources=${.}/reflection-config.json \
--delay-class-initialization-to-runtime=io.netty.handler.codec.http.HttpObjectEncoder \
-H:+SpawnIsolates
ImageName = netty-plot
Args = --features=com.oracle.svm.nettyplot.PlotterSingletonFeature -H:+SpawnIsolates
<dependency>
<groupId>com.oracle.substratevm</groupId>
<artifactId>svm</artifactId>
<version>1.0.0-rc14</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>org.graalvm.sdk</artifactId>
<version>1.0.0-rc14</version>
<scope>provided</scope>
</dependency>
@olpaw
olpaw / markup-test.md
Last active August 7, 2020 09:31
Test C/C++ code block

This is a test of C/C++ code blocks

#include <stdio.h>

int main(int argc, char** argv)
{
  printf("Hello World!\n");
  return 0;
}
#!/usr/bin/env python3
import argparse
import fileinput
import re
import sys
from pathlib import Path
from urllib.parse import urlparse, urlunparse
parser = argparse.ArgumentParser(description='Make relative links in markup file absolute with given base-url.')
<plugin>
<groupId>com.oracle.substratevm</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>1.0.0-rc14</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<phase>package</phase>