throw new BuildException("At least one nested 'chain' element must be given.",
getLocation());
}
}
public void doExecute() {
JavaSourceFactory pFactory = new JavaSourceFactory();
for (Iterator iter = chains.iterator(); iter.hasNext(); ) {
ChainGenerator chain = (ChainGenerator) iter.next();
try {
chain.generate(pFactory);
} catch (Exception e) {
throw new BuildException(e, getLocation());
}
}
try {
pFactory.write(getDestDir());
} catch (IOException e) {
throw new BuildException(e, getLocation());
}
}