/** * Does the command line argument processing for modern and adds * the files to compile as well. * @return the command line */ protected Commandline setupModernJavacCommand() { final Commandline cmd = new Commandline(); setupModernJavacCommandlineSwitches(cmd); logAndAddFilesToCompile(cmd); return cmd; }
/** * The argument the compiler wants to see if the debug attribute * has been set to false. * * <p>A return value of <code>null</code> means no argument at all.</p> * * @return "-g:none" unless we expect to invoke a JDK 1.1 compiler. * * @since Ant 1.6.3 */ protected String getNoDebugArgument() { return assumeJava11() ? null : "-g:none"; }
setupJavacCommandlineSwitches(cmd, true); if (!assumeJava13()) { // -source added with JDK 1.4 final String t = attributes.getTarget(); final String s = attributes.getSource(); if (release == null || !assumeJava9Plus()) { if (release != null) { attributes.log( cmd.createArgument().setValue(adjustSourceValue(s)); } else if (t != null && mustSetSourceForTarget(t)) { setImplicitSourceSwitch(cmd, t, adjustSourceValue(t)); if (t != null || s != null || getBootClassPath().size() > 0) { attributes.log( "Ignoring source, target and bootclasspath as release has been set", final Path msp = getModulesourcepath(); if (!msp.isEmpty()) { cmd.createArgument().setValue("--module-source-path"); cmd.createArgument().setPath(msp); final Path mp = getModulepath(); if (!mp.isEmpty()) { cmd.createArgument().setValue("--module-path"); cmd.createArgument().setPath(mp); final Path ump = getUpgrademodulepath(); if (!ump.isEmpty()) {
final Path classpath = getCompileClasspath(); final String memoryParameterPrefix = assumeJava11() ? "-J-" : "-J-X"; if (memoryInitialSize != null) { if (!attributes.isForkedJavac()) { if (assumeJava11()) { final Path cp = new Path(project); Optional.ofNullable(getBootClassPath()).ifPresent(cp::append); if (release == null || !assumeJava9Plus()) { if (target != null) { cmd.createArgument().setValue("-target"); final Path bp = getBootClassPath(); if (!bp.isEmpty()) { cmd.createArgument().setValue("-bootclasspath"); if (useDebugLevel && !assumeJava11()) { final String debugLevel = attributes.getDebugLevel(); if (debugLevel != null) { } else if (getNoDebugArgument() != null) { cmd.createArgument().setValue(getNoDebugArgument()); if (assumeJava11()) { cmd.createArgument().setValue("-depend"); } else if (assumeJava12()) { cmd.createArgument().setValue("-Xdepend");
protected Commandline setupModernJavacCommandlineSwitches(Commandline cmd) { super.setupModernJavacCommandlineSwitches(cmd); setupCommandlineSwitches(cmd); return cmd; } }
protected Commandline setupModernJavacCommandlineSwitches(Commandline cmd) { super.setupModernJavacCommandlineSwitches(cmd); setupCommandlineSwitches(cmd); return cmd; }
protected Commandline setupModernJavacCommandlineSwitches(Commandline cmd) { super.setupModernJavacCommandlineSwitches(cmd); setupCommandlineSwitches(cmd); return cmd; } }
protected Commandline setupModernJavacCommandlineSwitches(Commandline cmd) { super.setupModernJavacCommandlineSwitches(cmd); setupCommandlineSwitches(cmd); return cmd; }