org.apache.maven.plugin.assembly.utils
Class AssemblyFileUtils

java.lang.Object
  extended by org.apache.maven.plugin.assembly.utils.AssemblyFileUtils

public final class AssemblyFileUtils
extends Object

Version:
$Id: AssemblyFileUtils.java 1639422 2014-11-13 18:08:07Z krosenvold $

Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makePathRelativeTo

public static String makePathRelativeTo(String path,
                                        File basedir)

verifyTempDirectoryAvailability

public static void verifyTempDirectoryAvailability(@Nonnull
                                                   File tempDir)

unpack

public static void unpack(File source,
                          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

normalizeFileInfo

@Nonnull
public static String normalizeFileInfo(@Nonnull
                                               org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)

isPropertyFile

public static boolean isPropertyFile(String sourceName)

isPropertyFile

public static boolean isPropertyFile(File file)


Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.