/** * Combines a user specified bootclasspath with the system * bootclasspath taking build.sysclasspath into account. * * @return a non-null Path instance that combines the user * specified and the system bootclasspath. */ protected Path getBootClassPath() { final Path bp = new Path(project); if (bootclasspath != null) { bp.append(bootclasspath); } return bp.concatSystemBootClasspath("ignore"); }
/** * Calculate the bootclasspath based on the bootclasspath * specified, the build.sysclasspath and ant.build.clonevm magic * properties as well as the cloneVm attribute. * @param log whether to write messages to the log. * @since Ant 1.7 */ private Path calculateBootclasspath(boolean log) { if (vmVersion.startsWith("1.1")) { if (bootclasspath != null && log) { bootclasspath.log("Ignoring bootclasspath as the target VM doesn't support it."); } } else { Path b = bootclasspath; if (b == null) { b = new Path(null); } // even with no user-supplied bootclasspath // build.sysclasspath could be set to something other than // "ignore" and thus create one return b.concatSystemBootClasspath(isCloneVm() ? "last" : "ignore"); } return new Path(null); }
private void doBootPath(final Commandline toExecute) { Path bcp = new Path(getProject()); if (bootclasspath != null) { bcp.append(bootclasspath); } bcp = bcp.concatSystemBootClasspath("ignore"); if (bcp.size() > 0) { toExecute.createArgument().setValue("-bootclasspath"); toExecute.createArgument().setPath(bcp); } }
private Commandline setupGcjhCommand(Javah javah) { Commandline cmd = new Commandline(); cmd.setExecutable(JavaEnvUtils.getJdkExecutable("gcjh")); if (javah.getDestdir() != null) { cmd.createArgument().setValue("-d"); cmd.createArgument().setFile(javah.getDestdir()); } if (javah.getOutputfile() != null) { cmd.createArgument().setValue("-o"); cmd.createArgument().setFile(javah.getOutputfile()); } Path cp = new Path(javah.getProject()); if (javah.getBootclasspath() != null) { cp.append(javah.getBootclasspath()); } cp = cp.concatSystemBootClasspath("ignore"); if (javah.getClasspath() != null) { cp.append(javah.getClasspath()); } if (cp.size() > 0) { cmd.createArgument().setValue("--classpath"); cmd.createArgument().setPath(cp); } if (!javah.getOld()) { cmd.createArgument().setValue("-jni"); } cmd.addArguments(javah.getCurrentArgs()); javah.logAndAddFiles(cmd); return cmd; }
private Commandline setupKaffehCommand(Javah javah) { Commandline cmd = new Commandline(); cmd.setExecutable(JavaEnvUtils.getJdkExecutable("kaffeh")); if (javah.getDestdir() != null) { cmd.createArgument().setValue("-d"); cmd.createArgument().setFile(javah.getDestdir()); } if (javah.getOutputfile() != null) { cmd.createArgument().setValue("-o"); cmd.createArgument().setFile(javah.getOutputfile()); } Path cp = new Path(javah.getProject()); if (javah.getBootclasspath() != null) { cp.append(javah.getBootclasspath()); } cp = cp.concatSystemBootClasspath("ignore"); if (javah.getClasspath() != null) { cp.append(javah.getClasspath()); } if (cp.size() > 0) { cmd.createArgument().setValue("-classpath"); cmd.createArgument().setPath(cp); } if (!javah.getOld()) { cmd.createArgument().setValue("-jni"); } cmd.addArguments(javah.getCurrentArgs()); javah.logAndAddFiles(cmd); return cmd; }
bcp.append(javah.getBootclasspath()); bcp = bcp.concatSystemBootClasspath("ignore"); if (bcp.size() > 0) { cmd.createArgument().setValue("-bootclasspath");