2023-01-18 02:00:02 +01:00
|
|
|
package it.cavallium.data.generator.plugin;
|
2021-03-01 21:04:06 +01:00
|
|
|
|
2023-01-22 12:39:54 +01:00
|
|
|
import static java.lang.Boolean.parseBoolean;
|
|
|
|
|
2021-03-01 21:04:06 +01:00
|
|
|
import java.io.IOException;
|
|
|
|
import java.nio.file.Paths;
|
|
|
|
|
|
|
|
public class Standalone {
|
|
|
|
|
|
|
|
public static void main(String[] args) throws IOException {
|
2023-01-22 12:39:54 +01:00
|
|
|
if (args.length == 0) {
|
|
|
|
System.err.println("[PATH] [BASE PACKAGE NAME] [OUT PATH] [USE RECORD BUILDERS] [FORCE] [STANDARD CHECKS] [GENERATE OLD SERIALIZERS]");
|
|
|
|
System.exit(1);
|
|
|
|
return;
|
|
|
|
}
|
2021-03-01 21:04:06 +01:00
|
|
|
SourcesGenerator sourcesGenerator = SourcesGenerator.load(Paths.get(args[0]));
|
2023-01-22 12:39:54 +01:00
|
|
|
sourcesGenerator.generateSources(args[1],
|
|
|
|
Paths.get(args[2]),
|
|
|
|
parseBoolean(args[3]),
|
|
|
|
parseBoolean(args[4]),
|
|
|
|
parseBoolean(args[5]),
|
|
|
|
parseBoolean(args[6])
|
|
|
|
);
|
2021-03-01 21:04:06 +01:00
|
|
|
}
|
|
|
|
}
|