Trait

net.adamcin.vltpack

CreatesPackage

Related Doc: package vltpack

Permalink

trait CreatesPackage extends BaseMojo

Trait defining common mojo parameters and methods for the creation of vault packages

Since

0.6.0

Linear Supertypes
BaseMojo, AbstractMojo, ContextEnabled, Mojo, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CreatesPackage
  2. BaseMojo
  3. AbstractMojo
  4. ContextEnabled
  5. Mojo
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. final val DEFAULT_JCR_PATH: String("/")

    Permalink
  5. final val JCR_ROOT: String("jcr_root")

    Permalink
  6. final val META_INF: String("META-INF")

    Permalink
  7. final val VAULT_PREFIX: String("META-INF/vault/")

    Permalink
  8. def addEntryToZipFile(addToSkip: Boolean, skipEntries: Set[String], entryFile: File, entryName: String, zip: JarOutputStream): Set[String]

    Permalink

    Recursively adds files to the provided zip output stream

    Recursively adds files to the provided zip output stream

    addToSkip

    set to true to add the current entry to the returned set of entries to skip.

    skipEntries

    entry names that should not be added to the zip file

    entryFile

    file that will be copied to the stream if it is not a directory. if it is a directory, it's children will be listed and this method will be called on each as appropriate

    entryName

    name of current entry should it be successfully added to the zip stream

    zip

    zip output stream

    returns

    set of zip entries to skip during subsequent calls to this method

  9. def adjustToServerTimeZone(localTime: Long): Long

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def createPackage(vltRoot: File, zipFile: File, prepareZipFile: (JarOutputStream) ⇒ Set[String]): Unit

    Permalink

    Creates a package from a standard vlt working copy, such that the vltRoot directory has two children, jcr_root and META-INF.

    Creates a package from a standard vlt working copy, such that the vltRoot directory has two children, jcr_root and META-INF.

    vltRoot

    parent of both jcr_root and META-INF

    zipFile

    zip file to write to

    prepareZipFile

    function that prepares the stream by, say, injecting generated versions of entries and returning a Set of those entry names that should be skipped during normal package generation, thus allowing one to merge multiple source trees

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

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

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

    Permalink
    Definition Classes
    BaseMojo → Mojo
  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 getLog(): Log

    Permalink
    Definition Classes
    AbstractMojo → Mojo
  19. def getPluginContext(): Map

    Permalink
    Definition Classes
    AbstractMojo → ContextEnabled
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. var jcrPath: String

    Permalink

    Specify the JCR path that the jcr_root folder maps to.

    Specify the JCR path that the jcr_root folder maps to. For instance, if the content was checked out using the vlt command, a jcrPath parameter may have been explicitly specified as something other than '/'. In this case, the same explicit value must be set for this mojo to properly create Jar entries so that the package contents wind up at the correct path when installed

  23. lazy val jcrPathNoSlashEnd: String

    Permalink
  24. val localTz: TimeZone

    Permalink
  25. val log: Logger

    Permalink
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  29. var serverTimezone: String

    Permalink

    Specify the server timezone if different from the local timezone.

    Specify the server timezone if different from the local timezone. When CRX installs the package, it will check the lastmodified timestamps on the Jar entries and compare them to the jcr:lastModified properties in the repository to determine if each file should be installed or not. Because the Jar entry timestamp does not account for timezone, it is possible for packages created in different timezones to be installed inconsistently on the same server. By setting this parameter, the Jar entry timestamps will be adjusted to reflect the local time of the server timezone instead of the local timezone

    The value of this property will be passed to TimeZone.getTimeZone(String id), which will be compared against the build machine's default time zone, TimeZone.getDefault(), for computing the desired timestamp offset.

    As described in the TimeZone javadocs, if the value of this property is not empty and is not a valid TimeZone id, the GMT timezone will be used for adjustment of timestamps.

  30. lazy val serverTz: TimeZone

    Permalink
  31. var session: MavenSession

    Permalink
    Definition Classes
    BaseMojo
  32. def setLog(arg0: Log): Unit

    Permalink
    Definition Classes
    AbstractMojo → Mojo
  33. def setPluginContext(arg0: Map): Unit

    Permalink
    Definition Classes
    AbstractMojo → ContextEnabled
  34. var settings: Settings

    Permalink
    Definition Classes
    BaseMojo
  35. def skipOrExecute(skip: Boolean)(body: ⇒ Unit): Unit

    Permalink
    Definition Classes
    BaseMojo
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

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

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

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

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

Inherited from BaseMojo

Inherited from AbstractMojo

Inherited from ContextEnabled

Inherited from Mojo

Inherited from AnyRef

Inherited from Any

Ungrouped