modelFile, problemHandler);
setPostGenerateInfo(codegen);
}
public void compile() throws JiBXException {
Compile compiler = new Compile();
String path = generatePath.getAbsolutePath();
if (!path.endsWith(File.separator)) {
path = path + File.separator;
}
List<String> clsPath = new ArrayList<String>();
clsPath.add(compilePath.getAbsolutePath());
clsPath.addAll(Arrays.asList(Utility.getClassPaths()));
String[] clsPathSet = clsPath.toArray(new String[clsPath.size()]);
String[] bindingSet = new String[] {
path + bindingName + ".xml"
};
compiler.compile(clsPathSet, bindingSet);
}