I can't find the other docs of relevance (I blame tiredness) so:
in your .scala project build:
val runsInLowMemory = TaskKey[Unit]("runs-in-low-memory")
in your project build (as settings) or direct in a project/subproject .sbt file:
// Test here will use the classpath of main plus test I *think*
Compile is just your main
fullRunTask(runsInLowMemory, Test, "mainClassName", args*)
javaOptions in runsInLowMemory += "-Xmx16M"
fork in runsInLowMemory := true
then you can do run-in-low-memory and it will fork with the correct
path. (use ++= if you want to add more than one option to the jvm).
I've likely made a mistake somewhere (tiredness again) but that's the idea.
It takes a while for xsbt to start to make sense but it really is very cool.
> --
> You received this message because you are subscribed to the Google Groups
> "simple-build-tool" group.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to
> simple-build-t...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simple-build-tool?hl=en.
Sean
> --
> You received this message because you are subscribed to the Google Groups
> "simple-build-tool" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/simple-build-tool/-/iDZYto2ncl4J.
>
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to
> simple-build-t...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simple-build-tool?hl=en.
--