Class AppEngineUtil


  • public class AppEngineUtil
    extends java.lang.Object
    Utility functionality for starting/running App Engine.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      AppEngineUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File getAppEnginePropertiesFile​(java.io.File targetDir)
      Obtains the AppEngine Properties File.
      static void setupAppEngine​(java.io.File targetDir, java.lang.String finalName, java.lang.Integer datastorePort, org.apache.maven.plugin.descriptor.PluginDescriptor plugin, com.google.cloud.tools.maven.run.AbstractRunMojo mojo)
      Sets up the App Engine for running/starting.
      static void tearDownAppEngine​(java.io.File targetDir, java.lang.String finalName, org.apache.maven.plugin.descriptor.PluginDescriptor plugin, org.apache.maven.plugin.logging.Log log)
      Tears down the App Engine.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AppEngineUtil

        public AppEngineUtil()
    • Method Detail

      • getAppEnginePropertiesFile

        public static java.io.File getAppEnginePropertiesFile​(java.io.File targetDir)
        Obtains the AppEngine Properties File.
        Parameters:
        targetDir - Target directory.
        Returns:
        AppEngine Properties File.
      • setupAppEngine

        public static void setupAppEngine​(java.io.File targetDir,
                                          java.lang.String finalName,
                                          java.lang.Integer datastorePort,
                                          org.apache.maven.plugin.descriptor.PluginDescriptor plugin,
                                          com.google.cloud.tools.maven.run.AbstractRunMojo mojo)
                                   throws org.apache.maven.plugin.MojoExecutionException
        Sets up the App Engine for running/starting.
        Parameters:
        targetDir - Target directory.
        finalName - Final name.
        datastorePort - Port to run datastore on. May be null.
        plugin - PluginDescriptor.
        mojo - AbstractRunMojo.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If fails to setup App Engine.
      • tearDownAppEngine

        public static void tearDownAppEngine​(java.io.File targetDir,
                                             java.lang.String finalName,
                                             org.apache.maven.plugin.descriptor.PluginDescriptor plugin,
                                             org.apache.maven.plugin.logging.Log log)
                                      throws org.apache.maven.plugin.MojoExecutionException
        Tears down the App Engine.
        Parameters:
        targetDir - Target directory.
        finalName - Final name.
        plugin - PluginDescriptor.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If fails to tear down App Engine.