}
return binding;
}
private void compile() throws ToolException {
ClassCollector classCollector = (ClassCollector)env.get(ToolConstants.GENERATED_CLASS_COLLECTOR);
List<String> argList = new ArrayList<String>();
String javaClasspath = System.getProperty("java.class.path");
// hard code celtix.jar
boolean classpathSetted = javaClasspath != null && (javaClasspath.indexOf("celtix.jar") >= 0);
if (env.isVerbose()) {
argList.add("-verbose");
}
if (!classpathSetted) {
System.setProperty("java.ext.dirs", this.getClass().getClassLoader().getResource(".").getFile()
+ "../lib/");
} else {
argList.add("-classpath");
argList.add(javaClasspath);
}
if (env.get(ToolConstants.CFG_CLASSDIR) != null) {
argList.add("-d");
argList.add((String)env.get(ToolConstants.CFG_CLASSDIR));
}
Set<String> dirSet = new HashSet<String>();
Iterator ite = classCollector.getGeneratedFileInfo().iterator();
while (ite.hasNext()) {
String fileName = (String)ite.next();
fileName = fileName.replaceAll("\\.", "/");
String dirName = fileName.substring(0, fileName.lastIndexOf("/") + 1);
String outPutDir = (String)env.get(ToolConstants.CFG_OUTPUTDIR);