object ZipHelper
Module with functions associated with processing zip files.
- See also
http://stackoverflow.com/questions/17888365/file-permissions-are-not-being-preserved-while-after-zip
http://stackoverflow.com/questions/3450250/is-it-possible-to-create-a-script-to-save-and-restore-permissions
http://stackoverflow.com/questions/1050560/maintain-file-permissions-when-extracting-from-a-zip-file-using-jdk-5-api
http://docs.oracle.com/javase/7/docs/technotes/guides/io/fsp/zipfilesystemprovider.html
- Alphabetic
- By Inheritance
- ZipHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class FileMapping(file: sbt.File, name: String, unixMode: Option[Int] = None) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withZipFilesystem(zipFile: sbt.File, overwrite: Boolean = true)(f: (FileSystem) ⇒ Unit): Unit
Opens a zip filesystem and creates the file if necessary.
Opens a zip filesystem and creates the file if necessary.
Note: This will override an existing zipFile if existent!
- See also
http://stackoverflow.com/questions/9873845/java-7-zip-file-system-provider-doesnt-seem-to-accept-spaces-in-uri
-
def
zip(sources: Traversable[(sbt.File, String)], outputZip: sbt.File): Unit
Creates a zip file with the apache commons compressor library.
Creates a zip file with the apache commons compressor library.
Note: This is known to have some odd issues on macOS whereby executable permissions are not actually discovered, even though the Info-Zip headers exist and work on many variants of linux. Yay Apple.
- sources
The files to include in the zip file.
- outputZip
The location of the output file.
-
def
zipNIO(sources: Traversable[(sbt.File, String)], outputZip: sbt.File): Unit
Creates a zip file attempting to give files the appropriate unix permissions using Java 7 APIs.
Creates a zip file attempting to give files the appropriate unix permissions using Java 7 APIs.
- sources
The files to include in the zip file.
- outputZip
The location of the output file.
-
def
zipNative(sources: Traversable[(sbt.File, String)], outputZip: sbt.File): Unit
Creates a zip file attempting to give files the appropriate unix permissions using Java 6 APIs.
Creates a zip file attempting to give files the appropriate unix permissions using Java 6 APIs.
- sources
The files to include in the zip file.
- outputZip
The location of the output file.