Groovy Documentation

org.codehaus.groovy.grails.project.container
[Groovy] Class GrailsProjectRunner

java.lang.Object
  org.codehaus.groovy.grails.cli.api.BaseSettingsApi
      org.codehaus.groovy.grails.project.container.GrailsProjectRunner

class GrailsProjectRunner
extends BaseSettingsApi

Runs the container embedded within the current JVM.

Authors:
Graeme Rocher
Since:
2.2


Field Summary
static java.lang.String SCHEME_HTTP

static java.lang.String SCHEME_HTTPS

 
Fields inherited from class BaseSettingsApi
appClassName, buildEventListener, buildProps, buildSettings, configSlurper, enableProfile, grailsAppName, grailsHome, isInteractive, metadata, metadataFile, pluginSettings, pluginsHome, resolver
 
Property Summary
boolean usingSecureServer

 
Constructor Summary
GrailsProjectRunner(GrailsProjectPackager projectPackager, GrailsProjectWarCreator warCreator, java.lang.ClassLoader classLoader)

 
Method Summary
EmbeddableServer runApp()

Runs the application in dev mode, i.e. with class-reloading.

EmbeddableServer runAppHttps()

Runs the application in dev mode over HTTPS.

EmbeddableServer runServer(java.util.Map args)

Runs the Server.

EmbeddableServer runWar()

Runs the application using the WAR file directly.

EmbeddableServer runWarHttps()

Runs the application over HTTPS using the WAR file directly.

void stopServer()

 
Methods inherited from class BaseSettingsApi
confirmInput, confirmInput, copyGrailsResource, copyGrailsResource, copyGrailsResources, copyGrailsResources, enableUaa, exit, getAppClassName, getAppGrailsVersion, getBuildProps, getBuildSettings, getConfigSlurper, getGrailsAppName, getGrailsAppVersion, getGrailsHome, getIsInteractive, getMetadata, getMetadataFile, getPluginBuildSettings, getPluginSettings, getPluginsHome, getPropertyValue, getResolver, getServerHost, getServerPort, getServerPortHttps, getServletVersion, grailsResource, isDeclared, isEnableProfile, logError, logErrorAndExit, makeApiAvailableToScripts, makeRelative, makeRelative, profile, readAllPluginXmlMetadata, readPluginXmlMetadata, resolveResources, setServerPort, setServerPortHttps, updateMetadata, updateMetadata
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

SCHEME_HTTP

public static java.lang.String SCHEME_HTTP


SCHEME_HTTPS

public static java.lang.String SCHEME_HTTPS


 
Property Detail

usingSecureServer

boolean usingSecureServer


 
Constructor Detail

GrailsProjectRunner

GrailsProjectRunner(GrailsProjectPackager projectPackager, GrailsProjectWarCreator warCreator, java.lang.ClassLoader classLoader)


 
Method Detail

runApp

@CompileStatic
EmbeddableServer runApp()
Runs the application in dev mode, i.e. with class-reloading.


runAppHttps

@CompileStatic
EmbeddableServer runAppHttps()
Runs the application in dev mode over HTTPS.


runServer

EmbeddableServer runServer(java.util.Map args)
Runs the Server. You can pass these named arguments: server - The server instance to use (required). port - The network port the server is running on (used to display the URL) (required). scheme - The network scheme to display in the URL (optional; defaults to "http").


runWar

@CompileStatic
EmbeddableServer runWar()
Runs the application using the WAR file directly.


runWarHttps

@CompileStatic
EmbeddableServer runWarHttps()
Runs the application over HTTPS using the WAR file directly.


stopServer

@CompileStatic
void stopServer()


 

Groovy Documentation