01: package org.andromda.maven.plugin;
02:
03: import org.andromda.core.AndroMDAServer;
04: import org.andromda.core.configuration.Configuration;
05:
06: /**
07: * Provides the ability to stop the AndroMDA server.
08: *
09: * @author Chad Brandon
10: * @goal stop-server
11: * @requiresProject false
12: * @requiresDependencyResolution runtime
13: */
14: public class AndroMDAServerStopMojo extends AbstractAndroMDAMojo {
15: /**
16: * @see org.andromda.maven.plugin.AbstractAndroMDAMojo#execute(org.andromda.core.configuration.Configuration)
17: */
18: public void execute(final Configuration configuration) {
19: final AndroMDAServer server = AndroMDAServer.newInstance();
20: server.stop(configuration);
21: }
22:
23: }
|