1 | |
package org.kuali.maven.plugins.dnsme.mojo; |
2 | |
|
3 | |
import java.util.List; |
4 | |
|
5 | |
import org.apache.maven.plugin.MojoExecutionException; |
6 | |
import org.apache.maven.plugin.MojoFailureException; |
7 | |
import org.kuali.maven.plugins.dnsme.DNSMEClient; |
8 | |
import org.kuali.maven.plugins.dnsme.beans.Domain; |
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | 0 | public class ShowDomainsMojo extends BaseDNSMEMojo { |
17 | |
|
18 | |
@Override |
19 | |
public void performTasks(DNSMEClient client) throws MojoExecutionException, MojoFailureException { |
20 | 0 | List<Domain> domains = client.getDomains(); |
21 | 0 | for (Domain domain : domains) { |
22 | 0 | getLog().info("Domain: " + domain.getName()); |
23 | |
} |
24 | 0 | } |
25 | |
|
26 | |
} |