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

Boot scripts are not generated when using mainClass in (Compile, run) instead of only Compile #710

Closed
bjoernjacobs opened this issue Dec 3, 2015 · 2 comments

Comments

@bjoernjacobs
Copy link

In Build.scala when I change
mainClass in Compile := Some("my.app.class") to mainClass in (Compile, run) := Some("my.app.class"), after calling stage there are no boot scripts in /bin anymore. If I change it back, they get generated again.

@muuki88
Copy link
Contributor

muuki88 commented Dec 3, 2015

This is intended behavior.

mainClass in Compile sets the main class for the compile step.
mainClass in (Compile, run) sets the main class during theruntask inside theCompilescope. So this main class is only used, when you callrun(which iscompile:run`).

@muuki88 muuki88 closed this as completed Dec 3, 2015
@bjoernjacobs
Copy link
Author

Thanks for this clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants