Object

org.pantsbuild.zinc.util

Util

Related Doc: package util

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. class Alarm extends AnyRef

    Permalink

    Resettable timer.

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Duration: Regex

    Permalink

    Simple duration regular expression.

  5. final def asInstanceOf[T0]: T0

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

    Permalink

    Check a file is writable.

  7. def cleanAllClasses(dir: File): Unit

    Permalink

    Clean all class files from a directory.

  8. def clone(): AnyRef

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

    Permalink
  10. def dateTime(time: Long): String

    Permalink

    Creating a readable timestamp.

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

    Permalink

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

  12. def duration(millis: Long): String

    Permalink

    Format a minutes:seconds.millis time.

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

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

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

    Permalink

    Create a file, default empty, from system property.

  16. def finalize(): Unit

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

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

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

    Permalink

    Create int from system property.

  20. final def isInstanceOf[T0]: Boolean

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

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

    Permalink

    Normalise file in relation to actual current working directory.

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

    Permalink

    Normalise file map in relation to actual current working directory.

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

    Permalink

    Normalise optional file in relation to actual current working directory.

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

    Permalink

    Normalise file pair in relation to actual current working directory.

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

    Permalink

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

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

    Permalink

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

  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

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

    Permalink

    Create an option file from system property.

  31. def pathHash(file: File): String

    Permalink

    Hash of a file's canonical path.

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

    Permalink

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

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

    Permalink

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

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

    Permalink

    Fully relativize a path, relative to any other base.

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

    Permalink

    Set system properties.

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

    Permalink

    General utility for displaying objects for debug output.

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

    Permalink

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

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

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

    Permalink

    Schedule a resettable timer.

  40. def timing(start: Long): String

    Permalink

    Current timestamp and time passed since start time.

  41. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped