public class Templater extends Object
Templater generates a new RoboVM project from a template.| Constructor and Description |
|---|
Templater(String template)
Creates a new
Templater with the specified template. |
| Modifier and Type | Method and Description |
|---|---|
Templater |
appId(String appId)
Sets the app id for the generated project.
|
Templater |
appName(String appName)
Sets the app name for the generated project.
|
void |
buildProject(File projectRoot)
Builds the project and stores it at the specified
projectRoot. |
Templater |
executable(String executable)
Sets the executable name for the generated project.
|
static void |
main(String[] args) |
Templater |
mainClass(String mainClass)
Sets the main class for the generated project.
|
Templater |
packageName(String packageName)
Sets the package name for the generated project.
|
public Templater(String template)
Templater with the specified template.NullPointerException - if template == null.IllegalArgumentException - if the specified template
doesn't exist.public Templater mainClass(String mainClass)
Sets the main class for the generated project. This is the only required parameter. All other parameters will derive from this one if not explicitly specified.
Example:com.company.app.MainClassmainClass - public Templater packageName(String packageName)
Sets the package name for the generated project. Will derive from the main class name if not explicitly specified.
Example:com.company.apppackageName - public Templater appName(String appName)
Sets the app name for the generated project. Will derive from the main class name if not explicitly specified.
Example:MyAppappName - public Templater appId(String appId)
Sets the app id for the generated project. Will derive from the main class name if not explicitly specified.
Example:com.company.appappId - public Templater executable(String executable)
Sets the executable name for the generated project. Will derive from the main class name if not explicitly specified.
Example:MyAppexecutable - public void buildProject(File projectRoot)
projectRoot.
You need to have specified at least the main class name for the project
to be built.projectRoot - NullPointerException - if projectRoot == null.IllegalArgumentException - if no main class had been specified.public static void main(String[] args)
Copyright © 2015 RoboVM AB. All Rights Reserved.