Commandline.Argument (Apache Ant API)
Date: 2008-06-27

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tools.ant.types
Class Commandline.Argument

    java.lang.Object
      org.apache.tools.ant.ProjectComponent
          org.apache.tools.ant.types.Commandline.Argument

All Implemented Interfaces:
  java.lang.Cloneable

Direct Known Subclasses:
  ImplementationSpecificArgument

Enclosing class:
  Commandline

    public static class Commandline.Argument

extends ProjectComponent

Used for nested xml command line definitions.

Field Summary

Fields inherited from class org.apache.tools.ant.ProjectComponent
`description, location, project`

Constructor Summary
`Commandline.Argument()`

Method Summary
`java.lang.String[]` | `getParts()` Return the constituent parts of this Argument.
`void` | `setFile(java.io.File value)` Set a single commandline argument to the absolute filename of the given file.
`void` | `setLine(java.lang.String line)` Set the line to split into several commandline arguments.
`void` | `setPath(Path value)` Set a single commandline argument and treats it like a PATH--ensuring the right separator for the local platform is used.
`void` | `setPathref(Reference value)` Set a single commandline argument from a reference to a path--ensuring the right separator for the local platform is used.
`void` | `setValue(java.lang.String value)` Set a single commandline argument.

Methods inherited from class org.apache.tools.ant.ProjectComponent
`clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Commandline.Argument

    public Commandline.Argument()

Method Detail

### setValue

    public void setValue(java.lang.String value)

  Set a single commandline argument.

  Parameters:
    `value` - a single commandline argument.

### setLine

    public void setLine(java.lang.String line)

  Set the line to split into several commandline arguments.

  Parameters:
    `line` - line to split into several commandline arguments.

### setPath

    public void setPath(Path value)

  Set a single commandline argument and treats it like a PATH--ensuring the right separator for the local platform is used.

  Parameters:
    `value` - a single commandline argument.

### setPathref

    public void setPathref(Reference value)

  Set a single commandline argument from a reference to a path--ensuring the right separator for the local platform is used.

  Parameters:
    `value` - a single commandline argument.

### setFile

    public void setFile(java.io.File value)

  Set a single commandline argument to the absolute filename of the given file.

  Parameters:
    `value` - a single commandline argument.

### getParts

    public java.lang.String[] getParts()

  Return the constituent parts of this Argument.

  Returns:
    an array of strings.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD