org.castor.xmlctf.util

Class 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 String
CVS
The string for a CVS subdirectory.
static String
JAR
The string for an extension for a JAR file.
static String
JAVA
The string for an extension for a Java file.
static String
SVN
The string for a Subversion subdirectory.
static String
XML
The string for an extension for a XML file.
static String
XSD
The string for an extension for a XSD file.

Method Summary

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
isScmDirectory(String name)
Return true if the file provided is a special source control management directory that we want to ignore.

Field Details

CVS

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

JAR

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

JAVA

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

SVN

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

XML

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

XSD

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

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

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

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