diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2012-11-09 23:49:48 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2012-11-09 23:49:48 +0530 |
commit | 00a25a7ef03e25864019ef2e4f3fe5813ec292e9 (patch) | |
tree | 261b64336cb044cd681ddbd0e43c12d35abf8719 /conversion/ignore | |
parent | ce326bf6912e309453097632457739655c41da8a (diff) |
added:
conversion/ignore/
conversion/ignore/Ignored.java (a class getting info about ignored
child-directories, in the present directory)
modified:
conversion/ConvertDirectory.java (added code to check if the
child-directory is in the ignored list)
docs/scruf (started sketching out documentation on how to use scruf)
styling/style.css
todo
Diffstat (limited to 'conversion/ignore')
-rw-r--r-- | conversion/ignore/Ignored.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/conversion/ignore/Ignored.java b/conversion/ignore/Ignored.java new file mode 100644 index 0000000..8129f18 --- /dev/null +++ b/conversion/ignore/Ignored.java @@ -0,0 +1,33 @@ +package scruf.conversion.ignore; + +import java.io.*; +import scruf.io.*; + +public class Ignored { + private String ignoredList[]; + public Ignored(File directory) { + File ignoredFile = new File(directory,".ignored"); + if(ignoredFile.exists()) { + ignoredList = new ReadFile(ignoredFile).split("\n"); + } + } + public boolean ignored(File subdirectory) { + boolean ignored = false; + if(ignoredList!=null) { + for(String dir:ignoredList) { + if(subdirectory.getName().matches(dir)) { + System.out.println("Ignoring Directory: "+ + subdirectory.getAbsolutePath()); + ignored = true; + break; + } + } + } + return ignored; + } +} + +/** + CVS/ + /home/rsd/projects/scruf/www/CVS/ + */
\ No newline at end of file |