View Javadoc

1   package org.kuali.student.lum.lu.ui.main.client;
2   
3   import org.apache.tools.ant.taskdefs.Javac;
4   import org.eclipse.jdt.core.JDTCompilerAdapter;
5   
6   //See http://code.google.com/p/google-web-toolkit/issues/detail?id=3557 for details of solution
7   public class JDTCompiler15 extends JDTCompilerAdapter {
8          @Override
9          public void setJavac(Javac attributes) {
10                 if (attributes.getTarget() == null) {
11                         attributes.setTarget("1.5");
12                 }
13                 if (attributes.getSource() == null) {
14                         attributes.setSource("1.5");
15                 }
16                 super.setJavac(attributes);
17         }
18  }