1 | |
package org.kuali.maven.plugins.dnsme.mojo; |
2 | |
|
3 | |
import org.apache.maven.plugin.MojoExecutionException; |
4 | |
import org.apache.maven.plugin.MojoFailureException; |
5 | |
import org.kuali.maven.plugins.dnsme.DNSMEClient; |
6 | |
import org.kuali.maven.plugins.dnsme.beans.Domain; |
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | 0 | public class AddDomainMojo extends BaseDNSMEMojo { |
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
String domainName; |
23 | |
|
24 | |
@Override |
25 | |
public void performTasks(DNSMEClient client) throws MojoExecutionException, MojoFailureException { |
26 | 0 | Domain domain = new Domain(); |
27 | 0 | domain.setName(domainName); |
28 | 0 | Domain addedDomain = client.addDomain(domain); |
29 | 0 | getLog().info("Added: " + addedDomain.getName()); |
30 | 0 | } |
31 | |
|
32 | |
} |