org.castor.xmlctf.util
Class FileServices

java.lang.Object
  extended by org.castor.xmlctf.util.FileServices

public final class FileServices
extends java.lang.Object

This class is a set of tools for manipulating files needed by the CTF.

Version:
$Revision: 6787 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
Author:
Arnaud Blandin

Field Summary
static java.lang.String CVS
          The string for a CVS subdirectory.
static java.lang.String JAR
          The string for an extension for a JAR file.
static java.lang.String JAVA
          The string for an extension for a Java file.
static java.lang.String SVN
          The string for a Subversion subdirectory.
static java.lang.String XML
          The string for an extension for a XML file.
static java.lang.String XSD
          The string for an extension for a XSD file.
 
Method Summary
static void copySupportFiles(java.io.File file, java.io.File root)
          Copy all the needed documents (java, xsd, xml file) of given file (jar or directory) to a specified directory.
static boolean isScmDirectory(java.lang.String name)
          Return true if the file provided is a special source control management directory that we want to ignore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS

public static final java.lang.String CVS
The string for a CVS subdirectory.

See Also:
Constant Field Values

SVN

public static final java.lang.String SVN
The string for a Subversion subdirectory.

See Also:
Constant Field Values

XSD

public static final java.lang.String XSD
The string for an extension for a XSD file.

See Also:
Constant Field Values

XML

public static final java.lang.String XML
The string for an extension for a XML file.

See Also:
Constant Field Values

JAVA

public static final java.lang.String JAVA
The string for an extension for a Java file.

See Also:
Constant Field Values

JAR

public static final java.lang.String JAR
The string for an extension for a JAR file.

See Also:
Constant Field Values
Method Detail

copySupportFiles

public static void copySupportFiles(java.io.File file,
                                    java.io.File root)
                             throws java.io.IOException
Copy all the needed documents (java, xsd, xml file) of given file (jar or directory) to a specified directory.

Parameters:
file - the file that contains the entries to copy
root - the destination directory to copy files to
Throws:
java.io.IOException - if an error occurs while copying files

isScmDirectory

public static boolean isScmDirectory(java.lang.String name)
Return true if the file provided is a special source control management directory that we want to ignore.

Parameters:
name - Name of a directory
Returns:
true if the file provided is an SCM directory


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com