}
}
}
AntReporter reporter = new AntReporter(getProject());
Pojoization pojo = new Pojoization(reporter);
if (m_ignoreAnnotations) {
pojo.disableAnnotationProcessing();
}
if (!m_ignoreLocalXSD) {
pojo.setUseLocalXSD();
}
Path classpath = getClasspath();
classpath.addJavaRuntime();
// Adding the input jar or directory
if (m_classpath == null) {
m_classpath = createClasspath();
}
Path element = m_classpath.createPath();
if (m_input != null) {
element.setLocation(m_input.getAbsoluteFile());
} else if (m_directory != null) {
element.setLocation(m_directory.getAbsoluteFile());
}
m_classpath.add(element);
ClassLoader loader = getProject().createClassLoader(getClasspath());
if (m_input != null) {
pojo.pojoization(m_input, m_output, m_metadata, loader);
} else {
pojo.directoryPojoization(m_directory, m_metadata, m_manifest, loader);
}
for (int i = 0; i < reporter.getWarnings().size(); i++) {
log((String) reporter.getWarnings().get(i), Project.MSG_WARN);
}
if (reporter.getErrors().size() > 0) {