From dcfdbe94b45a00479e2f826a5050696ed080fb01 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Fri, 14 Oct 2011 07:51:03 -0400 Subject: [PATCH] launcher: retrieve artifacts with 'bundle' type --- launch/Update.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launch/Update.scala b/launch/Update.scala index ea48812ec..8ae377760 100644 --- a/launch/Update.scala +++ b/launch/Update.scala @@ -207,7 +207,7 @@ final class Update(config: UpdateConfiguration) private def retrieve(eventManager: EventManager, module: ModuleDescriptor, target: UpdateTarget) { val retrieveOptions = new RetrieveOptions - retrieveOptions.setArtifactFilter(new ArtifactFilter(a => "jar" == a.getType && a.getExtraAttribute("classifier") == null)) + retrieveOptions.setArtifactFilter(new ArtifactFilter(a => retrieveType(a.getType) && a.getExtraAttribute("classifier") == null)) val retrieveEngine = new RetrieveEngine(settings, eventManager) val pattern = target match @@ -217,6 +217,7 @@ final class Update(config: UpdateConfiguration) } retrieveEngine.retrieve(module.getModuleRevisionId, baseDirectoryName(scalaVersion) + "/" + pattern, retrieveOptions) } + private def retrieveType(tpe: String): Boolean = tpe == "jar" || tpe == "bundle" /** Add the scala tools repositories and a URL resolver to download sbt from the Google code project.*/ private def addResolvers(settings: IvySettings) {