Hi,

One of my project is using jasperreports-maven-plugin in the build. The project 
is targeted to JDK 1.4 so we are using toolchains (Maven is run by JDK 1.5+ 
that is in the PATH).
AFAIK jasperreports takes jrxml files and produce Java files then compile them 
using javac in the system PATH. This leads to several issues: 
1) in my case jasper reports are compiled with a JDK 1.5+ so it will produce 
error once deployed in the JDK 1.4 application server.
2) encoding is dependent of the OS as no encoding option is given to the javac 
command-line

I would like to improve the plugin to use the same configuration than the 
maven-compiler-plugin (and also to be toolchains aware). Looking at the 
existing implementation, I think it is easy as jaspereports already propose a 
way to switch compiler implementation (currently there is javac or JDT). What 
need to be done is to implement the JRAbstractMultiClassCompiler [1] abstract 
class.

I could copy/paste part of maven-compiler-plugin in jasperreports-maven-plugin 
but I would like to know if there is an easy way to share the code (maybe call 
maven-compiler-plugin from jasperreports-compiler-plugin?).

Any suggestion?

Regards,

Julien

[1] 
http://grepcode.com/file/repo1.maven.org/maven2/jasperreports/jasperreports/3.5.0/net/sf/jasperreports/engine/design/JRAbstractMultiClassCompiler.java





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to