public final class AssemblyFileUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isPropertyFile(File file) |
static boolean |
isPropertyFile(String sourceName) |
static String |
makePathRelativeTo(String path,
File basedir) |
static String |
normalizeFileInfo(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo) |
static void |
unpack(File source,
File destDir,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
Unpacks the archive file.
|
static void |
verifyTempDirectoryAvailability(File tempDir) |
public static void verifyTempDirectoryAvailability(@Nonnull File tempDir)
public static void unpack(File source, File destDir, org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager) throws ArchiveExpansionException, org.codehaus.plexus.archiver.manager.NoSuchArchiverException
source
- File to be unpacked.destDir
- Location where to put the unpacked files.ArchiveExpansionException
org.codehaus.plexus.archiver.manager.NoSuchArchiverException
@Nonnull public static String normalizeFileInfo(@Nonnull org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)
public static boolean isPropertyFile(String sourceName)
public static boolean isPropertyFile(File file)
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.