diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2012-12-26 21:31:18 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2012-12-26 21:31:18 +0530 |
commit | 54e4ec0cc7f0b58e747729a0c5260044ca4c370f (patch) | |
tree | 0f0396ca8af98ba777caae546231aeb96bb55c4d /conversion/ConvertDirectory.java | |
parent | 7f46c19441f6690bde92c1359c535321cb8c3025 (diff) | |
parent | 2707017336aa14d20e9c8e4261a83598d7c03662 (diff) |
merged from devel branch. this is going to labelled version 0.1.0.
removed:
TODO
docs/scruf
added:
README
docs/scruf-howto.html
docs/scruffy-markup.html
docs/style.css
etc/
etc/TODO
etc/scruf-art
modified:
conversion/ConvertDirectory.java
parsers/Footer.java
Diffstat (limited to 'conversion/ConvertDirectory.java')
-rw-r--r-- | conversion/ConvertDirectory.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/conversion/ConvertDirectory.java b/conversion/ConvertDirectory.java index 87a0145..5a8cb17 100644 --- a/conversion/ConvertDirectory.java +++ b/conversion/ConvertDirectory.java @@ -32,7 +32,6 @@ public class ConvertDirectory { private CanConvert canConvert; private boolean can; private StyleChecker styleSheet; - private boolean styleFlag; public ConvertDirectory() { html = new ConvertFile(); canConvert = new CanConvert(); @@ -51,8 +50,6 @@ public class ConvertDirectory { IndexCreator index = new IndexCreator(directory); // iterate through the directory. System.out.println("Current Directory: "+directory.getAbsolutePath()); - // reset styleFlag. - styleFlag = false; for(File file:directory.listFiles(new FileSieve())) { if(file.isFile()) { can = canConvert.check(file); @@ -60,8 +57,9 @@ public class ConvertDirectory { System.out.println("Converting..."+file.getAbsolutePath()); html.convert(file); index.add(file); - // set styleFlag. - styleFlag = true; + // check for style sheet in the directory; create/update + // if needed. + styleSheet.check(directory); } } else if(file.isDirectory()) { @@ -73,11 +71,6 @@ public class ConvertDirectory { } } } - // if styleFlag is set, check for style sheet in - // in the directory. - if(styleFlag) { - styleSheet.check(directory); - } boolean convertIndex = (index.shouldConvert() || canConvert.check(index.indexFile())); if(convertIndex) { |