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

shim for regular Main classes #4

Closed
n8han opened this issue Apr 20, 2011 · 2 comments
Closed

shim for regular Main classes #4

n8han opened this issue Apr 20, 2011 · 2 comments

Comments

@n8han
Copy link

n8han commented Apr 20, 2011

Unless it is not possible for some reason I can't think of, conscript should provide a bridge launch class that invokes the main method on a given class.

@eed3si9n
Copy link
Member

Given that the dependencies still need to be pulled and classpath needs to be configured, we can't just call java -jar against the app's jar. Would that mean we need to implement an equivalent of sbt run with project/build/project.scala point at the app? A quick way may be to fork sbt and add another param to emulate that.

@n8han
Copy link
Author

n8han commented Jun 16, 2011

What I was thinking here is that it's easier for some people to implement a main class, since it's a familiar interface, and we could just invoke the main method from a regular launcher.

But in testing the installer that you made for conscript, I realized it can be very handy (as it is much faster) to run and test things from within their own project, instead of going through the cs-run action each time. And then there's the possibility of an aggregate, runnable jar.

It would be cool if conscript apps got these options for free, and it would be their choice to implement the launcher interface or a designated main method. But, this all seems less important than getting your changes out the door. My main hold up there is I need to decide about webstart for the installer.

@n8han n8han closed this as completed Apr 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants