public void
execute() throws BuildException {
Iterator iter = sources.iterator();
try {
Encyclopedia e = new Encyclopedia(new File(destination));
while (iter.hasNext()) {
String src = (String)iter.next();
e.add(new FileSystemSource(new File(src)));
}
e.setProperties(properties);
e.setConfiguration(new File(configPath));
e.build();
} catch (Exception ex) {
ex.printStackTrace();
throw new BuildException("Failed to build encyclopedia");
}
}