Package net.officefloor.maven
Class AppEngineUtil
- java.lang.Object
-
- net.officefloor.maven.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 AppEngineProperties
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.
-
-
-
Method Detail
-
getAppEnginePropertiesFile
public static java.io.File getAppEnginePropertiesFile(java.io.File targetDir)
Obtains the AppEngineProperties
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 benull
.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.
-
-