org.pantsbuild.zinc

Util

object Util

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Alarm extends AnyRef

    Resettable timer.

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. val Duration: Regex

    Simple duration regular expression.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def checkWritable(file: File): Boolean

    Check a file is writable, create it if it doesn't exist.

  9. def cleanAllClasses(dir: File): Unit

    Clean all class files from a directory.

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def counted(count: Int, prefix: String, single: String, plural: String): String

  12. def dateTime(time: Long): String

    Creating a readable timestamp.

  13. def duration(arg: String, default: Long): Long

    Milliseconds from string duration of the form Nh|Nm|Ns, otherwise default.

  14. def duration(millis: Long): String

    Format a minutes:seconds.

    Format a minutes:seconds.millis time.

  15. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. def fileProperty(name: String): File

    Create a file, default empty, from system property.

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. def intProperty(name: String, default: Int): Int

    Create int from system property.

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def normalise(cwd: Option[File])(file: File): File

    Normalise file in relation to actual current working directory.

  25. def normaliseMap(cwd: Option[File])(mapped: Map[File, File]): Map[File, File]

    Normalise file map in relation to actual current working directory.

  26. def normaliseOpt(cwd: Option[File])(optFile: Option[File]): Option[File]

    Normalise optional file in relation to actual current working directory.

  27. def normalisePair(cwd: Option[File])(pair: (File, File)): (File, File)

    Normalise file pair in relation to actual current working directory.

  28. def normaliseSeq(cwd: Option[File])(files: Seq[File]): Seq[File]

    Normalise sequence of files in relation to actual current working directory.

  29. def normaliseSeqMap(cwd: Option[File])(mapped: Map[Seq[File], File]): Map[Seq[File], File]

    Normalise file sequence map in relation to actual current working directory.

  30. final def notify(): Unit

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

    Definition Classes
    AnyRef
  32. def optFileProperty(name: String): Option[File]

    Create an option file from system property.

  33. def pathHash(file: File): String

    Hash of a file's canonical path.

  34. def propertiesFromResource(resource: String, classLoader: ClassLoader): Properties

    Get all properties from a properties file resource in the classloader.

  35. def propertyFromResource(resource: String, property: String, classLoader: ClassLoader): Option[String]

    Get a property from a properties file resource in the classloader.

  36. def relativize(base: File, path: File): String

    Fully relativize a path, relative to any other base.

  37. def setProperties(props: Seq[String]): Unit

    Set system properties.

  38. def show(thing: Any, output: (String) ⇒ Unit, prefix: String = "", level: Int = 0): Unit

    General utility for displaying objects for debug output.

  39. def stringSetProperty(name: String, default: Set[String]): Set[String]

    Create set of strings, split by comma, from system property.

  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def timer(delay: Long)(body: ⇒ Unit): Alarm

    Schedule a resettable timer.

  42. def timing(start: Long): String

    Current timestamp and time passed since start time.

  43. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped