com.joanju.cgs
Class ProjectFiles

java.lang.Object
  extended by com.joanju.cgs.ProjectFiles

public class ProjectFiles
extends java.lang.Object


Constructor Summary
ProjectFiles()
           
ProjectFiles(Configuration config)
           
 
Method Summary
 int countCompileUnits(java.lang.String name)
          Count the compile units for a given directory or filename.
 java.util.ArrayList<java.io.File> getFileList()
           
 void setCollectFiles(boolean collectFiles)
          This must be enabled if you want to get a file list, otherwise only a count is returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectFiles

public ProjectFiles()

ProjectFiles

public ProjectFiles(Configuration config)
Method Detail

countCompileUnits

public int countCompileUnits(java.lang.String name)
                      throws java.sql.SQLException
Count the compile units for a given directory or filename. If the name begins with '/', then rootDirs are searched, otherwise, the propath is searched. If collectFiles is set to true, then the files found are added to the file list, otherwise, only a count is returned.

Throws:
java.sql.SQLException

getFileList

public java.util.ArrayList<java.io.File> getFileList()

setCollectFiles

public void setCollectFiles(boolean collectFiles)
This must be enabled if you want to get a file list, otherwise only a count is returned.



Copyright © 2008 Joanju Software. All Rights Reserved.