Packages

o

sbt

Sync

object Sync

Maintains a set of mappings so that they are uptodate. Specifically, 'apply' applies the mappings by creating target directories and copying source files to their destination. For each mapping no longer present, the old target is removed. Caution: Existing files are overwritten. Caution: The removal of old targets assumes that nothing else has written to or modified those files. It tries not to obliterate large amounts of data by only removing previously tracked files and empty directories. That is, it won't remove a directory with unknown (untracked) files in it. Warning: It is therefore inappropriate to use this with anything other than an automatically managed destination or a dedicated target directory. Warning: Specifically, don't mix this with a directory containing manually created files, like sources. It is safe to use for its intended purpose: copying resources to a class output directory.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sync
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type RelationInfo[F] = (Relation[File, File], Map[File, F])
  2. type RelationInfoVirtual[F] = (Relation[VirtualFileRef, VirtualFileRef], Map[VirtualFileRef, F])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def convertFromVirtual[F <: FileInfo](info: RelationInfoVirtual[F], fileConverter: FileConverter): RelationInfo[F]
  7. def copy(source: File, target: File): Unit
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def noDuplicateTargets(relation: Relation[File, File]): Unit
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def readInfo[F <: FileInfo](store: CacheStore)(implicit infoFormat: JsonFormat[F]): RelationInfo[F]
  19. def readInfoVirtual[F <: FileInfo](store: CacheStore)(implicit infoFormat: JsonFormat[F]): RelationInfoVirtual[F]
  20. def readInfoWrapped[F <: FileInfo](store: CacheStore, fileConverter: FileConverter)(implicit infoFormat: JsonFormat[F]): RelationInfo[F]
  21. implicit def relationFormat[A, B](implicit af: JsonFormat[Map[A, Set[B]]], bf: JsonFormat[Map[B, Set[A]]]): JsonFormat[Relation[A, B]]
  22. def sync(store: CacheStore, inStyle: Style, fileConverter: FileConverter): (Traversable[(File, File)]) ⇒ Relation[File, File]

    this function ensures that the latest files in /src are also in /target, so that they are synchronised

  23. def sync(store: CacheStore, inStyle: Style = FileInfo.lastModified): (Traversable[(File, File)]) ⇒ Relation[File, File]
  24. def sync(store: CacheStore, fileConverter: FileConverter): (Traversable[(File, File)]) ⇒ Relation[File, File]
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. def writeInfo[F <: FileInfo](store: CacheStore, relation: Relation[File, File], info: Map[File, F])(implicit infoFormat: JsonFormat[F]): Unit
  31. def writeInfoVirtual[F <: FileInfo](store: CacheStore, relation: Relation[File, File], info: Map[File, F], fileConverter: FileConverter)(implicit infoFormat: JsonFormat[F]): Unit

Deprecated Value Members

  1. def apply(store: CacheStore, inStyle: Style = FileInfo.lastModified, outStyle: Style = FileInfo.exists): (Traversable[(File, File)]) ⇒ Relation[File, File]
    Annotations
    @deprecated
    Deprecated

    (Since version 1.1.1) Use sync, which doesn't take the unused outStyle param

Inherited from AnyRef

Inherited from Any

Ungrouped