throw new MojoExecutionException("Copy of Native source failed: "+e, e);
}
}
private void generateNativeSourceFiles() throws MojoExecutionException {
HawtJNI generator = new HawtJNI();
generator.setClasspaths(getClasspath());
generator.setName(name);
generator.setCopyright(copyright);
generator.setNativeOutput(generatedNativeSourceDirectory);
generator.setPackages(packages);
generator.setCallbacks(callbacks);
generator.setProgress(new ProgressMonitor() {
public void step() {
}
public void setTotal(int total) {
}
public void setMessage(String message) {
getLog().info(message);
}
});
try {
generator.generate();
} catch (Exception e) {
throw new MojoExecutionException("Native source code generation failed: "+e, e);
}
}