de.tototec.sbuild.ant.tasks

AntChmod

class AntChmod extends Chmod

Wrapper for the Ant Chmod task.

Changes the permissions of a file or all files inside specified directories.

Example

Make the shell script run.sh in directory target/runtime readable and executable for the user, his group and all others.

AntChmod(file = Path("target/runtime/run.sh"), perm="ugo+rx")
Linear Supertypes
Chmod, ExecuteOn, ExecTask, Task, ProjectComponent, Cloneable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AntChmod
  2. Chmod
  3. ExecuteOn
  4. ExecTask
  5. Task
  6. ProjectComponent
  7. Cloneable
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AntChmod(file: File = null, dir: File = null, perm: String = null, includes: String = null, excludes: String = null, defaultExcludes: Boolean = null, parallel: Boolean = null, type: String = null, maxParallel: Integer = null, verbose: Boolean = null, os: String = null, osFamily: String = null)(implicit _project: Project)

    Creates and configures a chmod task.

    Creates and configures a chmod task.

    file

    The file or single directory of which the permissions must be changed.

    dir

    The directory which holds the files whose permissions must be changed.

    perm

    The new Permissions.

    includes

    Comma- or space-separated list of patterns of files that must be included.

    excludes

    Comma- or space-separated list of patterns of files that must be excluded.

    defaultExcludes

    Indicates whether default excludes should be used or not.

    parallel

    Process all specified files using a single chmod command.

    type

    One of "file", "dir" or "both".

    maxParallel

    Limit the amount of parallelism by passing at most this many source files at once.

    verbose

    Whether to print a summary after execution or not.

    os

    List of Operation Systems on which the command may be executed.

    osFamily

    OS family as used in the os attribute.

  2. new AntChmod()(implicit _project: Project)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from AntChmod to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (AntChmod, B)

    Implicit information
    This member is added by an implicit conversion from AntChmod to ArrowAssoc[AntChmod] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def add(arg0: FileNameMapper): Unit

    Definition Classes
    ExecuteOn
  9. def add(arg0: ResourceCollection): Unit

    Definition Classes
    ExecuteOn
  10. def addConfiguredRedirector(arg0: RedirectorElement): Unit

    Definition Classes
    ExecTask
  11. def addDirset(arg0: DirSet): Unit

    Definition Classes
    ExecuteOn
  12. def addEnv(arg0: Variable): Unit

    Definition Classes
    ExecTask
  13. def addFilelist(arg0: FileList): Unit

    Definition Classes
    ExecuteOn
  14. def addFileset(arg0: FileSet): Unit

    Definition Classes
    ExecuteOn
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. final def bindToOwner(arg0: Task): Unit

    Definition Classes
    Task
  17. def checkConfiguration(): Unit

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    Chmod → ExecuteOn → ExecTask
  18. def clone(): AnyRef

    Definition Classes
    ProjectComponent → AnyRef
    Annotations
    @throws( ... )
  19. def createArg(): Argument

    Definition Classes
    ExecTask
  20. def createExclude(): NameEntry

    Definition Classes
    Chmod
  21. def createHandler(): ExecuteStreamHandler

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecuteOn → ExecTask
    Annotations
    @throws( ... )
  22. def createInclude(): NameEntry

    Definition Classes
    Chmod
  23. def createMapper(): Mapper

    Definition Classes
    ExecuteOn
    Annotations
    @throws( ... )
  24. def createPatternSet(): PatternSet

    Definition Classes
    Chmod
  25. def createSrcfile(): Marker

    Definition Classes
    ExecuteOn
  26. def createTargetfile(): Marker

    Definition Classes
    ExecuteOn
  27. def createWatchdog(): ExecuteWatchdog

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecTask
    Annotations
    @throws( ... )
  28. def ensuring(cond: (AntChmod) ⇒ Boolean, msg: ⇒ Any): AntChmod

    Implicit information
    This member is added by an implicit conversion from AntChmod to Ensuring[AntChmod] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. def ensuring(cond: (AntChmod) ⇒ Boolean): AntChmod

    Implicit information
    This member is added by an implicit conversion from AntChmod to Ensuring[AntChmod] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. def ensuring(cond: Boolean, msg: ⇒ Any): AntChmod

    Implicit information
    This member is added by an implicit conversion from AntChmod to Ensuring[AntChmod] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  31. def ensuring(cond: Boolean): AntChmod

    Implicit information
    This member is added by an implicit conversion from AntChmod to Ensuring[AntChmod] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  32. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  34. def execute(): Unit

    Definition Classes
    Chmod → ExecTask → Task
    Annotations
    @throws( ... )
  35. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from AntChmod to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  37. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  38. def getCommandline(arg0: String, arg1: File): Array[String]

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecuteOn
  39. def getCommandline(arg0: Array[String], arg1: Array[File]): Array[String]

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecuteOn
  40. def getDescription(): String

    Definition Classes
    ProjectComponent
  41. def getDirs(arg0: File, arg1: DirectoryScanner): Array[String]

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecuteOn
  42. def getFiles(arg0: File, arg1: DirectoryScanner): Array[String]

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecuteOn
  43. def getFilesAndDirs(arg0: FileList): Array[String]

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecuteOn
  44. def getLocation(): Location

    Definition Classes
    ProjectComponent
  45. final def getOs(): String

    Definition Classes
    ExecTask
  46. final def getOsFamily(): String

    Definition Classes
    ExecTask
  47. def getOwningTarget(): org.apache.tools.ant.Target

    Definition Classes
    Task
  48. def getProject(): org.apache.tools.ant.Project

    Definition Classes
    ProjectComponent
  49. def getResolveExecutable(): Boolean

    Definition Classes
    ExecTask
  50. def getRuntimeConfigurableWrapper(): RuntimeConfigurable

    Definition Classes
    Task
  51. def getTaskName(): String

    Definition Classes
    Task
  52. def getTaskType(): String

    Definition Classes
    Task
  53. def getWrapper(): RuntimeConfigurable

    Attributes
    protected[org.apache.tools.ant]
    Definition Classes
    Task
  54. def handleErrorFlush(arg0: String): Unit

    Attributes
    protected[org.apache.tools.ant]
    Definition Classes
    Task
  55. def handleErrorOutput(arg0: String): Unit

    Attributes
    protected[org.apache.tools.ant]
    Definition Classes
    Task
  56. def handleFlush(arg0: String): Unit

    Attributes
    protected[org.apache.tools.ant]
    Definition Classes
    Task
  57. def handleInput(arg0: Array[Byte], arg1: Int, arg2: Int): Int

    Attributes
    protected[org.apache.tools.ant]
    Definition Classes
    Task
    Annotations
    @throws( classOf[java.io.IOException] )
  58. def handleOutput(arg0: String): Unit

    Attributes
    protected[org.apache.tools.ant]
    Definition Classes
    Task
  59. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  60. def init(): Unit

    Definition Classes
    Task
    Annotations
    @throws( ... )
  61. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  62. final def isInvalid(): Boolean

    Attributes
    protected[org.apache.tools.ant]
    Definition Classes
    Task
  63. def isValidOs(): Boolean

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    Chmod → ExecTask
  64. def log(arg0: String, arg1: Throwable, arg2: Int): Unit

    Definition Classes
    Task
  65. def log(arg0: Throwable, arg1: Int): Unit

    Definition Classes
    Task
  66. def log(arg0: String, arg1: Int): Unit

    Definition Classes
    Task → ProjectComponent
  67. def log(arg0: String): Unit

    Definition Classes
    Task → ProjectComponent
  68. def logFlush(): Unit

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecTask
  69. def maybeConfigure(): Unit

    Definition Classes
    Task
    Annotations
    @throws( ... )
  70. def maybeSetResultPropertyValue(arg0: Int): Unit

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecTask
  71. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  72. final def notify(): Unit

    Definition Classes
    AnyRef
  73. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  74. final def perform(): Unit

    Definition Classes
    Task
  75. def prepareExec(): Execute

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecTask
    Annotations
    @throws( ... )
  76. def reconfigure(): Unit

    Definition Classes
    Task
  77. def resolveExecutable(arg0: String, arg1: Boolean): String

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecTask
  78. def runExec(arg0: Execute): Unit

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecuteOn → ExecTask
    Annotations
    @throws( ... )
  79. final def runExecute(arg0: Execute): Unit

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecTask
    Annotations
    @throws( classOf[java.io.IOException] )
  80. def runParallel(arg0: Execute, arg1: Vector, arg2: Vector): Unit

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecuteOn
    Annotations
    @throws( ... ) @throws( classOf[java.io.IOException] )
  81. def setAddsourcefile(arg0: Boolean): Unit

    Definition Classes
    Chmod → ExecuteOn
  82. def setAppend(arg0: Boolean): Unit

    Definition Classes
    ExecTask
  83. def setCommand(arg0: Commandline): Unit

    Definition Classes
    Chmod → ExecTask
  84. def setDefaultExcludes(defaultExcludes: Boolean): Unit

    Indicates whether default excludes should be used or not.

  85. def setDefaultexcludes(arg0: Boolean): Unit

    Definition Classes
    Chmod
  86. def setDescription(arg0: String): Unit

    Definition Classes
    ProjectComponent
  87. def setDest(arg0: File): Unit

    Definition Classes
    ExecuteOn
  88. def setDir(arg0: File): Unit

    Definition Classes
    Chmod → ExecTask
  89. def setError(arg0: File): Unit

    Definition Classes
    ExecTask
  90. def setErrorProperty(arg0: String): Unit

    Definition Classes
    ExecTask
  91. def setExcludes(arg0: String): Unit

    Definition Classes
    Chmod
  92. def setExecutable(arg0: String): Unit

    Definition Classes
    Chmod → ExecTask
  93. def setFailIfExecutionFails(arg0: Boolean): Unit

    Definition Classes
    ExecTask
  94. def setFailonerror(arg0: Boolean): Unit

    Definition Classes
    ExecTask
  95. def setFile(arg0: File): Unit

    Definition Classes
    Chmod
  96. def setForce(arg0: Boolean): Unit

    Definition Classes
    ExecuteOn
  97. def setForwardslash(arg0: Boolean): Unit

    Definition Classes
    ExecuteOn
  98. def setIgnoremissing(arg0: Boolean): Unit

    Definition Classes
    ExecuteOn
  99. def setIncludes(arg0: String): Unit

    Definition Classes
    Chmod
  100. def setInput(arg0: File): Unit

    Definition Classes
    ExecTask
  101. def setInputString(arg0: String): Unit

    Definition Classes
    ExecTask
  102. def setLocation(arg0: Location): Unit

    Definition Classes
    ProjectComponent
  103. def setLogError(arg0: Boolean): Unit

    Definition Classes
    ExecTask
  104. def setMaxParallel(arg0: Int): Unit

    Definition Classes
    ExecuteOn
  105. def setNewenvironment(arg0: Boolean): Unit

    Definition Classes
    ExecTask
  106. def setOs(arg0: String): Unit

    Definition Classes
    ExecTask
  107. def setOsFamily(arg0: String): Unit

    Definition Classes
    ExecTask
  108. def setOutput(arg0: File): Unit

    Definition Classes
    ExecTask
  109. def setOutputproperty(arg0: String): Unit

    Definition Classes
    ExecTask
  110. def setOwningTarget(arg0: org.apache.tools.ant.Target): Unit

    Definition Classes
    Task
  111. def setParallel(arg0: Boolean): Unit

    Definition Classes
    ExecuteOn
  112. def setPerm(arg0: String): Unit

    Definition Classes
    Chmod
  113. def setProject(arg0: org.apache.tools.ant.Project): Unit

    Definition Classes
    Chmod → ProjectComponent
  114. def setRelative(arg0: Boolean): Unit

    Definition Classes
    ExecuteOn
  115. def setResolveExecutable(arg0: Boolean): Unit

    Definition Classes
    ExecTask
  116. def setResultProperty(arg0: String): Unit

    Definition Classes
    ExecTask
  117. def setRuntimeConfigurableWrapper(arg0: RuntimeConfigurable): Unit

    Definition Classes
    Task
  118. def setSearchPath(arg0: Boolean): Unit

    Definition Classes
    ExecTask
  119. def setSkipEmptyFilesets(arg0: Boolean): Unit

    Definition Classes
    Chmod → ExecuteOn
  120. def setSpawn(arg0: Boolean): Unit

    Definition Classes
    ExecTask
  121. def setTaskName(arg0: String): Unit

    Definition Classes
    Task
  122. def setTaskType(arg0: String): Unit

    Definition Classes
    Task
  123. def setTimeout(arg0: Integer): Unit

    Definition Classes
    ExecTask
  124. def setTimeout(arg0: Long): Unit

    Definition Classes
    ExecTask
  125. def setType(arg0: FileDirBoth): Unit

    Definition Classes
    ExecuteOn
  126. def setVMLauncher(arg0: Boolean): Unit

    Definition Classes
    ExecTask
  127. def setVerbose(arg0: Boolean): Unit

    Definition Classes
    ExecuteOn
  128. def setupRedirector(): Unit

    Attributes
    protected[org.apache.tools.ant.taskdefs]
    Definition Classes
    ExecuteOn → ExecTask
  129. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  130. def toString(): String

    Definition Classes
    AnyRef → Any
  131. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  132. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  133. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  134. def [B](y: B): (AntChmod, B)

    Implicit information
    This member is added by an implicit conversion from AntChmod to ArrowAssoc[AntChmod] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from AntChmod to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (antChmod: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from AntChmod to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (antChmod: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: AntChmod

    Implicit information
    This member is added by an implicit conversion from AntChmod to ArrowAssoc[AntChmod] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (antChmod: ArrowAssoc[AntChmod]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: AntChmod

    Implicit information
    This member is added by an implicit conversion from AntChmod to Ensuring[AntChmod] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (antChmod: Ensuring[AntChmod]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Chmod

Inherited from ExecuteOn

Inherited from ExecTask

Inherited from Task

Inherited from ProjectComponent

Inherited from Cloneable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from AntChmod to StringAdd

Inherited by implicit conversion any2stringfmt from AntChmod to StringFormat

Inherited by implicit conversion any2ArrowAssoc from AntChmod to ArrowAssoc[AntChmod]

Inherited by implicit conversion any2Ensuring from AntChmod to Ensuring[AntChmod]

Ungrouped