Class FileServices

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

public final class FileServices extends 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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The string for a CVS subdirectory.
    static final String
    The string for an extension for a JAR file.
    static final String
    The string for an extension for a Java file.
    static final String
    The string for a Subversion subdirectory.
    static final String
    The string for an extension for a XML file.
    static final String
    The string for an extension for a XSD file.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    copySupportFiles(File file, File root)
    Copy all the needed documents (java, xsd, xml file) of given file (jar or directory) to a specified directory.
    static boolean
    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 Details

  • Method Details

    • copySupportFiles

      public static void copySupportFiles(File file, File root) throws 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:
      IOException - if an error occurs while copying files
    • isScmDirectory

      public static boolean isScmDirectory(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