This file contains hidden or 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
lazy val wsdlImport = TaskKey[Unit]("wsdlImport", "Generates Java classes from WSDL") | |
wsdlImport := { | |
val wsdlSources = "./wsdl/src/main/java" | |
val d = file(wsdlSources) | |
if (d.isDirectory) { | |
// don't forget to rename to your fav one in line with WSDL generating sh | |
val gen = file(s"$wsdlSources/github/sainnr/wsdl") | |
if (!gen.exists() || gen.listFiles().isEmpty) { |
This file contains hidden or 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.awt.GraphicsEnvironment; | |
public class ListFonts { | |
public static void main(String args[]) { | |
GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment(); | |
for(String font:e.getAvailableFontFamilyNames()) { | |
System.out.println(font); | |
} | |
} | |
} |
This file contains hidden or 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 com.fasterxml.jackson.databind.ObjectMapper; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.io.*; | |
import java.util.Objects; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import java.util.function.Consumer; | |
import java.util.stream.Stream; |