Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typesafe Activator specify parameter when running a class

How do we specify parameters when running a main class from Activator UI?

Surely there's a way to do that, right?

I'm using the latest one to date, 1.2.10

Thanks in advance, Raka

like image 808
Cokorda Raka Avatar asked Mar 18 '23 15:03

Cokorda Raka


1 Answers

As far as I know you can't specify parameters with activator, however you can use sbt for that:

sbt "run param1 param2"

or if you also want to specify the class name:

sbt "runMain my.class.Name param1 param2"

Edit: Actually the same thing can be executed from activator:

activator "run param1 param2"

or

activator "runMain my.class.Name param1 param2"
like image 153
Adrian Lopez Avatar answered Mar 21 '23 18:03

Adrian Lopez