org.apache.tools.ant.taskdefs.Javac Java Examples

The following examples show how to use org.apache.tools.ant.taskdefs.Javac. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JDTCompiler15.java    From unitime with Apache License 2.0 5 votes vote down vote up
@Override
public void setJavac(Javac attributes) {
        if (attributes.getTarget() == null) {
                attributes.setTarget("1.5");
        }
        if (attributes.getSource() == null) {
                attributes.setSource("1.5");
        }
        super.setJavac(attributes);
}
 
Example #2
Source File: Groovyc.java    From groovy with Apache License 2.0 4 votes vote down vote up
/**
 * Add the configured nested javac task if present to initiate joint compilation.
 */
public void addConfiguredJavac(final Javac javac) {
    this.javac = javac;
    jointCompilation = true;
}