typesafehub/sbteclipse — Issue #91: sbt.version in properties file is overly insistent
Author: paulp
Created: 2012-02-03 15:57:15+00:00
State: open

I can't seem to override the sbt version specified in project/build.properties from the command line. This is highly suboptimal for me, can it be changed to honor either the version in the launcher of the version which I explicitly indicate somehow, as in the below?

% java -Dsbt.version=0.11.2 -jar /r/sbt-extras/.lib/0.11.2/sbt-launch.jar about
[info] Loading project definition from /s/blueeyes/project
[info] Set current project to blueeyes (in build file:/s/blueeyes/)
[info] This is sbt 0.11.0
[info] The current project is {file:/s/blueeyes/}blueeyes
[info] The current project is built against Scala 2.9.1
[info] Available Plugins: sbtassembly.Plugin, org.sbtidea.SbtIdeaPlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.9.1
[info] All logging output for this session is available at /var/folders/q6/ppzbrppn7z92l3f36ns0kg4c0000gn/T/sbt9219052806552757168.log

% java -jar /r/sbt-extras/.lib/0.11.2/sbt-launch.jar 'set sbtVersion := "0.11.2"' about
[info] Loading project definition from /s/blueeyes/project
[info] Set current project to blueeyes (in build file:/s/blueeyes/)
[info] Reapplying settings...
[info] Set current project to blueeyes (in build file:/s/blueeyes/)
[info] This is sbt 0.11.0
[info] The current project is {file:/s/blueeyes/}blueeyes
[info] The current project is built against Scala 2.9.1
[info] Available Plugins: sbtassembly.Plugin, org.sbtidea.SbtIdeaPlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.9.1
[info] All logging output for this session is available at /var/folders/q6/ppzbrppn7z92l3f36ns0kg4c0000gn/T/sbt5750426406233083230.log