1 19 20 package org.apache.geronimo.mavenplugins.geronimo.module; 21 22 import javax.enterprise.deploy.spi.DeploymentManager ; 23 import javax.enterprise.deploy.spi.Target ; 24 import javax.enterprise.deploy.spi.TargetModuleID ; 25 26 33 public class ListModulesMojo 34 extends ModuleMojoSupport 35 { 36 protected void doExecute() throws Exception { 37 DeploymentManager manager = getDeploymentManager(); 38 Target [] targets = manager.getTargets(); 39 40 log.info(""); 41 log.info("Running Modules"); 42 log.info("==============="); 43 44 logModules(manager.getRunningModules(null, targets)); 45 46 log.info(""); 47 log.info("Non-Running Modules"); 48 log.info("==================="); 49 50 logModules(manager.getNonRunningModules(null, targets)); 51 } 52 53 protected String getFullClassName() { 54 return this.getClass().getName(); 55 } 56 } 57 | Popular Tags |