/** * The entry point for the command line tool japid.bat and japid.sh * * <p>The "gen" and "regen" are probably the most useful ones. * * @param args * @throws IOException */ public static void main(String[] args) throws IOException { if (args.length > 0) { String arg0 = args[0]; setTemplateRoot("."); if ("gen".equals(arg0)) { gen(templateRoot); } else if ("regen".equals(arg0)) { regen(templateRoot); } else if ("clean".equals(arg0)) { delAllGeneratedJava(getJapidviewsDir(templateRoot)); } else if ("mkdir".equals(arg0)) { mkdir(templateRoot); } else if ("changed".equals(arg0)) { changed(japidviews); } else { System.err.println("help: optionas are: gen, regen, mkdir and clean"); } } else { System.err.println("help: optionas are: gen, regen, mkdir and clean"); } }
static void regen() throws IOException { regen(templateRoot); }