private void setImplicitSourceSwitch(final Commandline cmd, final String target, final String source) { attributes.log("", Project.MSG_WARN); attributes.log(" WARNING", Project.MSG_WARN); attributes.log("", Project.MSG_WARN); attributes.log("The -source switch defaults to " + getDefaultSource() + ".", Project.MSG_WARN); attributes.log("If you specify -target " + target + " you now must also specify -source " + source + ".", Project.MSG_WARN); attributes.log("Ant will implicitly add -source " + source + " for you. Please change your build file.", Project.MSG_WARN); cmd.createArgument().setValue("-source"); cmd.createArgument().setValue(source); }