1 17 package org.apache.servicemix.maven.plugin.jbi; 18 19 import org.apache.servicemix.jbi.management.task.JbiTask; 20 import org.apache.tools.ant.Project; 21 22 public abstract class AbstractDeployableMojo extends AbstractJbiMojo { 23 24 27 private String serverProtocol; 28 29 32 private String host; 33 34 37 private String containerName; 38 39 42 private String jmxDomainName; 43 44 47 protected String port; 48 49 52 private String jndiPath; 53 54 57 private String username; 58 59 62 private String password; 63 64 protected JbiTask initializeJbiTask(JbiTask task) { 65 66 Project antProject = new Project(); 67 antProject.init(); 68 task.setProject(antProject); 69 70 task.setContainerName(containerName); 71 task.setHost(host); 72 task.setServerProtocol(serverProtocol); 73 task.setJmxDomainName(jmxDomainName); 74 task.setPort(Integer.parseInt(port)); 75 task.setJndiPath(jndiPath); 76 task.setUsername(username); 77 task.setPassword(password); 78 79 task.setTaskName("JBITask"); 80 task.setTaskType("JBITask"); 81 return task; 82 } 83 84 } 85 | Popular Tags |