Package org.castor.xmlctf.util
Class FileServices
java.lang.Object
org.castor.xmlctf.util.FileServices
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
FieldsModifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionstatic 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
The string for a CVS subdirectory.- See Also:
-
SVN
The string for a Subversion subdirectory.- See Also:
-
XSD
The string for an extension for a XSD file.- See Also:
-
XML
The string for an extension for a XML file.- See Also:
-
JAVA
The string for an extension for a Java file.- See Also:
-
JAR
The string for an extension for a JAR file.- See Also:
-
-
Method Details
-
copySupportFiles
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 copyroot
- the destination directory to copy files to- Throws:
IOException
- if an error occurs while copying files
-
isScmDirectory
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
-