org.jboss.maven.shared.file
Class DirectoryCopier
java.lang.Object
org.jboss.maven.shared.file.DirectoryCopier
public class DirectoryCopier
- extends java.lang.Object
Copies a directory with its structure intact. Optionally allows defining
includes and/or excludes. Internally uses a DirectoryScanner
, mainly
to ensure we filter out "standard excludes" (like scm dirs) but also to apply
any optionl includes and/or excludes.
- Author:
- Steve Ebersole
Method Summary |
static void |
copyFileIfModified(java.io.File source,
java.io.File destination)
|
void |
copyTo(java.io.File targetDirectory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryCopier
public DirectoryCopier(java.io.File sourceDirectory)
copyTo
public void copyTo(java.io.File targetDirectory)
throws java.io.IOException
- Throws:
java.io.IOException
copyFileIfModified
public static void copyFileIfModified(java.io.File source,
java.io.File destination)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2007-2009 JBoss, a division of Red Hat, Inc. All Rights Reserved.