net.kindleit.gae
Class StartGoal

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.kindleit.gae.EngineGoalBase
          extended by net.kindleit.gae.StartGoal
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Direct Known Subclasses:
DebugGoal, RunGoal

public class StartGoal
extends EngineGoalBase

Runs the WAR project locally on the Google App Engine development server, without executing the package phase first. This is intended to be included in your project's POM and runs in the pre-integration-test phase.

Since:
0.5.8
Author:
tmoore@incrementalism.net

Field Summary
protected  String address
          Address to bind to.
protected  boolean disableUpdateCheck
          Do not check for new SDK versions.
protected  String javaAgent
          Optional javaAgent parameter prepended to the jvmFalgs.
protected  List<String> jvmFlags
          Arbitrary list of JVM Flags to send to the KickStart task.
protected  int port
          Port to run in.
 
Fields inherited from class net.kindleit.gae.EngineGoalBase
appDir, ARG_TYPE, container, emailAccount, gaeProperties, hostString, keepTempUploadDir, monitorKey, monitorPort, passIn, proxy, sdkDir, serverId, settings, splitJars, uploadServer, wait
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
StartGoal()
           
 
Method Summary
 void execute()
           
protected  void resolveArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts)
           
protected  void runKickStart(String startClass, String... commandArguments)
          Passes command to the Google App Engine KickStart runner.
 
Methods inherited from class net.kindleit.gae.EngineGoalBase
assureSystemProperties, contextualize, getAppCfgArgs, getCommonArgs, hasServerSettings, runAppCfg
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

protected int port
Port to run in.


address

protected String address
Address to bind to.


disableUpdateCheck

protected boolean disableUpdateCheck
Do not check for new SDK versions.


jvmFlags

protected List<String> jvmFlags
Arbitrary list of JVM Flags to send to the KickStart task.


javaAgent

protected String javaAgent
Optional javaAgent parameter prepended to the jvmFalgs.

Constructor Detail

StartGoal

public StartGoal()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

runKickStart

protected final void runKickStart(String startClass,
                                  String... commandArguments)
                           throws org.apache.maven.plugin.MojoExecutionException
Passes command to the Google App Engine KickStart runner.

Parameters:
startClass - command to run through KickStart
commandArguments - arguments to the KickStart command.
Throws:
org.apache.maven.plugin.MojoExecutionException - If EngineGoalBase.assureSystemProperties() fails

resolveArtifacts

protected final void resolveArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts)
                               throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2009-2010 KindleIT. All Rights Reserved.