Installer plugin: version bump and fix publish-local on parent

git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@995 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
dmharrah 2009-09-11 19:07:16 +00:00
parent a0becc9efb
commit ba0b563eac
2 changed files with 7 additions and 4 deletions

View File

@ -2,6 +2,6 @@
#Sun Jul 26 22:17:46 EDT 2009
project.organization=org.scala-tools.sbt
project.name=extract
sbt.version=0.5.2
project.version=0.2
sbt.version=0.5.3
project.version=0.2.1
scala.version=2.7.4

View File

@ -6,7 +6,7 @@ import sbt._
import java.io.File
import java.nio.charset.Charset
class InstallerProject(info: ProjectInfo) extends ParentProject(info)
class InstallerProject(info: ProjectInfo) extends ParentProject(info) with NoPublish
{
lazy val installExtractor: InstallExtractProject = project("extract", "Installer Extractor", new InstallExtractProject(_, installPlugin))
lazy val installPlugin: InstallPluginProject = project("plugin", "Installer Plugin", new InstallPluginProject(_, installExtractor), installExtractor)
@ -24,12 +24,15 @@ protected class InstallPluginProject(info: ProjectInfo, extract: => InstallExtra
val publishTo = "Scala Tools Nexus" at "http://nexus.scala-tools.org/content/repositories/releases/"
Credentials(Path.fromFile(System.getProperty("user.home")) / ".ivy2" / ".credentials", log)
}
protected class InstallExtractProject(info: ProjectInfo, pluginProject: => InstallPluginProject) extends DefaultProject(info)
trait NoPublish extends BasicManagedProject
{
override def publishLocalAction = publishAction
override def deliverAction = publishAction
override def deliverLocalAction = publishAction
override def publishAction = task {None}
}
protected class InstallExtractProject(info: ProjectInfo, pluginProject: => InstallPluginProject) extends DefaultProject(info) with NoPublish
{
override def unmanagedClasspath = super.unmanagedClasspath +++ Path.lazyPathFinder(Path.fromFile(FileUtilities.sbtJar) :: Nil)
private lazy val plugin = pluginProject
val mainClassName = "sbt.extract.Main"