View Javadoc

1   package com.ashlux.mavenoc4jplugin;
2   
3   /**
4    * Restart OC4J.
5    *
6    * @goal restart
7    */
8   public class RestartMojo extends AbstractOc4jMojo {
9     protected String buildCommand() {
10      String command = getJavaHome() + "/bin/java -jar " + getJ2eeHome() + "/" + getAdminJar() + " " +
11          getConnectionUri() + " " + getUsername() + " " + getPassword() + " -restart";
12      getLog().debug("Going to run command [" + command + "].");
13      return command;
14    }
15  }