@@ -0,0 +1,1373 @@
+package com.nilhcem.md2html;%0A%0Aimport java.io.File;%0A%0Aimport org.apache.commons.io.FilenameUtils;%0A%0Aimport com.nilhcem.md2html.console.ConsoleMode;%0A%0Apublic class DoDir %7B%0A%09%0A%09public static ConsoleMode cm = new ConsoleMode();%0A%09%0A%09public static void doDir(File dir) throws Exception%7B%0A%09%09File%5B%5D files = dir.listFiles();%0A%09%09for(int i=0; i%3Cfiles.length; i++)%7B%0A%09%09%09if(files%5Bi%5D.isDirectory())%7B%0A%09%09%09%09System.out.println( %22doDir:%22 + files%5Bi%5D.getAbsolutePath());%0A%09%09%09%09doDir(files%5Bi%5D);%0A%09%09%09%7Delse%7B%0A%09%09%09%09String markdownFile = files%5Bi%5D.getAbsolutePath(); %0A%09%09%09%09if(!markdownFile.endsWith(%22.md%22))%7B%0A%09%09%09%09%09continue;%0A%09%09%09%09%7D%0A%09%09%09%09String strOutputFile = FilenameUtils.removeExtension(markdownFile) + %22.html%22;%0A%09%09%09%09%0A%09%09%09%09File outputFile = new File(strOutputFile);%0A%09%09%09%09%0A%09%09%09%09if(outputFile.exists())%7B%0A%09%09%09%09%09continue;%0A%09%09%09%09%7D%0A%0A%09%09%09%09String strErrFile = FilenameUtils.removeExtension(markdownFile) + %22.err%22;%0A%09%09%09%09File errFile = new File(strErrFile);%0A%09%09%09%09if(outputFile.exists())%7B%0A%09%09%09%09%09continue;%0A%09%09%09%09%7D%0A%09%09%09%09errFile.createNewFile();%0A%09%09%09%09System.out.println( %22errFile:%22 + errFile.getAbsolutePath());%0A%09%09%09%09%0A%09%09%09%09System.out.println( %22doM2h:%22 + files%5Bi%5D.getAbsolutePath());%0A%09%09%09%09try %7B%0A%09%09%09%09%09cm.process(files%5Bi%5D, new File(strOutputFile));%0A%09%09%09%09%09errFile.deleteOnExit();%0A%09%09%09%09%09System.out.println( %22del errFile:%22 + errFile.getAbsolutePath());%0A%09%09%09%09%7D catch (Exception e) %7B%0A%09%09%09%09%09System.out.println( %22doM2h:%22 + e.getMessage());%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create DoDir.java