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(File parentDir,
String childName)
|
static int |
copyDirectoryStructure(File sourceDirectory,
File destinationDirectory,
HashSet<String> ignoreFiles)
|
static int |
copyDirectoryStructure(File sourceDirectory,
File destinationDirectory,
HashSet<String> ignoreFiles,
boolean overwrite)
|
static int |
copyDirectoryStructure2(File sourceDirectory,
File destinationDirectory,
HashSet<String> ignoreFiles,
boolean overwrite)
|
static void |
createApplicationXml(File earDir)
|
static void |
createApplicationXml2(File earDir)
|
static void |
createManifest(File mf,
org.apache.maven.project.MavenProject project,
HashSet ignoredProjects)
|
static void |
createManifest2(File mf,
org.apache.maven.project.MavenProject project,
HashSet includes)
|
static HashSet<org.apache.maven.artifact.Artifact> |
deployedDependency(File dirJar,
File dirWar,
org.apache.maven.project.MavenProject project,
HashSet<String> ignoreProjects)
|
static HashSet<org.apache.maven.artifact.Artifact> |
deployedDependency2(File dirJar,
File dirWar,
File dirRar,
org.apache.maven.project.MavenProject project,
HashSet<String> ignoreProjects)
|
static HashSet<org.apache.maven.artifact.Artifact> |
deployedDependency3(File dirJar,
org.apache.maven.project.MavenProject project,
HashSet<String> onlyToInclude)
|
static void |
deployProject(File dirJar,
File dirWar,
org.apache.maven.project.MavenProject project,
boolean deployDep,
HashSet<String> ignoreProjects)
|
static HashSet<String> |
getDefaultIgnoreFiles()
|
static String |
getFinalName(String name)
|
static void |
patchConfig(File src,
File dest)
|
static void |
patchConfig2(File src,
File dest)
|
static void |
printMessage(String category,
String message)
|
static void |
removeManifestFromJar(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, fileDelete, fileExists, filename, fileRead, fileRead, fileWrite, forceDelete, forceDelete, forceDeleteOnExit, forceMkdir, getExtension, getFile, 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(File dirJar,
File dirWar,
org.apache.maven.project.MavenProject project,
boolean deployDep,
HashSet<String> ignoreProjects)
throws Exception
- Throws:
Exception
deployedDependency
public static HashSet<org.apache.maven.artifact.Artifact> deployedDependency(File dirJar,
File dirWar,
org.apache.maven.project.MavenProject project,
HashSet<String> ignoreProjects)
throws IOException
- Throws:
IOException
deployedDependency2
public static HashSet<org.apache.maven.artifact.Artifact> deployedDependency2(File dirJar,
File dirWar,
File dirRar,
org.apache.maven.project.MavenProject project,
HashSet<String> ignoreProjects)
throws IOException
- Throws:
IOException
deployedDependency3
public static HashSet<org.apache.maven.artifact.Artifact> deployedDependency3(File dirJar,
org.apache.maven.project.MavenProject project,
HashSet<String> onlyToInclude)
throws IOException
- Throws:
IOException
getFinalName
public static String getFinalName(String name)
printMessage
public static void printMessage(String category,
String message)
containtFile
public static boolean containtFile(File parentDir,
String childName)
copyDirectoryStructure
public static int copyDirectoryStructure(File sourceDirectory,
File destinationDirectory,
HashSet<String> ignoreFiles)
throws IOException
- Throws:
IOException
copyDirectoryStructure
public static int copyDirectoryStructure(File sourceDirectory,
File destinationDirectory,
HashSet<String> ignoreFiles,
boolean overwrite)
throws IOException
- Throws:
IOException
copyDirectoryStructure2
public static int copyDirectoryStructure2(File sourceDirectory,
File destinationDirectory,
HashSet<String> ignoreFiles,
boolean overwrite)
throws IOException
- Throws:
IOException
getDefaultIgnoreFiles
public static HashSet<String> getDefaultIgnoreFiles()
createManifest
public static void createManifest(File mf,
org.apache.maven.project.MavenProject project,
HashSet ignoredProjects)
throws IOException
- Throws:
IOException
createManifest2
public static void createManifest2(File mf,
org.apache.maven.project.MavenProject project,
HashSet includes)
throws IOException
- Throws:
IOException
createApplicationXml
public static void createApplicationXml(File earDir)
throws IOException
- Throws:
IOException
createApplicationXml2
public static void createApplicationXml2(File earDir)
throws IOException
- Throws:
IOException
patchConfig
public static void patchConfig(File src,
File dest)
throws Exception
- Throws:
Exception
patchConfig2
public static void patchConfig2(File src,
File dest)
throws Exception
- Throws:
Exception
removeManifestFromJar
public static void removeManifestFromJar(File file)
throws IOException
- Throws:
IOException
Copyright © 2009 eXo Platform SAS. All Rights Reserved.