Unfortunately there is no such ANT-task in GMF now.
You can create it yourself and then contribute it to GMF. While writing this
task you have to instantiate and execute org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation
class using existing Map->Gen transformation wizard implementation as an
example (org.eclipse.gmf.internal.bridge.transform.TransformToGenModelWizard).