Permalink
Browse files

Removed the need for the shell script to set the plugin version

Now the tests will automatically use the current version of the plugin
  • Loading branch information...
cdow committed Jul 4, 2013
1 parent 201e142 commit feabb2eb554940d9b28049bd0618b6a790d9e141
View
@@ -23,3 +23,5 @@ scalacOptions += "-deprecation"
scriptedBufferLog := false
ScriptedPlugin.scriptedSettings
scriptedLaunchOpts <+= version { "-Dplugin.version=" + _ }

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Oct 1, 2013

This is such a cool trick. I'm going to use this, and also document it in testing sbt plugins.

@eed3si9n

eed3si9n Oct 1, 2013

This is such a cool trick. I'm going to use this, and also document it in testing sbt plugins.

This file was deleted.

Oops, something went wrong.
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}
@@ -1 +1,9 @@
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.3.0")
{
val pluginVersion = System.getProperty("plugin.version")
if(pluginVersion == null) {
throw new RuntimeException("""|The system property 'plugin.version' is not defined.
|Please specify this property using the SBT flag -D.""".stripMargin)
} else {
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % pluginVersion)
}
}

0 comments on commit feabb2e

Please sign in to comment.