KickStart
Stay organized with collections
Save and categorize content based on your preferences.
- java.lang.Object
-
- com.google.appengine.tools.KickStart
-
public class KickStart
extends java.lang.Object
Launches a process in an operating-system agnostic way. Helps us avoid
idiosyncrasies in scripts for different platforms. Currently this only
works for DevAppServerMain.
Takes a command line invocation like:
java -cp ../lib/appengine-tools-api.jar com.google.appengine.tools.KickStart \
--jvm_flag="-Dlog4j.configuration=log4j.props"
com.google.appengine.tools.development.DevAppServerMain \
--jvm_flag="-agentlib:jdwp=transport=dt_socket,server=y,address=7000"
--address=localhost --port=5005 appDir
and turns it into:
java -cp <an_absolute_path>/lib/appengine-tools-api.jar \
-Dlog4j.configuration=log4j.props \
-agentlib:jdwp=transport=dt_socket,server=y,address=7000 \
com.google.appengine.tools.development.DevAppServerMain \
--address=localhost --port=5005 <an_absolute_path>/appDir
while also setting its working directory (if appropriate).
All arguments between com.google.appengine.tools.KickStart
and
com.google.appengine.tools.development.DevAppServerMain
, as well as
all --jvm_flag
arguments after DevAppServerMain
, are consumed
by KickStart. The remaining options after DevAppServerMain
are
given as arguments to DevAppServerMain, without interpretation by
KickStart.
At present, the only valid option to KickStart itself is:
- --jvm_flag=<vm_arg>
- Passes <vm_arg> as a JVM
argument for the child JVM. May be repeated.
Additionally, if the --external_resource_dir argument is specified, we use it
to set the working directory instead of the application war directory.
-
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["KickStart is a utility class designed to launch processes in a way that is consistent across different operating systems."],["It simplifies the execution of `DevAppServerMain` by handling path resolution and setting the working directory as needed."],["KickStart consumes JVM flags passed before `DevAppServerMain` and any `--jvm_flag` arguments specified after it, while other arguments after `DevAppServerMain` are passed directly to `DevAppServerMain`."],["The primary functionality of KickStart is invoked via its `main` method, which accepts command-line arguments."],["The `--jvm_flag=\u003cvm_arg\u003e` option allows passing JVM arguments to the child JVM and can be used multiple times, whereas `--external_resource_dir` changes the working directory from the default application war."]]],[]]