org.gcube.vremanagement.softwarerepository.repository.impl.maven.utils
Class MavenExecutor

java.lang.Object
  extended by org.gcube.vremanagement.softwarerepository.repository.impl.maven.utils.MavenExecutor

public class MavenExecutor
extends java.lang.Object

Author:
Luca Frosini (ISTI-CNR), Marko Mikulicic (ISTI-CNR)

Constructor Summary
MavenExecutor(java.io.File projectDirectory)
          Prepare the enviroment for MavenEmbedder execution
 
Method Summary
 void exec(java.lang.String goal, java.lang.String[][] properties)
           
 SRMavenEmbedderLogger getSRMavenEmbedderLogger()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenExecutor

public MavenExecutor(java.io.File projectDirectory)
              throws java.lang.Exception
Prepare the enviroment for MavenEmbedder execution

Parameters:
projectDirectory - project directory where is pom.xml file
Throws:
java.lang.Exception - if fails
Method Detail

exec

public void exec(java.lang.String goal,
                 java.lang.String[][] properties)
          throws java.lang.Exception
Parameters:
goal - goal
properties - properties couple
Throws:
java.lang.Exception - if fails

getSRMavenEmbedderLogger

public SRMavenEmbedderLogger getSRMavenEmbedderLogger()
Returns:
Maven Embedder Logger