org.apache.maven.plugin.dependency.testUtils
Class DependencyTestUtils
java.lang.Object
org.apache.maven.plugin.dependency.testUtils.DependencyTestUtils
public class DependencyTestUtils
- extends java.lang.Object
Method Summary |
static org.apache.maven.artifact.factory.ArtifactFactory |
getArtifactFactory()
|
static void |
removeDirectory(java.io.File dir)
Deletes a directory and its contents. |
static void |
setFileModifiedTime(java.io.File file)
|
static void |
setVariableValueToObject(java.lang.Object object,
java.lang.String variable,
java.lang.Object value)
convience method to set values to variables in objects that don't have
setters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyTestUtils
public DependencyTestUtils()
removeDirectory
public static void removeDirectory(java.io.File dir)
throws java.io.IOException
- Deletes a directory and its contents.
- Parameters:
dir
- The base directory of the included and excluded files.
- Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
- When a directory failed to get deleted.
getArtifactFactory
public static org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
setVariableValueToObject
public static void setVariableValueToObject(java.lang.Object object,
java.lang.String variable,
java.lang.Object value)
throws java.lang.IllegalAccessException
- convience method to set values to variables in objects that don't have
setters
- Parameters:
object
- variable
- value
-
- Throws:
java.lang.IllegalAccessException
setFileModifiedTime
public static void setFileModifiedTime(java.io.File file)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.