org.apache.maven.plugin.assembly.utils
Class AssemblyFileUtils
java.lang.Object
org.apache.maven.plugin.assembly.utils.AssemblyFileUtils
public final class AssemblyFileUtils
- extends java.lang.Object
- Version:
- $Id: AssemblyFileUtils.java 782119 2009-06-05 19:55:15Z jdcasey $
Method Summary |
static void |
convertLineEndings(java.io.Reader source,
java.io.File dest,
java.lang.String lineEndings)
NOTE: It is the responsibility of the caller to close the source Reader instance. |
static void |
copyFile(java.io.File src,
java.io.File dst)
|
static java.lang.String |
getLineEndingCharacters(java.lang.String lineEnding)
|
static java.lang.String |
makePathRelativeTo(java.lang.String path,
java.io.File basedir)
|
static java.lang.String |
normalizePath(java.lang.String path)
|
static void |
unpack(java.io.File source,
java.io.File destDir,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
Unpacks the archive file. |
static void |
verifyTempDirectoryAvailability(java.io.File tempDir,
org.codehaus.plexus.logging.Logger logger)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINE_ENDING_KEEP
public static final java.lang.String LINE_ENDING_KEEP
- See Also:
- Constant Field Values
LINE_ENDING_DOS
public static final java.lang.String LINE_ENDING_DOS
- See Also:
- Constant Field Values
LINE_ENDING_UNIX
public static final java.lang.String LINE_ENDING_UNIX
- See Also:
- Constant Field Values
LINE_ENDING_CRLF
public static final java.lang.String LINE_ENDING_CRLF
- See Also:
- Constant Field Values
LINE_ENDING_LF
public static final java.lang.String LINE_ENDING_LF
- See Also:
- Constant Field Values
makePathRelativeTo
public static java.lang.String makePathRelativeTo(java.lang.String path,
java.io.File basedir)
verifyTempDirectoryAvailability
public static void verifyTempDirectoryAvailability(java.io.File tempDir,
org.codehaus.plexus.logging.Logger logger)
unpack
public static void unpack(java.io.File source,
java.io.File destDir,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
throws ArchiveExpansionException,
org.codehaus.plexus.archiver.manager.NoSuchArchiverException
- Unpacks the archive file.
- Parameters:
source
- File to be unpacked.destDir
- Location where to put the unpacked files.
- Throws:
ArchiveExpansionException
org.codehaus.plexus.archiver.manager.NoSuchArchiverException
convertLineEndings
public static void convertLineEndings(java.io.Reader source,
java.io.File dest,
java.lang.String lineEndings)
throws java.io.IOException
- NOTE: It is the responsibility of the caller to close the source Reader instance.
The file content is written using platform encoding.
- Parameters:
lineEndings
- This is the result of the getLineEndingChars(..) method in this utility class; the actual
line-ending characters.
- Throws:
java.io.IOException
getLineEndingCharacters
public static java.lang.String getLineEndingCharacters(java.lang.String lineEnding)
throws AssemblyFormattingException
- Throws:
AssemblyFormattingException
copyFile
public static void copyFile(java.io.File src,
java.io.File dst)
throws java.io.IOException
- Throws:
java.io.IOException
normalizePath
public static java.lang.String normalizePath(java.lang.String path)
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.