diff --git a/src/main/scala/com/typesafe/sbt/packager/universal/Archives.scala b/src/main/scala/com/typesafe/sbt/packager/universal/Archives.scala index f5339d6d0..1aa13f91e 100644 --- a/src/main/scala/com/typesafe/sbt/packager/universal/Archives.scala +++ b/src/main/scala/com/typesafe/sbt/packager/universal/Archives.scala @@ -7,6 +7,21 @@ import sbt._ /** Helper methods to package up files into compressed archives. */ object Archives { + /** + * Makes a zip file in the given target directory using the given name. + * @param target folder to build package in + * @param name of output (without extension) + * @param mappings included in the output + * @param top level directory + * @return zip file + */ + @deprecated( + "Use [[com.typesafe.sbt.packager.universal.Archives.makeZip(File, String, Seq[(File, String)], Option[String], Seq[String]): File]]", + since = "1.0.5" + ) + def makeZip(target: File, name: String, mappings: Seq[(File, String)], top: Option[String]): File = + makeZip(target, name, mappings, top, options = Seq.empty[String]) + /** * Makes a zip file in the given target directory using the given name. * @@ -29,6 +44,22 @@ object Archives { zip } + /** + * Makes a zip file in the given target directory using the given name. + * + * @param target folder to build package in + * @param name of output (without extension) + * @param mappings included in the output + * @param top level directory + * @return zip file + */ + @deprecated( + "Use [[com.typesafe.sbt.packager.universal.Archives.makeNativeZip(File, String, Seq[(File, String)], Option[String], Seq[String]): File]]", + since = "1.0.5" + ) + def makeNativeZip(target: File, name: String, mappings: Seq[(File, String)], top: Option[String]): File = + makeNativeZip(target, name, mappings, top, options = Seq.empty[String]) + /** * Makes a zip file in the given target directory using the given name. * @@ -51,6 +82,24 @@ object Archives { zip } + /** + * Makes a dmg file in the given target directory using the given name. + * + * Note: Only works on OSX + * + * @param target folder to build package in + * @param name of output (without extension) + * @param mappings included in the output + * @param top level directory : NOT USED + * @return dmg file + */ + @deprecated( + "Use [[com.typesafe.sbt.packager.universal.Archives.makeDmg(target: File, name: String, mappings: Seq[(File, String)], top: Option[String], options: Seq[String]): File]]", + since = "1.0.5" + ) + def makeDmg(target: File, name: String, mappings: Seq[(File, String)], top: Option[String]): File = + makeDmg(target, name, mappings, top, options = Seq.empty[String]) + /** * Makes a dmg file in the given target directory using the given name. *