import sbt.Run.{run => runClass}
val izPath = "lib_managed" / "compile" * "*.jar"
val args = List(temp.getPath,
"-h", izPackHome,
"-b", ".",
"-o", ("target"/"install.jar").absolutePath,
"-k", "standard")
runClass("com.izforge.izpack.compiler.Compiler",
izPath.get, args, log)
This worked perfectly in sbt 0.5. It fails with xsbt, and a glance at the
new API docs shows why.
I'm currently poring over the API docs and the code, trying to find the
class or object that will let me do what I used to do with sbt.Run.run().
But I thought maybe someone on the list might already have solved this
problem.
Any takers?
--
Brian Clapper, b...@clapper.org
You can use
runTask("com.izforge.izpack.compiler.Compiler", izPath.get, args)
to create a task or use the 'defaultRunner' member of Project like 'Run' in
0.5.6. I've updated Run so that it should be source compatible with 0.5.6 for
the next release. Thanks for pointing out the problem.
-Mark
Excellent. FYI, runTask(), as shown above, gives me a compiler error. But
defaultRunner.run() works as advertised.
--
Brian Clapper, b...@clapper.org
Right, sorry. The main class should be wrapped in Some for some reason I
forget, probably compatibility.
-Mark
Mark,
The project file is here:
http://github.com/bmc/grizzled-scala/blob/master/project/build/GrizzledScalaProject.scala
That's an API. With sbt 0.5.x, I would simply do an "sbt publish-local", and
my other projects could use the most recent (unpublished) version of the API.
That does not appear to be happening now. Now, when other projects reference
the API (example below), I get a download error.
It's entirely possible I'm doing something boneheaded here.
Here's a sample reference:
val grizzled = "org.clapper" %% "grizzled-scala" % "0.3"
--
Brian Clapper, b...@clapper.org
Thanks. There were a couple of issues that needed to be fixed. 'publish-
local' should properly handle the jar for your project now.
-Mark