public interface BuildLink
This interface is written in Java and uses only Java types so that communication can work even when the plugin and embedded Play server are built with different versions of Scala.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
findSource(java.lang.String className,
java.lang.Integer line)
Find the original source file for the given class name and line number.
|
void |
forceReload()
Force the application to reload on the next invocation of reload.
|
java.io.File |
projectPath()
Get the path of the project.
|
java.lang.Object |
reload()
Check if anything has changed, and if so, return an updated classloader.
|
java.lang.Object |
runTask(java.lang.String task)
Run a task in the build tool.
|
java.util.Map<java.lang.String,java.lang.String> |
settings()
Returns a list of application settings configured in the build system.
|
java.lang.Object reload()
PlayException and its sub
types can be used to provide specific details on compile errors or other exceptions.java.lang.Object[] findSource(java.lang.String className,
java.lang.Integer line)
className - The name of the class to find the source for.line - The line number the exception was thrown at.java.io.File projectPath()
play.api.Application#getFile.void forceReload()
java.util.Map<java.lang.String,java.lang.String> settings()
java.lang.Object runTask(java.lang.String task)
task - The name of the task to run.