org.apache.maven.it
Class Verifier

java.lang.Object
  extended byorg.apache.maven.it.Verifier

public class Verifier
extends Object

Version:
$Id: Verifier.java 469032 2006-10-30 00:21:48Z brett $
Author:
Jason van Zyl , Brett Porter

Field Summary
 String localRepo
           
 
Constructor Summary
Verifier(String basedir)
           
Verifier(String basedir, boolean debug)
           
Verifier(String basedir, String settingsFile)
           
Verifier(String basedir, String settingsFile, boolean debug)
           
 
Method Summary
 void assertArtifactContents(String org, String artifact, String version, String type, String contents)
           
 void assertArtifactNotPresent(String org, String name, String version, String ext)
           
 void assertArtifactPresent(String org, String name, String version, String ext)
           
 void assertFileNotPresent(String file)
           
 void assertFilePresent(String file)
           
 void deleteArtifact(String org, String name, String version, String ext)
           
 void displayStreamBuffers()
           
 void executeGoal(String goal)
           
 void executeGoal(String goal, Map envVars)
           
 void executeGoals(List goals)
           
 void executeGoals(List goals, Map envVars)
           
 void executeHook(String filename)
           
 List getArtifactFileNameList(String org, String name, String version, String ext)
           
 String getArtifactPath(String org, String name, String version, String ext)
           
 List getCliOptions()
           
 Properties getSystemProperties()
           
 Properties getVerifierProperties()
           
static void launchSubversion(String line, String basedir)
           
 List loadFile(File file, boolean hasCommand)
           
 List loadFile(String basedir, String filename, boolean hasCommand)
           
 Properties loadProperties(String filename)
           
static void main(String[] args)
           
 void resetStreams()
           
 void setCliOptions(List cliOptions)
           
 void setSystemProperties(Properties systemProperties)
           
 void setVerifierProperties(Properties verifierProperties)
           
 void verify(boolean chokeOnErrorOutput)
           
 void verifyErrorFreeLog()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localRepo

public String localRepo
Constructor Detail

Verifier

public Verifier(String basedir,
                String settingsFile)
         throws VerificationException

Verifier

public Verifier(String basedir,
                String settingsFile,
                boolean debug)
         throws VerificationException

Verifier

public Verifier(String basedir)
         throws VerificationException

Verifier

public Verifier(String basedir,
                boolean debug)
         throws VerificationException
Method Detail

resetStreams

public void resetStreams()

displayStreamBuffers

public void displayStreamBuffers()

verify

public void verify(boolean chokeOnErrorOutput)
            throws VerificationException
Throws:
VerificationException

verifyErrorFreeLog

public void verifyErrorFreeLog()
                        throws VerificationException
Throws:
VerificationException

loadProperties

public Properties loadProperties(String filename)
                          throws VerificationException
Throws:
VerificationException

loadFile

public List loadFile(String basedir,
                     String filename,
                     boolean hasCommand)
              throws VerificationException
Throws:
VerificationException

loadFile

public List loadFile(File file,
                     boolean hasCommand)
              throws VerificationException
Throws:
VerificationException

getArtifactPath

public String getArtifactPath(String org,
                              String name,
                              String version,
                              String ext)

getArtifactFileNameList

public List getArtifactFileNameList(String org,
                                    String name,
                                    String version,
                                    String ext)

executeHook

public void executeHook(String filename)
                 throws VerificationException
Throws:
VerificationException

launchSubversion

public static void launchSubversion(String line,
                                    String basedir)
                             throws VerificationException
Throws:
VerificationException

deleteArtifact

public void deleteArtifact(String org,
                           String name,
                           String version,
                           String ext)
                    throws IOException
Throws:
IOException

assertFilePresent

public void assertFilePresent(String file)

assertFileNotPresent

public void assertFileNotPresent(String file)

assertArtifactPresent

public void assertArtifactPresent(String org,
                                  String name,
                                  String version,
                                  String ext)

assertArtifactNotPresent

public void assertArtifactNotPresent(String org,
                                     String name,
                                     String version,
                                     String ext)

executeGoal

public void executeGoal(String goal)
                 throws VerificationException
Throws:
VerificationException

executeGoal

public void executeGoal(String goal,
                        Map envVars)
                 throws VerificationException
Throws:
VerificationException

executeGoals

public void executeGoals(List goals)
                  throws VerificationException
Throws:
VerificationException

executeGoals

public void executeGoals(List goals,
                         Map envVars)
                  throws VerificationException
Throws:
VerificationException

main

public static void main(String[] args)
                 throws VerificationException
Throws:
VerificationException

assertArtifactContents

public void assertArtifactContents(String org,
                                   String artifact,
                                   String version,
                                   String type,
                                   String contents)
                            throws IOException
Throws:
IOException

getCliOptions

public List getCliOptions()

setCliOptions

public void setCliOptions(List cliOptions)

getSystemProperties

public Properties getSystemProperties()

setSystemProperties

public void setSystemProperties(Properties systemProperties)

getVerifierProperties

public Properties getVerifierProperties()

setVerifierProperties

public void setVerifierProperties(Properties verifierProperties)


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.