org.utgenome.shell
Class Maven

java.lang.Object
  extended by org.utgenome.shell.UTGBShellCommand
      extended by org.utgenome.shell.Maven
All Implemented Interfaces:
Comparable<UTGBShellCommand>

public class Maven
extends UTGBShellCommand

Maven utility

Author:
leo

Nested Class Summary
static class Maven.CommandExecutor
           
 
Field Summary
 
Fields inherited from class org.utgenome.shell.UTGBShellCommand
APP_FOLDER, EXPLODED_WEBAPP_DIR, globalOption, SRC_FOLDER, WEBAPP_FOLDER
 
Constructor Summary
Maven()
           
 
Method Summary
 void execute(String[] args)
           
 String getOneLinerDescription()
           
static boolean isMavenInstalled()
           
 String name()
           
static String[] prepareEnvironmentVariables(File mavenHome)
           
static void runMaven(String arg)
           
static void runMaven(String[] args)
           
static int runMaven(String[] args, File workingDir)
           
static void runMaven(String arg, File workingDir)
           
 
Methods inherited from class org.utgenome.shell.UTGBShellCommand
compareTo, createContextXML, createFileFromTemplate, createFileFromTemplate, execute, getConfigFile, getObsolteConfigurationFile, getOptionHolder, getPath, getProjectResourcePath, getProjectRoot, isInProjectRoot, loadUTGBConfig, maven
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Maven

public Maven()
Method Detail

isMavenInstalled

public static boolean isMavenInstalled()

runMaven

public static void runMaven(String arg)
                     throws UTGBShellException
Throws:
UTGBShellException

runMaven

public static void runMaven(String arg,
                            File workingDir)
                     throws UTGBShellException
Throws:
UTGBShellException

runMaven

public static void runMaven(String[] args)
                     throws UTGBShellException
Throws:
UTGBShellException

prepareEnvironmentVariables

public static String[] prepareEnvironmentVariables(File mavenHome)

runMaven

public static int runMaven(String[] args,
                           File workingDir)
                    throws UTGBShellException
Throws:
UTGBShellException

execute

public void execute(String[] args)
             throws Exception
Specified by:
execute in class UTGBShellCommand
Throws:
Exception

name

public String name()
Specified by:
name in class UTGBShellCommand

getOneLinerDescription

public String getOneLinerDescription()
Specified by:
getOneLinerDescription in class UTGBShellCommand


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.