scala - How to ZIP files with a prefix folder in SBT -


A bus to generate a distribution zip with a simple build tool

  def distpath = ((Outputpath ##) / default jarnname) +++ mainwind dependencies. Black jar) vulnerable val distribution = zip task (depends, "dist", "distribution.zip") depends (`package`) "Zip to project.")  

This connects jar files to the root of the zip. How does JAR add to a lib subfolder in zip?

for SBT 0.7.x:

Nothing that I know has been implemented by default. However, you can use the SBT file utility.

Try playing with the following example, which copies your artificial jar into a TMP diary, DIS zips, and removes it. It should be straightforward to extend dependent lbs.

Project of Project Expands Extension (InfoInfo) {def distpath = {((outputpath ##) / defaultJarName) +++ MainDependencies.scalaJars} Private def str2path ( Str (string: strings): path = str idle value = function {(outputpath ##) / default username, "tmp" / "lib" / default username, log) file utilities.zip (list (straw path ("tmp"), The following functions were used above: FileUtilities.clean ("tmp", log) none}}

FileUtilities :

  DEA ZIP (Source: Attractable [Path], OutputJip (Path, Log: Logger): Option [String]  

Their announcement should be self-explanatory.


Comments