org.duelengine.duel.compiler.CLI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of duel-compiler Show documentation
Show all versions of duel-compiler Show documentation
Dual-side template engine for the JVM
package org.duelengine.duel.compiler;
public class CLI {
private static final String SEPARATOR = "========================================";
private static final String HELP = "java -jar duel-compiler.jar\n"+
" --help : this help text\n"+
" -in : file path to the source file or folder (required)\n"+
" -client-out : file path to the target output directory (default: )\n"+
" -server-out : file path to the target output directory (default: )\n"+
" -client-prefix : client-side package name\n"+
" -server-prefix : server-side package name\n";
public static void main(String[] args) {
if (args.length < 1) {
System.out.println(HELP);
return;
}
DuelCompiler compiler = new DuelCompiler();
System.out.println(SEPARATOR);
System.out.println("DUEL compiler");
for (int i=0; i