I am currently in a situation where I must use a supplied modified jvm /jre version 1.4. If you must know its the JVM/jre that is supplied with IBM's WebSphere Application Server 6.1.
In order for the class files to work when deploying to WAS. I need to build using the same jvm as WAS. I have tried using the standard jvm to complie. (this hasn't worked for me yet, so I currently import the IBM modified JRE into eclipse and use the ant build functionality from within Eclipse (IBMjre) ).
I have several projects with classes in each that are used in the final project. Currently I am required to use the IBMjre in each project and build each project individually and pull the complied class files into the ear that I deploy.
1) I want to be able to build in one location, not 3 separate.
2) I do not want to have to import the IBMjre int eclipse to develop, to be able to develop and clean in eclipse using new version of jre (1.6), and when comes time to build the project ear do so with the IBMjre at that time. Backwards compilation of files developed on new version (in my understanding) is not an issue.
Currently each project has the following build.xml file.
then in the final project I pull in all the compiled .class files from each project and build the ear.
To solve 1) I envisioned doing three separate <javac> calls in the final build.xml file. Each to each of the projects.
This isn't hard, but I wonder if there is a better way to do this.
To solve 2) assuming I implement solution to 1 above, I wanted to override the jre that ant defaults to using.
by defining . but this causes an error in ant javac
I have read the ant manual I use ant version 1.6.5. Must I create a class that implements CompilerAdapter and point it to the IBMjre? If so is there any guidance on doing so?
would I be better off to upgrade my version of ant?
Please gurus of ANT give me guidance.
Really the source of many problems is WAS, and what I must do to get this project working with ILOG JRules. If you have any pointers, suggestions, knowledge to share or where I can gather more information It will be greatly appreciated.
THANK YOU for your time and effort.