org.exoplatform.maven2.plugin
Class Utils
java.lang.Object
org.codehaus.plexus.util.FileUtils
org.exoplatform.maven2.plugin.Utils
public class Utils
- extends org.codehaus.plexus.util.FileUtils
Created by The eXo Platform SARL Author : Phung Hai Nam phunghainam@gmail.com
Dec 6, 2005
| Fields inherited from class org.codehaus.plexus.util.FileUtils |
FS, ONE_GB, ONE_KB, ONE_MB |
|
Constructor Summary |
Utils()
|
|
Method Summary |
static boolean |
containtFile(java.io.File parentDir,
java.lang.String childName)
|
static int |
copyDirectoryStructure(java.io.File sourceDirectory,
java.io.File destinationDirectory,
java.util.HashSet<java.lang.String> ignoreFiles)
|
static int |
copyDirectoryStructure(java.io.File sourceDirectory,
java.io.File destinationDirectory,
java.util.HashSet<java.lang.String> ignoreFiles,
boolean overwrite)
|
static int |
copyDirectoryStructure2(java.io.File sourceDirectory,
java.io.File destinationDirectory,
java.util.HashSet<java.lang.String> ignoreFiles,
boolean overwrite)
|
static void |
createApplicationXml(java.io.File earDir)
|
static void |
createApplicationXml2(java.io.File earDir)
|
static void |
createManifest(java.io.File mf,
org.apache.maven.project.MavenProject project,
java.util.HashSet ignoredProjects)
|
static void |
createManifest2(java.io.File mf,
org.apache.maven.project.MavenProject project,
java.util.HashSet includes)
|
static java.util.HashSet<org.apache.maven.artifact.Artifact> |
deployedDependency(java.io.File dirJar,
java.io.File dirWar,
org.apache.maven.project.MavenProject project,
java.util.HashSet<java.lang.String> ignoreProjects)
|
static java.util.HashSet<org.apache.maven.artifact.Artifact> |
deployedDependency2(java.io.File dirJar,
java.io.File dirWar,
java.io.File dirRar,
org.apache.maven.project.MavenProject project,
java.util.HashSet<java.lang.String> ignoreProjects)
|
static java.util.HashSet<org.apache.maven.artifact.Artifact> |
deployedDependency3(java.io.File dirJar,
org.apache.maven.project.MavenProject project,
java.util.HashSet<java.lang.String> onlyToInclude)
|
static void |
deployProject(java.io.File dirJar,
java.io.File dirWar,
org.apache.maven.project.MavenProject project,
boolean deployDep,
java.util.HashSet<java.lang.String> ignoreProjects)
|
static java.util.HashSet<java.lang.String> |
getDefaultIgnoreFiles()
|
static java.lang.String |
getFinalName(java.lang.String name)
|
static void |
patchConfig(java.io.File src,
java.io.File dest)
|
static void |
patchConfig2(java.io.File src,
java.io.File dest)
|
static void |
printMessage(java.lang.String category,
java.lang.String message)
|
static void |
removeManifestFromJar(java.io.File file)
|
| Methods inherited from class org.codehaus.plexus.util.FileUtils |
basename, basename, byteCountToDisplaySize, catPath, cleanDirectory, cleanDirectory, contentEquals, copyDirectory, copyDirectory, copyDirectoryStructure, copyFile, copyFileToDirectory, copyFileToDirectory, copyURLToFile, createTempFile, deleteDirectory, deleteDirectory, dirname, extension, fileAppend, fileDelete, fileExists, filename, fileRead, fileRead, fileWrite, forceDelete, forceDelete, forceDeleteOnExit, forceMkdir, getDefaultExcludes, getDefaultExcludesAsList, getExtension, getFile, getFileNames, getFileNames, getFiles, getFiles, getFilesFromExtension, getPath, getPath, mkdir, normalize, removeExtension, removePath, removePath, rename, resolveFile, sizeOfDirectory, sizeOfDirectory, toFile, toURLs, waitFor, waitFor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
deployProject
public static void deployProject(java.io.File dirJar,
java.io.File dirWar,
org.apache.maven.project.MavenProject project,
boolean deployDep,
java.util.HashSet<java.lang.String> ignoreProjects)
throws java.lang.Exception
- Throws:
java.lang.Exception
deployedDependency
public static java.util.HashSet<org.apache.maven.artifact.Artifact> deployedDependency(java.io.File dirJar,
java.io.File dirWar,
org.apache.maven.project.MavenProject project,
java.util.HashSet<java.lang.String> ignoreProjects)
throws java.io.IOException
- Throws:
java.io.IOException
deployedDependency2
public static java.util.HashSet<org.apache.maven.artifact.Artifact> deployedDependency2(java.io.File dirJar,
java.io.File dirWar,
java.io.File dirRar,
org.apache.maven.project.MavenProject project,
java.util.HashSet<java.lang.String> ignoreProjects)
throws java.io.IOException
- Throws:
java.io.IOException
deployedDependency3
public static java.util.HashSet<org.apache.maven.artifact.Artifact> deployedDependency3(java.io.File dirJar,
org.apache.maven.project.MavenProject project,
java.util.HashSet<java.lang.String> onlyToInclude)
throws java.io.IOException
- Throws:
java.io.IOException
getFinalName
public static java.lang.String getFinalName(java.lang.String name)
printMessage
public static void printMessage(java.lang.String category,
java.lang.String message)
containtFile
public static boolean containtFile(java.io.File parentDir,
java.lang.String childName)
copyDirectoryStructure
public static int copyDirectoryStructure(java.io.File sourceDirectory,
java.io.File destinationDirectory,
java.util.HashSet<java.lang.String> ignoreFiles)
throws java.io.IOException
- Throws:
java.io.IOException
copyDirectoryStructure
public static int copyDirectoryStructure(java.io.File sourceDirectory,
java.io.File destinationDirectory,
java.util.HashSet<java.lang.String> ignoreFiles,
boolean overwrite)
throws java.io.IOException
- Throws:
java.io.IOException
copyDirectoryStructure2
public static int copyDirectoryStructure2(java.io.File sourceDirectory,
java.io.File destinationDirectory,
java.util.HashSet<java.lang.String> ignoreFiles,
boolean overwrite)
throws java.io.IOException
- Throws:
java.io.IOException
getDefaultIgnoreFiles
public static java.util.HashSet<java.lang.String> getDefaultIgnoreFiles()
createManifest
public static void createManifest(java.io.File mf,
org.apache.maven.project.MavenProject project,
java.util.HashSet ignoredProjects)
throws java.io.IOException
- Throws:
java.io.IOException
createManifest2
public static void createManifest2(java.io.File mf,
org.apache.maven.project.MavenProject project,
java.util.HashSet includes)
throws java.io.IOException
- Throws:
java.io.IOException
createApplicationXml
public static void createApplicationXml(java.io.File earDir)
throws java.io.IOException
- Throws:
java.io.IOException
createApplicationXml2
public static void createApplicationXml2(java.io.File earDir)
throws java.io.IOException
- Throws:
java.io.IOException
patchConfig
public static void patchConfig(java.io.File src,
java.io.File dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
patchConfig2
public static void patchConfig2(java.io.File src,
java.io.File dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeManifestFromJar
public static void removeManifestFromJar(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2009 eXo Platform SAS. All Rights Reserved.