Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provision for running more than one app under sbt at once? #273

Closed
mslinn opened this issue Nov 20, 2011 · 2 comments
Closed

Provision for running more than one app under sbt at once? #273

mslinn opened this issue Nov 20, 2011 · 2 comments
Labels
Enhancement needs info Needs more information to take further actions.

Comments

@mslinn
Copy link

mslinn commented Nov 20, 2011

My project has two apps; one is dependent on the other.

$ sbt run
[info] Loading global plugins from C:\Users\Mike Slinn\.sbt\plugins
[info] Loading project definition from E:\work\experiments\scala\hanuman\project
[info] Set current project to hanuman (in build file:/E:/work/experiments/scala/hanuman/)

Multiple main classes detected, select one to run:

 [1] net.interdoodle.hanuman.AppServer
 [2] net.interdoodle.httpstaticfileserver.HttpStaticFileServer

App 2 must be run before app 1. How can I set up sbt to run them in this order?

@harrah
Copy link
Member

harrah commented Dec 4, 2011

For full flexibility, you'd want to implement a task yourself. However, I could see extending run-main to allow a comma-separated list of main classes to run in that order. That is an interactive task, however, and perhaps you are looking for something not requiring manual intervention. As another alternative or in addition to the run-main option, the mainClass setting could be allowed to be a comma or whitespace separated list of main classes.

@harrah harrah closed this as completed Jan 31, 2012
@harrah
Copy link
Member

harrah commented Jan 31, 2012

Closed, no response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement needs info Needs more information to take further actions.
Projects
None yet
Development

No branches or pull requests

2 participants