harrah/xsbt — Issue #354: sbt.version in properties file is overly insistent
Author: paulp
Created: 2012-02-03 16:08:19+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

% 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

% java -Dsbt.version=0.11.3-SNAPSHOT -jar /r/sbt-extras/.lib/0.11.3-SNAPSHOT/sbt-launch.jar --version
sbt launcher version 0.11.3-20111207-052114
% java -Dsbt.version=0.11.3-SNAPSHOT -jar /r/sbt-extras/.lib/0.11.3-SNAPSHOT/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