Did you have a look to this thread ? http://www.nabble.com/-solved--product-codes-at-java-1.4%2C-test-sources-at-java-1.5-tf2233884.html#a6204244
Hope this help, Rémy 2006/10/4, Brian E. Fox <[EMAIL PROTECTED]>:
Sorry I guess I wasn't too clear in what I want. I want to compile my tests using java 1.5 but the rest of my sources as 1.4. Why? Because we use TestNG and the Javadoc runner doesn't work yet and we can't update our product to 1.5 yet. I figured if I could just build the tests using 1.5, then we could use the java annotations and everyone would be happy.