/** * The file containing the diff output; required. * @param file the file containing the diff output */ public void setPatchfile(File file) { if (!file.exists()) { throw new BuildException("patchfile " + file + " doesn\'t exist", getLocation()); } cmd.createArgument().setValue("-i"); cmd.createArgument().setFile(file); havePatchfile = true; }
exec.createArg().setFile(cabFile); exec.createArg().setValue("@" + listFile.getAbsolutePath());
toExecute.createArgument().setFile(originalFile);
cmd.createArgument().setFile(destDir);
cmd.createArgument().setFile(destDir);
cmd.createArgument().setFile(destDir);
cmd.createArgument().setFile(destDir);
cmd.createArgument().setFile(attributes.getOutputDir());
} else { cmd.createArgument().setValue("-h"); cmd.createArgument().setFile(attributes.getNativeHeaderDir());
cmd.createArgument().setFile(destDir);
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; }
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; }
/** * Adds source and dest files to the command line. * * <p>This implementation adds them without any leading * qualifiers, source first.</p> * * @param cmd Command line to add to * @param log provides access to Ant's logging system. * @param src the source file * @param dest the destination file * @throws BuildException if there was a problem. */ protected void addFiles(Commandline cmd, ProjectComponent log, File src, File dest) throws BuildException { cmd.createArgument().setFile(src); cmd.createArgument().setFile(dest); }
/** * Specifies the HTML help file to use. * * @param f the file containing help content. */ public void setHelpfile(final File f) { cmd.createArgument().setValue("-helpfile"); cmd.createArgument().setFile(f); }
/** * Specifies the CSS stylesheet file to use. * * @param f the file with the CSS to use. */ public void setStylesheetfile(final File f) { cmd.createArgument().setValue("-stylesheetfile"); cmd.createArgument().setFile(f); }
/** * Set the directory where the Javadoc output will be generated. * * @param dir the destination directory. */ public void setDestdir(final File dir) { destDir = dir; cmd.createArgument().setValue("-d"); cmd.createArgument().setFile(destDir); }
/** * add an argument tuple to the arg list, if the file parameter isn't null * @param cmd the command line * @param argument The argument * @param file the parameter */ protected void addArg(CommandlineJava cmd, String argument, File file) { if (file != null) { cmd.createArgument().setValue(argument); cmd.createArgument().setFile(file); } }
/** * The name of a file to send the output to, instead of patching * the file(s) in place; optional. * @param file the file to send the output to * @since Ant 1.6 */ public void setDestfile(File file) { if (file != null) { cmd.createArgument().setValue("-o"); cmd.createArgument().setFile(file); } }
/** * Specify the file containing the overview to be included in the generated * documentation. * * @param f the file containing the overview. */ public void setOverview(final File f) { cmd.createArgument().setValue("-overview"); cmd.createArgument().setFile(f); }