congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Commandline.createArgument
Code IndexAdd Tabnine to your IDE (free)

How to use
createArgument
method
in
org.apache.tools.ant.types.Commandline

Best Java code snippets using org.apache.tools.ant.types.Commandline.createArgument (Showing top 20 results out of 315)

Refine searchRefine arrow

  • Commandline.Argument.setValue
origin: org.apache.ant/ant

/**
 * flag to create backups; optional, default=false
 * @param backups if true create backups
 */
public void setBackups(boolean backups) {
  if (backups) {
    cmd.createArgument().setValue("-b");
  }
}
origin: org.apache.ant/ant

/**
 * flag to ignore whitespace differences; default=false
 * @param ignore if true ignore whitespace differences
 */
public void setIgnorewhitespace(boolean ignore) {
  if (ignore) {
    cmd.createArgument().setValue("-l");
  }
}
origin: org.apache.ant/ant

/**
 * Set the location of the extensions directories.
 *
 * @param path the string version of the path.
 * @deprecated since 1.5.x.
 *             Use the {@link #setExtdirs(Path)} version.
 */
@Deprecated
public void setExtdirs(final String path) {
  cmd.createArgument().setValue("-extdirs");
  cmd.createArgument().setValue(path);
}
origin: org.apache.ant/ant

/**
 * 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);
}
origin: org.apache.ant/ant

/**
 * Output file encoding name.
 *
 * @param enc name of the encoding to use.
 */
public void setDocencoding(final String enc) {
  cmd.createArgument().setValue("-docencoding");
  cmd.createArgument().setValue(enc);
  docEncoding = enc;
}
origin: org.apache.ant/ant

/**
 * Set the maximum memory to be used by the javadoc process
 *
 * @param max a string indicating the maximum memory according to the
 *        JVM conventions (e.g. 128m is 128 Megabytes)
 */
public void setMaxmemory(final String max) {
  cmd.createArgument().setValue("-J-Xmx" + max);
}
origin: org.apache.ant/ant

/**
 * 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);
}
origin: org.apache.ant/ant

/**
 * 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);
}
origin: org.apache.ant/ant

/**
 * Work silently unless an error occurs; optional, default=false
 * @param q if true suppress set the -s option on the patch command
 */
public void setQuiet(boolean q) {
  if (q) {
    cmd.createArgument().setValue("-s");
  }
}
origin: org.apache.ant/ant

/**
 * Assume patch was created with old and new files swapped; optional,
 * default=false
 * @param r if true set the -R option on the patch command
 */
public void setReverse(boolean r) {
  if (r) {
    cmd.createArgument().setValue("-R");
  }
}
origin: org.apache.ant/ant

/**
 * 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);
}
origin: org.apache.ant/ant

/**
 * Set the location of the extensions directories.
 *
 * @param path a path containing the extension directories.
 */
public void setExtdirs(final Path path) {
  cmd.createArgument().setValue("-extdirs");
  cmd.createArgument().setPath(path);
}
origin: org.apache.ant/ant

private void doDocFilesSubDirs(final Commandline toExecute) {
  if (docFilesSubDirs) {
    toExecute.createArgument().setValue("-docfilessubdirs");
    if (excludeDocFilesSubDir != null && !excludeDocFilesSubDir.trim().isEmpty()) {
      toExecute.createArgument().setValue("-excludedocfilessubdir");
      toExecute.createArgument().setValue(excludeDocFilesSubDir);
    }
  }
}
origin: org.apache.ant/ant

/**
 * 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);
  }
}
origin: org.apache.ant/ant

/**
 * Utility method to add an argument to the command line conditionally
 * based on the given flag.
 *
 * @param b the flag which controls if the argument is added.
 * @param arg the argument value.
 */
private void addArgIf(final boolean b, final String arg) {
  if (b) {
    cmd.createArgument().setValue(arg);
  }
}
origin: org.apache.ant/ant

/**
 * Set the local to use in documentation generation.
 *
 * @param locale the locale to use.
 */
public void setLocale(final String locale) {
  // createArgument(true) is necessary to make sure -locale
  // is the first argument (required in 1.3+).
  cmd.createArgument(true).setValue(locale);
  cmd.createArgument(true).setValue("-locale");
}
origin: org.apache.ant/ant

/**
 * Set the encoding name of the source files,
 *
 * @param enc the name of the encoding for the source files.
 */
public void setEncoding(final String enc) {
  cmd.createArgument().setValue("-encoding");
  cmd.createArgument().setValue(enc);
}
origin: org.apache.ant/ant

/**
 * Append the arguments to the existing command.
 * @param line an array of arguments to append.
 */
public void addArguments(String[] line) {
  for (String l : line) {
    createArgument().setValue(l);
  }
}
origin: org.apache.ant/ant

/**
 * This method adds a command line argument to an external command.
 *
 * I do not understand what this method does in this class ???
 * particularly not why it is public ????
 * AntoineLL July 23d 2003
 *
 * @param c  command line to which one argument should be added
 * @param arg argument to add
 */
public void addCommandArgument(Commandline c, String arg) {
  c.createArgument().setValue(arg);
}
origin: org.apache.ant/ant

private void doSourcePath(final Commandline toExecute, final Path sourceDirs) {
  if (!sourceDirs.isEmpty()) {
    toExecute.createArgument().setValue("-sourcepath");
    toExecute.createArgument().setPath(sourceDirs);
  }
}
org.apache.tools.ant.typesCommandlinecreateArgument

Javadoc

Create an argument object.

Each commandline object has at most one instance of the argument class. This method calls this.createArgument(false).

Popular methods of Commandline

  • getArguments
    Returns all arguments defined by addLine,addValue or the argument object.
  • <init>
    Create a command line from a string.
  • getCommandline
    Return the executable and all defined arguments.
  • toString
    Quote the parts of the given array in way that makes them usable as command line arguments.
  • translateCommandline
    Crack a command line.
  • describeArguments
    Return a String that describes the arguments suitable for verbose output before a call to Runtime.ex
  • size
    Size operator. This actually creates the command line, so it is not a zero cost operation.
  • describeCommand
    Return a String that describes the command and arguments suitable for verbose output before a call t
  • clone
    Generate a deep clone of the contained object.
  • getExecutable
    Get the executable.
  • setExecutable
    Set the executable to run.
  • addArguments
    Append the arguments to the existing command.
  • setExecutable,
  • addArguments,
  • addArgumentsToList,
  • addCommandToList,
  • clearArgs,
  • createMarker,
  • quoteArgument

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now