Here you can find the source of getFileName(String template, String className, String packageName)
private static String getFileName(String template, String className, String packageName)
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { private static String getFileName(String template, String className, String packageName) { String packagePath = packageName.replace(".", File.separator) + File.separator; if (template.contains("Entity.java.vm")) { return packagePath + "entity" + File.separator + className + "Entity.java"; }/*from ww w . j a va 2 s . co m*/ return null; } }