Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* STEPS FOR CREATING NATIVE IMAGE (MacOS, Linux): | |
# download this file | |
mkdir picocli-demo | |
cd picocli-demo | |
wget --quiet --show-progress https://gist.githubusercontent.com/remkop/4d0339d9a7f80fa848735bec745d203a/raw/8a3fcaf698b44a3a721e1ba800674cbb1a435e29/FileList.java | |
# download dependencies | |
wget --quiet --show-progress https://github.com/remkop/picocli/releases/download/v4.1.4/picocli-4.1.4.jar | |
wget --quiet --show-progress https://github.com/remkop/picocli/releases/download/v4.1.4/picocli-codegen-4.1.4.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.ByteBuffer; | |
import org.apache.logging.log4j.core.Layout; | |
import org.apache.logging.log4j.core.LogEvent; | |
import org.apache.logging.log4j.core.config.Node; | |
import org.apache.logging.log4j.core.config.plugins.Plugin; | |
import org.apache.logging.log4j.core.config.plugins.PluginFactory; | |
/** | |
* Layout for writing ObjectMessages containing a ByteBuffer to the appender. |