org.artifact.core.App Maven / Gradle / Ivy
The newest version!
package org.artifact.core;
import java.io.File;
import org.artifact.core.util.ProtoUtil;
/**
* Hello world!
*
*/
public class App
{
/** proto文件路径 */
static final String INPUT_PATH = System.getProperty("user.dir") + File.separator + "proto";
/** 生成的java文件路径 */
static final String OUTPUT_PATH = System.getProperty("user.dir") + File.separator + "src/main/java";
/** protoc.exe 路径 */
static final String EXE_FILE = System.getProperty("user.dir") + File.separator + "proto/protoc.exe";
public static void main( String[] args )
{
ProtoUtil.builder().inputPath(INPUT_PATH).outputPath(OUTPUT_PATH).exeFile(EXE_FILE).build().exec();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy