Class ManifestClassPath

  • All Implemented Interfaces:

    public class ManifestClassPath
    extends Task
    Converts a Path into a property suitable as a Manifest classpath.
    Ant 1.7
    • Constructor Detail

      • ManifestClassPath

        public ManifestClassPath()
    • Method Detail

      • execute

        public void execute()
        Sets a property, which must not already exist, with a space separated list of files and directories relative to the jar file's parent directory.
        execute in class Task
      • setProperty

        public void setProperty​(java.lang.String name)
        Sets the property name to hold the classpath value.
        name - the property name
      • setJarFile

        public void setJarFile​( jarfile)
        The JAR file to contain the classpath attribute in its manifest.
        jarfile - the JAR file. Need not exist yet, but its parent directory must exist on the other hand.
      • setMaxParentLevels

        public void setMaxParentLevels​(int levels)
        Sets the maximum parent directory levels allowed when computing a relative path.
        levels - the max level. Defaults to 2.
      • addClassPath

        public void addClassPath​(Path path)
        Adds the classpath to convert.
        path - the classpath to convert.