-
Notifications
You must be signed in to change notification settings - Fork 136
feature request: allow nailgun client to start server #55
Comments
Closing all issues older than 6 months; please reopen if it is still relevant |
please reopen, i can't reopen |
Usually people write their own wrappers for that (for example, that is how it is done in Buck) but you are welcome to come up with a PR. |
I think it would be interesting if this is solved in the nailgun repository instead of the downstream tools. It would allow us tooling authors to reuse code and avoid writing (and testing) it ourselves. |
@jvican Absolutely great idea. N-downstreams shouldn't reinvent the wheel with layers of scripting and neither should casual DIY builders from source to get something going. I was working on a replacement nailgun Homebrew formula when I encountered this issue and the Java 18+ Security Manager removal issue. Currently, the original formula is deprecated and at risk for removal. It should be doable by adjusting
For
Prior art on ng servers:
|
I have "uneducated" customers who could use the ng client from batch files. I would be interested in seeing support for the following use case:
reads config file
nailgun-config.cfg
which looks like a jar-file manifestClass-Path: foo bar baz
Main-Class: com.example.foo.FooClass
Jvm-Args: [something here]
Nailgun-Port: 12345
attempts to contact nailgun server on requested port
if attempt succeeds goto step 6
attempt fails: launch server with given class path and JVM args, bound to localhost on Nailgun-Port
if attempt still fails, abort with error
launch
com.example.foo.FooClass
on server witharg1 arg2 arg3 ...
for argumentsThis essentially makes the process of running the client the same: the first time it may take a few seconds for the JVM to start up, but after that it should be quick. Then my "uneducated" customers don't need to worry about how to run the server properly.
The text was updated successfully, but these errors were encountered: