/**
 * Copyright 2014 Google Inc. All Rights Reserved.
 */
package com.google.appengine.appcfg;

import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 * Update application dispatch.xml.
 *
 * @author Ludovic Champenois <ludo@google.com>
 * @goal update_dispatch
 * @execute phase="package"
 */
public class UpdateDispatch extends AbstractAppCfgMojo {

  @Override
  public void execute() throws MojoExecutionException, MojoFailureException {
    getLog().info("");
    getLog().info("Google App Engine Java SDK - Updating Application Dipatch");
    getLog().info("");

    getLog().info("Retrieving Google App Engine Java SDK from Maven");

    resolveAndSetSdkRoot();

    String appDir = project.getBuild().getDirectory() + "/" + project.getBuild().getFinalName();

    getLog().info("Updating Dispathc for Google App Engine Application");

    executeAppCfgCommand("update_dispatch", appDir);
  }

}

@@ -589,16 +589,17 @@
 ation Di
+s
 patch%22);
@@ -860,10 +860,10 @@
 spat
-h
 c
+h
  for

Update dispatch command supported